I know that if you started the project as an ATL project, then you could simply Create a new ATL object, and it'll auto-generate all of these IUNKNOWN/IDISPATCH stuff, however, the EXE wasn't created as an ATL project. Is there a way for me to still get vc++ 6.0 to autogenerate the stuff for me?
You can't simply take a PE executable and have it automatically generate a COM component out of it. There are many reasons why this is so... a few are noted:
1) Your executable probably doesn't export (__declspec(dllexport) or in your .def file) any functions, so it couldn't simply permute the routines in your program and generate the IDL necessary for COM, etc.
2) Even if the above were possible, you're probably not returning HRESULTs.
Do you have the source code to this other project?
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.