• “Just being a mediocre driver has never been my ambition. That's not my style” ― Michael Schumacher
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Have a chance to win a copy of F1 2017 The Game (PC) by following RaceDepartment on Twitter, Facebook, Instagram, Twitch, Steam and / or YouTube.

How to use the Example.cpp

Discussion in 'rFactor 2' started by Fahad Gaffoor, Jan 13, 2012.

  1. Fahad Gaffoor

    Fahad Gaffoor

    Messages:
    747
    Ratings:
    +5
    Need help, how do you use the example.cpp file given as an plugin example?
     
  2. Andy White

    Andy White

    Messages:
    208
    Ratings:
    +21
    I don't think it's a file for you to "use" so to speak. I think it's an example for the coding of plugins, so that modders can see how they work.
     
  3. Knut Omdal Tveito

    Knut Omdal Tveito
    Premium

    Messages:
    3,634
    Ratings:
    +1,754
    I just compiled the file and did a test run. It worked as should and wrote a bunch of information to a file. As Andy said it is just an example of how to write a code for a plugin dll. The example code itself is not really usable, but people can use it as starting point to write a Motec plugin etc...
     
  4. Fahad Gaffoor

    Fahad Gaffoor

    Messages:
    747
    Ratings:
    +5
    so basically you have to create a DLL using the ms visual studio?
     
  5. Knut Omdal Tveito

    Knut Omdal Tveito
    Premium

    Messages:
    3,634
    Ratings:
    +1,754
    Yup. But there isn't much point using the dll of the example file. Its just an example of the structure of the code.
     
    • Like Like x 1
  6. Fahad Gaffoor

    Fahad Gaffoor

    Messages:
    747
    Ratings:
    +5
    thanks Knut