Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windowless Control Container

Status
Not open for further replies.

pauljeffs

Programmer
Joined
May 31, 2001
Messages
2
Location
GB
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....

cheers

Paul J
 
I have such short project, what I made in COM API. John Fill
1c.bmp


ivfmd@mail.md
 
so, would it be possible to view a copy of 'said' project please?
 
Ok,
You can downloat it at:
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
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top