Does anyone have any samle source for a Windowless control container?.. failing this does anyone have any suggestions as to how to go about writing one...
The objective here is to end up with a C++ version of the VB user control....
If you have questions, just say.
1. you must compile the program.
2. Edit disptest2.reg
there should be the path to your program with command line parameter /Automation:
@="c:\\WorkSpace\\CppDebug\\disptest2\\debug\\disptest2.exe /Automation"
there shopuld be the path to generated tlb file:
@="c:\\WorkSpace\\CppDebug\\disptest2\\debug\\disptest2.tlb"
Disptest2.reg you should load into registry.
disptest2.h is automatically generated file after compilling the .idl file. Also disptest2_i.c and Debug\disptest2.tlb.
In VBA you can make code:
din xxx as object
din x as integer
set xxx = CreateObject("disptest2.application"
xxx.A = 1
x = xxx.A
set xxx = nothing 'releazing the object John Fill
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.