|
From: Paul G. <pjg...@ie...> - 2003-04-14 20:11:34
|
Hi
This is my first post to this list, I have looked through the archives and
Googled, but I can't seem to find the answer to my problem.
I'm trying to try out some simple COM. I've created a Simple COM Server
suing MSVC 6.0 and copied the "SimpleServer.h" and "SimpleServer_i.c" files
to my Mingw project directory and included them in my project:
////////////////////
// SimpleCOMObject.h
#ifndef SIMPLE_COM_OBJECT_H
#define SIMPLE_COM_OBJECT_H
#include "SimpleServer.h"
.....
//////////////////////
// SimpleCOMObject.cpp
#include "SimpleCOMObject.h"
#include "SimpleServer_i.c"
#include <windows.h>
....
I've also modified the link line in my makefile:
g++ -o SimpleCOMTest.exe main.o COMGuard.o
SimpleCOMObject.o -lole32 -luuid -mconsole
But I get the following errors:
SimpleServer_i.c:29: conflicting types for 'typedef struct _IID IID'
C:\MinGW/include/basetypes.h:98:previous declaration as 'typedef struct GUID
IID'
SimpleServer_i.c:35: conflicting types for 'typedef struct _IID CLSID'
C:\MinGW/include/basetypes.h:99:previous declaration as 'typedef struct GUID
CLSID'
SimpleServer_i.c:38: conflicting types for 'const _IID IID_ISimpleObject'
SimpleServer.h:72: previous declaration as 'const IID IID_ISimpleObject'
SimpleServer_i.c:41: conflicting types for 'const _IID
LIBID_SIMPLESERVERLib'
SimpleServer.h:205: previous declaration as 'const IID IID_SIMPLESERVERLib'
SimpleServer_i.c:44: conflicting types for 'const _IID CLSID_SimpleObject'
SimpleServer.h:207: previous declaration as 'const CLSID CLSID_SimpleObject'
mingw32-make: *** [SimpleCOMObject.o] Error 1
Any pointer greatly appreciated!
Regards
Paul
Paul Grenyer
Email: pjg...@ie...
Web: www.paulgrenyer.co.uk
What do you mean you've never heard of Karnataka?
http://www.karnataka.org.uk
|