i have created .netmodule c# class library. trying call static c# method in .netmodule c++ code. cannot figure out syntax (my c++ weak)to so. here c# method.
namespace mymodule { public static class versionchecker { public static string getdllversion() { //do stuff return version; } } }
i have tried both solutions below...
mymodule::versionchecker.getdllversion(); mymodule::versionchecker->getdllversion();
but getting following error on both lines...
error c2143: syntax error : missing ';' before '.'
or
error c2143: syntax error : missing ';' before '->'
can tell me how can call static method getdllversion
c++ code?
in c++, references static members (or types) use ::
:
mymodule::versionchecker::getdllversion();
Comments
Post a Comment