Jump to content

Alienware

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Alienware

  1. Wow! That is very interesting! Can I instead do: ------------------------- extern "C" DoSomethingOnX(void* xPtr); DoSomethingOnX(void* xPtr) { X *x = (X)xPtr; return x->DoSomething(); } Because I noticed you didn't write the function prototype, which I don't know if it was on purpose or not.
  2. Hello, I've noticed that I cannot do ' extern "C" ' on the methods Open(), Close(), StartStreaming(), and StopStreaming() in the following Class: class ApplicationIo : public FiclIo { friend class X5ScriptPlayer; friend class ApplicationSettings; typedef std::vector<__int64> IntArray; public: // // Member Functions ApplicationIo(IUserInterface * ui); ~ApplicationIo(); ModuleIo & ModIo() { return Module; } unsigned int BoardCount(); void Open(); bool IsOpen() { return Opened; } void Close(); void StartStreaming(); void StopStreaming(); ... } How can I export the methods of the Class mentioned above? I've read the manuals and seen examples about how to get DLLs working in LabView, however none of them ever talk about when there is an actual Class involved and exporting the methods of said Class. Any help would be greatly appreciated.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.