Click here to Skip to main content
15,878,970 members
Home / Discussions / COM
   

COM

 
Generalerror in createProcessinginstruction Pin
cj_rahul10-Feb-05 22:19
cj_rahul10-Feb-05 22:19 
GeneralEmbedded Pin
Jnewg59-Feb-05 5:33
Jnewg59-Feb-05 5:33 
GeneralRe: MailItem Interface Problem in Outllok Pin
Jnewg59-Feb-05 5:43
Jnewg59-Feb-05 5:43 
Generalimporting/exporting data from c++ to excel Pin
itsh118-Feb-05 5:43
itsh118-Feb-05 5:43 
GeneralSimple Basic, tricky C++ Pin
AttaTroll7-Feb-05 11:36
AttaTroll7-Feb-05 11:36 
GeneralRe: Simple Basic, tricky C++ Pin
Anonymous8-Feb-05 3:17
Anonymous8-Feb-05 3:17 
GeneralRe: Simple Basic, tricky C++ Pin
Anonymous8-Feb-05 10:54
Anonymous8-Feb-05 10:54 
GeneralImporting C# methods Pin
Fragging7-Feb-05 2:19
Fragging7-Feb-05 2:19 
Thanks for taking time to read this.

I have built a C# DLL full of business objects. Initially these objects were going to be used by a C# wizard only, but as development went on we determined that these objects and their methods could be used by an MFC DLL as well. I figured COM Interop...no problem.

Well I ran into problems after adding in all of the interfaces, adding a strong name to the DLL, creating a Type Library using the typexp.exe to create the type library and using regasm with the /codebase option to register the interfaces and coClasses.

The problems revolve around the client. The client trys to import the type library, generating the tli and tlh files. Inside of these files the GetType method defined by the base object in .NET has arguments of _Type and _TypePtr. The _Type and _TypePtr are not defined in any of the files that I can find.

I have a work around of substituting long for _Type and _TypePtr. Really since we are not calling GetType, I figured sc#$w it! Also since we are using interfaces here shouldn't GetType be banned from the interface. Everything compiled and ran.

I don't want to redefine the _TypePtr and _Type within the client as a long, nor do I want to have to parse through each tli and tlh file to substitute the hacked GetType method definition and declaration everytime I add to the type library.

Has anybody run into this problem before?
Is there a Header that I could add to the client to allow for the proper defninition of the _Type and _TypePtr?

Once again thanks for reading this.

All the best

Ward

Frag
Try, Fail..Fail, Succeed
Tool Developer
Michigan, USA
GeneralRe: Importing C# methods Pin
Fragging28-Feb-05 3:10
Fragging28-Feb-05 3:10 
GeneralRe: Importing C# methods Pin
MichaelLeslie30-Apr-08 12:20
MichaelLeslie30-Apr-08 12:20 
GeneralUsing DsoFramer.OCX Pin
Jetli Jerry5-Feb-05 2:57
Jetli Jerry5-Feb-05 2:57 
GeneralRe: Using DsoFramer.OCX Pin
vishalmore7-Feb-05 19:53
vishalmore7-Feb-05 19:53 
GeneralRe: Using DsoFramer.OCX Pin
Jetli Jerry9-Feb-05 0:13
Jetli Jerry9-Feb-05 0:13 
GeneralRe: Using DsoFramer.OCX Pin
vishalmore9-Feb-05 1:11
vishalmore9-Feb-05 1:11 
GeneralRe: Using DsoFramer.OCX Pin
Jetli Jerry11-Feb-05 1:55
Jetli Jerry11-Feb-05 1:55 
GeneralRe: Using DsoFramer.OCX Pin
vishalmore11-Feb-05 2:09
vishalmore11-Feb-05 2:09 
GeneralRe: Using DsoFramer.OCX Pin
Jetli Jerry11-Feb-05 2:51
Jetli Jerry11-Feb-05 2:51 
GeneralRe: Using DsoFramer.OCX Pin
vishalmore13-Feb-05 19:47
vishalmore13-Feb-05 19:47 
GeneralRe: Using DsoFramer.OCX Pin
Jetli Jerry13-Feb-05 20:20
Jetli Jerry13-Feb-05 20:20 
GeneralRe: Using DsoFramer.OCX Pin
vishalmore13-Feb-05 22:44
vishalmore13-Feb-05 22:44 
GeneralCOM DLL instantiated twice Pin
Pascal Pinchauret-Lamothe4-Feb-05 4:33
Pascal Pinchauret-Lamothe4-Feb-05 4:33 
GeneralRe: COM DLL instantiated twice Pin
rwestgraham6-Feb-05 11:50
rwestgraham6-Feb-05 11:50 
GeneralRe: COM DLL instantiated twice Pin
Pascal Pinchauret-Lamothe6-Feb-05 20:41
Pascal Pinchauret-Lamothe6-Feb-05 20:41 
GeneralRe: COM DLL instantiated twice Pin
rwestgraham7-Feb-05 0:22
rwestgraham7-Feb-05 0:22 
GeneralRe: COM DLL instantiated twice Pin
Pascal Pinchauret-Lamothe7-Feb-05 21:33
Pascal Pinchauret-Lamothe7-Feb-05 21:33 

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.