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

I have a third party COM DLL written in VBA (just application
extension).
I need to call it from C program (done in VC++ environment). I tried
doing this with the common # import, as follows:
#import "E:\Program Files\SampleCOM.dll" no_namespace

However, this does not work, I get the following error:

error C2773: #import only available in C++ compiler
(which is logical).
However, I have no idea how to call this from C?! I have been searching
the MSDN etc. but for the life of me could not find SIMPLE, and
straightforward explanation.
I would REALLY appreciate any help.
Thanks a lot.

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



Sun, 16 Mar 2003 03:00:00 GMT  
 Calling COM DLL from .c files

: I have a third party COM DLL written in VBA (just application
: extension).
: I need to call it from C program (done in VC++ environment). I tried
: doing this with the common # import, as follows:
: #import "E:\Program Files\SampleCOM.dll" no_namespace

: However, this does not work, I get the following error:

: error C2773: #import only available in C++ compiler
: (which is logical).
: However, I have no idea how to call this from C?! I have been searching
: the MSDN etc. but for the life of me could not find SIMPLE, and
: straightforward explanation.
: I would REALLY appreciate any help.
: Thanks a lot.

COM, DLL, VBA and so on, are Windows-specific terms and are not
supported by standard C. So this question is off-topic here, asking
in a Windows programmer newsgroup would be more appropriate.

--

| Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #80 D+ ADA N+++ |
| http://www.helsinki.fi/~palaste       W++ B OP+                     |
\----------------------------------------- Finland rules! ------------/

"Bad things only happen to scoundrels."
   - Moominmamma



Sun, 16 Mar 2003 03:00:00 GMT  
 Calling COM DLL from .c files
I have a third party COM DLL written in VB (just application extension).
I need to call it from C program (done in VC++ environment). I tried
doing this with the common # import, as follows:
#import "E:\Program Files\SampleCOM.dll" no_namespace
However, this does not work, I get the following error:

error C2773: #import only available in C++ compiler
(which is logical).

However, I have no idea how to call this from C?!
I have been searching the MSDN etc. but for the life of me could not
find SIMPLE, and straightforward explanation.
I would REALLY appreciate any help.
Thanks a lot.

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



Sun, 16 Mar 2003 03:00:00 GMT  
 Calling COM DLL from .c files
Newsgroups are not chat rooms. We don't hang around here in real-time,
seeing people come on-line and talk stuff with us. We check in here at
our leisure and see what has been written. Thus, the delay between you
posting a message and seeing the reply can vary from hours to days,
even weeks.
Bear this in mind before reposting your question "just in case". Also
note that we're in this solely out of good will - we don't get paid for
scribbling on comp.lang.c, and we most certainly aren't a personal
consulting service. So we don't have any obligation to help you, and
repeated questions may seem irritating.
Just thought I'd mention that.

--

| Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #80 D+ ADA N+++ |
| http://www.helsinki.fi/~palaste       W++ B OP+                     |
\----------------------------------------- Finland rules! ------------/

"'I' is the most beautiful word in the world."
   - John Nordberg



Sun, 16 Mar 2003 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Calling COM DLL from .c files

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

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

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

5. problem getting header file for the COM dll that uses msado15.dll

6. HELP: Call other DLLs from a COM

7. call a C# class from a VB 6 COM dll

8. C DLL making calls to a COM object

9. Calling a COM object from a C dll

10. Calling "unmanaged" com dll from c#

11. HELP: Call other DLLs from a COM

12. calling a method in a J++ COM DLL from C++

 

 
Powered by phpBB® Forum Software