Answers for "create extern to be usable in c#"

0

create extern to be usable in c#

class Foo {
public:
  int Bar();
};
extern "C" Foo* Foo_Create() { return new Foo(); }
extern "C" int Foo_Bar(Foo* pFoo) { return pFoo->Bar(); }
extern "C" void Foo_Delete(Foo* pFoo) { delete pFoo; }
Posted by: Guest on March-03-2022
0

create extern to be usable in c#

class __declspec(dllexport) CClassName
{
 public:
    CClassName();
    ~CClassName();
    void function();

};
Posted by: Guest on March-03-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language