Click here to Skip to main content
15,905,682 members
Home / Discussions / C#
   

C#

 
GeneralRe: Calling COM methods from a module NOT ALLOWED? Pin
normanordas16-Apr-04 3:00
normanordas16-Apr-04 3:00 
AnswerRe: Calling COM methods from a module NOT ALLOWED? Pin
Heath Stewart16-Apr-04 4:10
protectorHeath Stewart16-Apr-04 4:10 
Have you opened your library (which, btw, isn't the TLB file - that's only the typelib which contains information about the COM objects in your library) in depends.exe to find the exported function? It may be mangled using C++ decoration.

I'm curious why you can't create an RCW, though. If it is a COM control and contains a typelib (either as an external file or embedded in the .rsrc section of the executable) you can run tlbimp.exe on it (or the external .tlb file). If that doesn't seem to work, you should open the DLL in VS.NET to view the resources and see if the typelib uses an ID other than 0, which using tlbimp.exe you can specify the name of the DLL along with the ID for the embedded typelib like so:
tlbimp.exe MyLib.dll/1
If this also contains an ActiveX control, you can use aximp.exe to create an interop assembly that contains a control/controls that derive from AxHost, which derives from Control an can be used in a container control.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Calling COM methods from a module NOT ALLOWED? Pin
normanordas18-Apr-04 15:45
normanordas18-Apr-04 15:45 
GeneralRe: Calling COM methods from a module NOT ALLOWED? Pin
Heath Stewart19-Apr-04 2:22
protectorHeath Stewart19-Apr-04 2:22 
QuestionHow do you deal with checkboxes in C#??? Pin
adonisv15-Apr-04 10:43
adonisv15-Apr-04 10:43 
AnswerRe: How do you deal with checkboxes in C#??? Pin
Judah Gabriel Himango15-Apr-04 10:50
sponsorJudah Gabriel Himango15-Apr-04 10:50 
AnswerRe: How do you deal with checkboxes in C#??? Pin
Daniel Turini15-Apr-04 10:55
Daniel Turini15-Apr-04 10:55 
GeneralWhat a coincidence! Pin
adonisv15-Apr-04 12:01
adonisv15-Apr-04 12:01 
AnswerRe: How do you deal with checkboxes in C#??? Pin
Nnamdi Onyeyiri15-Apr-04 11:01
Nnamdi Onyeyiri15-Apr-04 11:01 
GeneralSetup Project with Crystal Pin
hxxbin15-Apr-04 10:22
hxxbin15-Apr-04 10:22 
GeneralRe: Setup Project with Crystal Pin
Heath Stewart15-Apr-04 11:10
protectorHeath Stewart15-Apr-04 11:10 
GeneralRe: Setup Project with Crystal Pin
hxxbin16-Apr-04 3:47
hxxbin16-Apr-04 3:47 
GeneralRe: Setup Project with Crystal Pin
hxxbin16-Apr-04 6:35
hxxbin16-Apr-04 6:35 
GeneralRe: Setup Project with Crystal Pin
Heath Stewart16-Apr-04 6:37
protectorHeath Stewart16-Apr-04 6:37 
GeneralRe: Setup Project with Crystal Pin
Braulio Dez15-Apr-04 23:40
Braulio Dez15-Apr-04 23:40 
GeneralRe: Setup Project with Crystal Pin
Braulio Dez15-Apr-04 23:41
Braulio Dez15-Apr-04 23:41 
GeneralRe: Setup Project with Crystal Pin
hxxbin16-Apr-04 3:46
hxxbin16-Apr-04 3:46 
GeneralRe: Setup Project with Crystal Pin
hxxbin16-Apr-04 4:37
hxxbin16-Apr-04 4:37 
GeneralRe: Setup Project with Crystal Pin
hxxbin16-Apr-04 7:22
hxxbin16-Apr-04 7:22 
GeneralCapitalize String in Grid Column Pin
Bitwise Gamgee15-Apr-04 10:05
Bitwise Gamgee15-Apr-04 10:05 
GeneralRe: Capitalize String in Grid Column Pin
Heath Stewart15-Apr-04 11:08
protectorHeath Stewart15-Apr-04 11:08 
GeneralRe: Capitalize String in Grid Column Pin
TimTM16-Apr-04 4:50
TimTM16-Apr-04 4:50 
GeneralRe: Capitalize String in Grid Column Pin
Heath Stewart16-Apr-04 5:55
protectorHeath Stewart16-Apr-04 5:55 
GeneralRe: Capitalize String in Grid Column Pin
Bitwise Gamgee16-Apr-04 5:55
Bitwise Gamgee16-Apr-04 5:55 
GeneralRe: Capitalize String in Grid Column Pin
Heath Stewart16-Apr-04 6:10
protectorHeath Stewart16-Apr-04 6:10 

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.