Click here to Skip to main content
15,919,434 members
Home / Discussions / COM
   

COM

 
GeneralRe: VB COM problem Pin
Brian Shifrin1-Dec-03 7:07
Brian Shifrin1-Dec-03 7:07 
GeneralRe: VB COM problem Pin
andyhk951-Dec-03 13:39
andyhk951-Dec-03 13:39 
GeneralTOM (Text Object Model) Pin
Andre123427-Nov-03 6:00
Andre123427-Nov-03 6:00 
GeneralThread/ COM Connection point Pin
benglish7225-Nov-03 17:49
benglish7225-Nov-03 17:49 
GeneralProblem solved, thanks! Pin
benglish7225-Nov-03 18:35
benglish7225-Nov-03 18:35 
GeneralProblem with Custom COM object in implementation of Interface Pin
bryces25-Nov-03 16:08
bryces25-Nov-03 16:08 
Generalworking with New Enum... Pin
rajdawg25-Nov-03 15:09
rajdawg25-Nov-03 15:09 
Generalconstants in IDL file Pin
srikanthos25-Nov-03 1:23
srikanthos25-Nov-03 1:23 
Hi all,

I am facing a strange situation where I am supposed to use an idl which has constants and import it into multiple files. The scenario is like this:

// AAA.idl
module XXXX
{
const DWORD JUNK_1 = 0x20;
...............................................
}


// My1.idl
import AAA.idl;
...........

// My2.idl
import AAA.idl;

As shown above, I need to import the AAA.idl into multiple IDL files and since constants cannot be defined in multiple cpp files within the same project, I am getting "already defined" linker errors (LNK 2001). I cannot avoid importing the AAA.idl into multiple files since I need other interfaces defined within the AAA.idl in several places, how can I overcome this error of redefinitions?

Another point to note is that the AAA.idl file is supplied by someone else, so I cannot modify before using it since it will be a continuous maintenance nightmare. I am mainly looking for options such as ignoring the module XXXX while importing the AAA.idl.

Any help to solve this problem is very much appreciated.

Thanks in advance,
Srikanth

GeneralCEdit in COM Pin
Tomaz Rotovnik24-Nov-03 20:48
Tomaz Rotovnik24-Nov-03 20:48 
GeneralRe: CEdit in COM Pin
Tomaz Rotovnik24-Nov-03 21:02
Tomaz Rotovnik24-Nov-03 21:02 
GeneralRe: CEdit in COM Pin
Tomaz Rotovnik24-Nov-03 22:57
Tomaz Rotovnik24-Nov-03 22:57 
Generalusing serverxmlhttp from a service or existing process Pin
noahsarf24-Nov-03 8:30
noahsarf24-Nov-03 8:30 
GeneralIID_... but no CLSID_... Pin
Xteuk24-Nov-03 4:46
Xteuk24-Nov-03 4:46 
GeneralRe: IID_... but no CLSID_... Pin
Mike Dimmick24-Nov-03 5:31
Mike Dimmick24-Nov-03 5:31 
GeneralRe: IID_... but no CLSID_... Pin
Xteuk24-Nov-03 22:13
Xteuk24-Nov-03 22:13 
GeneralMultiThreaded OutProc Server Pin
TroLoo22-Nov-03 7:22
TroLoo22-Nov-03 7:22 
GeneralRe: MultiThreaded OutProc Server Pin
valikac24-Nov-03 5:49
valikac24-Nov-03 5:49 
Generalneutral threading in XP vs. Win2000 Pin
jremignanti21-Nov-03 11:18
jremignanti21-Nov-03 11:18 
QuestionHow can i change the dllhost appbase??? Pin
Ik@20-Nov-03 23:59
Ik@20-Nov-03 23:59 
QuestionHow do I change the program id within the com project Pin
WoodyMou19-Nov-03 5:21
WoodyMou19-Nov-03 5:21 
AnswerRe: How do I change the program id within the com project Pin
Steve S19-Nov-03 5:44
Steve S19-Nov-03 5:44 
QuestionSame method and property name? Pin
snappa19-Nov-03 2:29
snappa19-Nov-03 2:29 
AnswerRe: Same method and property name? Pin
Vi221-Nov-03 2:31
Vi221-Nov-03 2:31 
GeneralMessages in ActiveX components Pin
Anonymous18-Nov-03 10:06
Anonymous18-Nov-03 10:06 
GeneralRe: Messages in ActiveX components Pin
Anonymous18-Nov-03 10:32
Anonymous18-Nov-03 10:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.