I have lots of structures/classes in my library, so I need to be COM; there is no specific requirement, all I needed was just a fancy way of exposing / calling a static vc function; I have now in c code, CMyClass::DoThis(param1, param2), so no need to create new object in c for this; I'll just create a new object in vb, call my function and discard object afterwards Was thinking in vb I could've have CMyClass.DoThis(param1, param2) instead of dim c as new CMyClass c.DoThis(param1, paramt) thx
P
Pop Cristian
@Pop Cristian
Posts
-
Declare shared function in com (vc++) -
Declare shared function in com (vc++)Static functions from c++ are equivalent to shared from VB; was thinking there is a way to just expose this static functions; if there isn't will just have to call code in vb common way, using object thx
-
Declare shared function in com (vc++)Shared vb function than creates an instance of my class, calls function (static one) then delete that object is a good solution, but not a perfect one. Was thinking perhaps there is a keyword that will expose function the way I want If you can tell me what's the other way arround please let me know thx
-
Declare shared function in com (vc++)How should declare function in COM (vc++) in order to be seen as shared in vb (no instance object needed for function call)? thx