Calling an ATL COM Dll from C program 
Author Message
 Calling an ATL COM Dll from C program

Ok, I've got a control that needs to be called both from scripting clients
and a vanilla C++ (no MFC, preferably no ATL) app.

Can someone point me to some resources on what I (or rather, the vanilla C
app), will need to do to interface with my control?

Is OleCreate( ) the right function?

More importantly, is there a way to automatically generate a class wrapper
for my control like when you use class wizard in an MFC project (but one
that doesn't use MFC).

Ryan Schneider
NeoWorx Inc.



Sat, 20 Jul 2002 03:00:00 GMT  
 Calling an ATL COM Dll from C program

Quote:

>Ok, I've got a control that needs to be called both from scripting clients
>and a vanilla C++ (no MFC, preferably no ATL) app.

>Can someone point me to some resources on what I (or rather, the vanilla C
>app), will need to do to interface with my control?

>Is OleCreate( ) the right function?

>More importantly, is there a way to automatically generate a class wrapper
>for my control like when you use class wizard in an MFC project (but one
>that doesn't use MFC).

>Ryan Schneider
>NeoWorx Inc.

The easiest way if you're using Visual C++ 5 or later, is to use the #import
preprocessor directive. It should be fairly well documented in MSDN. I wouldn't
use the smart pointers though, just the interface and CoCreateInstance
/erik


Mon, 22 Jul 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. call a VB COM dll thru a C++ COM dll from a C program

2. call a VB COM dll thru a C++ COM dll from a C program

3. ATL COM - Passing ATL COM classes through another ATL COM class in the same app

4. Calling ATL COM Dll from Remote Machine

5. how to call function in a DLL from ATL COM method

6. how to call function in a DLL from ATL COM method

7. ATL COM object hangs on user32.dll MessageBoxA() call

8. ATL COM object hangs on user32.dll MessageBoxA() call

9. Problem calling VB COM dll from VC++ multithreaded COM EXE client

10. diff b/w usual .dll and .dll developed in atl com

11. basic que abt pure C++ COM Dll and ATL dll

12. Converting Plain DLL to ATL COM based Dll

 

 
Powered by phpBB® Forum Software