• Announcements

    • Colorfulstan

      Windows XP\ Vista support dropped   11/19/2016

      It's been a while but I think some people (especially first time visitor's) don't know yet
    • Raif

      Code of Conduct - Rules you should read   02/25/2017

      In General
      Be respectful! There's another person on the other end of that conversation! The forums are a place to discuss anything related to Overwolf and beyond but want this to be a place where people feel comfortable to participate and have fun! Keep it on topic, keep it constructive - Threads should be constructive and have a clear topic. Replies to that topic should be relevant. Bumping a thread without adding relevant information is not considered constructive. Bumping a thread from a long time ago is also not constructive (Overwolf updates every 2 weeks, things change). Attacks or Accusations are not acceptable - Attacking another person is unacceptable, the circumstances are irrelevant, just don't do it. Read the topic - Know what people are talking about in the thread. Stick to the given topic and don't derail it. Search - We have a great search function, use it before you post a new thread as it's possible someone has asked your question before and there's info on it. Don't see something about your question or topic after searching? Post it! (keep in mind that bumping threads from a long time ago is not recommended, post your own). Don't post about locked or deleted topics; they were deleted for a reason. No petitions, demands or "When will.." We have places for asking for games, features and we will tell you when something is coming. We don't give dates for a reason. Don't try getting around the swear filter, it's not cute or funny. This is not a place to break NDA's, talk about something illegal or break any law from any country. We will contact the necessary parties involved and you will be pursued to the extent of the law. No spam. You will be banned and your post deleted. Please write in English. This is an international forum and we'd like everyone to be able to participate.
      Bad Behavior Insults, racial slurs, profanity, vulgarity. Trolling - You know who you are, and we will find you. Nudity, porn or anything obscene. Flaming - We don't have a trained fireman on staff, so don't do it. No advertising - No one wants to buy that shirt off of you, or that WoW gold. No insulting any religion (fake, real, or imagined), sexual orientation, gender or culture. No talking about drugs or performing illegal activities. Impersonation - Don't do it, people find out and you end up looking stupid.
      What will we do if you break a rule? Warnings - You get only one. Thread/Post deletion - We delete your thread/post from the forums. Suspension - Temporary forum ban. Account termination - Permanent forum ban. Legal action or report violations to the appropriate legal authorities.
    • ChriSKate

      Think you tried everything?! - Check out the Overwolf knowledge-base!   02/25/2017

      Dear gamers, how about some DIY? -   http://support.overwolf.com/ The knowledge-base for all your Overwolf related troubleshooting, faq, bugs, known issues and much more!
      Just start typing anything related to your issue (for example, 'fps' or 'heartharena') and discover new ways to work things out.

harakirinox

Member
  • Content count

    1
  • Joined

  • Last visited

About harakirinox

  • Rank
    Overwolf Newbie
  1. Basics for a plugin with C++ DLL

    Hello everyone, I am currently starting the process of coding a small plugin for Overwolf that will let me display onscreen information that I gather from a DLL that I write in C++ (e.g. some information on the system's state, CPU, memory, etc... network status and more). I had a look at the up to date plugin sample (https://github.com/overwolf/overwolf-plugin-sample), unfortunately this is in C# and I do not practice nor clearly understand this programming language (yet!). To get started I would like to simply modify the sample plugin so when it loads it retrieves an integer from my DLL, I think if I have that working I can manage the rest. I tried to recreate the C# DLL in C++ but it fails miserably, the plugin simply does not even load. First I had to create a main.cpp with the DllMain entry point, otherwise my compiler was screaming to death (perhaps that might be a problem), then I recreated the general structure of the DLL but it still does not work. Here is what I attempted: namespace overwolf { namespace samples { namespace plugins { class SamplePlugin { public: int SampleProperty = 55; //int SampleProperty(); // Also tried to return it from a member function, didn't work }; } } } I tried without the namespaces too, no more luck. In the JavaScript files that are supposed to load the plugin (main.js) the first lines are: // create an instance of the plugin var plugin = new OverwolfPlugin("OverwolfSamplePlugin", true); // initialize it plugin.initialize(function(status) { // ... Nothing past plugin.initialize gets executed so I deduce that the plugin just fails to load (the dll is in the right directory with the right name, if I place the compiled C# DLL then it does work). Is there the equivalent of the C# sample plugin DLL in C++ somewhere? Otherwise could anyone guide me on how to make my C++ DLL work and being able to call its functions from the HTML/JavaScript please? I am sure that for someone used to the Overwolf's plugin system this will be easy, as there are several things that I don't quite get (I have only done standalone executable and DLL loaded "classically" from their entry point, never done a plugin before. Thank you very much for your help.