Calling COM from .c files 
Author Message
 Calling COM from .c files

Hello!

I have a slight conceptual (and very newbie!) problem:

I have application written in C , but compiled in VC++ 6.0.
Files are all ****.c.
Now, I have COM (ATL) objects, IN VC++.
How can I call my COM objects from the .C files?

Thanks everybody.

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Sun, 26 Jan 2003 03:00:00 GMT  
 Calling COM from .c files
when you compile an IDL, the generated header files contain definitions
which can be used from C as well..
Just define COBJMACROS and use the macros .. which will look somewhat like
IXXX_QueryInterface(), etc..

--
Girish Bharadwaj

Quote:

> Hello!

> I have a slight conceptual (and very newbie!) problem:

> I have application written in C , but compiled in VC++ 6.0.
> Files are all ****.c.
> Now, I have COM (ATL) objects, IN VC++.
> How can I call my COM objects from the .C files?

> Thanks everybody.

> Sent via Deja.com http://www.deja.com/
> Before you buy.



Sun, 26 Jan 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Calling COM DLL from .c files

2. Image File in COM Call

3. Calling COM DLL from .c files

4. Transfering Image Files in COM Calls

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

6. Enable COM clients call methods inside COM events

7. COM client crashes calling COM method

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

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

10. Calling a COM call back object's method fails if it is in Windows 98

11. Selling your product: cnet.com, smaller.com, mobileplanet.com, regnow.com, pocketgear.com, handango.com or what?

12. how to call a com object event from csharp

 

 
Powered by phpBB® Forum Software