andreat
asked on
VB & C++ communication
hi,
I would like to enquire abt the following:
1) My GUI is in VB
2) My callback functions are in C++
Is DLL the only way to communicate between the 2, i.e. i compile the C++ functions as a dll?
Or can i compile the C++ and use the object files *.o for compilation with the VB application?
Or are there any better ways?
Please advise.
Thanks.
I would like to enquire abt the following:
1) My GUI is in VB
2) My callback functions are in C++
Is DLL the only way to communicate between the 2, i.e. i compile the C++ functions as a dll?
Or can i compile the C++ and use the object files *.o for compilation with the VB application?
Or are there any better ways?
Please advise.
Thanks.
ASKER
hi,
due to the complexity of the project and the little time left,
i have to stick to using VB for GUI and VC++ for callbacks.
as such, would appreciate it if u can recommend other methods
where I can satisfy the above requirements and the program can work. can i compile of C++'s object files instead of dll?
andrea
due to the complexity of the project and the little time left,
i have to stick to using VB for GUI and VC++ for callbacks.
as such, would appreciate it if u can recommend other methods
where I can satisfy the above requirements and the program can work. can i compile of C++'s object files instead of dll?
andrea
ASKER
hi,
due to the complexity of the project and the little time left,
i have to stick to using VB for GUI and VC++ for callbacks.
as such, would appreciate it if u can recommend other methods
where I can satisfy the above requirements and the program can work. can i compile of C++'s object files instead of dll?
due to the complexity of the project and the little time left,
i have to stick to using VB for GUI and VC++ for callbacks.
as such, would appreciate it if u can recommend other methods
where I can satisfy the above requirements and the program can work. can i compile of C++'s object files instead of dll?
ASKER
sorry but i can't use your advice due to my comment above.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks for ur advice, though u sound as if I've offended u in some way or another.
No not at all. I simply perceived frustration in your query and presumed a response burdening U with a new learning curve would not be what U wanted to here. The gospel documents of COM and COM/VB are Dale Rogerson's Inside COM, Dan Appleman's COM/ActiveX book, and basic COM tutorial would be Don Box's Essential COM. COM is not the easiest thing to learn... buy some books and digest them.
HTH
HTH
ASKER
hi,
i guess my frustrations showed in my msg. time is running out on me :)
irregardless, thanks for your help.
andrea
i guess my frustrations showed in my msg. time is running out on me :)
irregardless, thanks for your help.
andrea
In your case, for max preformance,
convert your C++ callbacks to VB. If you do not wish to do this,
have the GUI constructed with C++.
1 Language should be your focus here.