Click here to Skip to main content
15,912,069 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Rookie Pin
PJ Arends7-Dec-02 11:45
professionalPJ Arends7-Dec-02 11:45 
GeneralRe: Rookie Pin
Nitron7-Dec-02 12:37
Nitron7-Dec-02 12:37 
GeneralRe: Rookie Pin
PJ Arends7-Dec-02 12:50
professionalPJ Arends7-Dec-02 12:50 
GeneralRe: Rookie Pin
jhwurmbach8-Dec-02 22:11
jhwurmbach8-Dec-02 22:11 
GeneralIE plugin Pin
xxhimanshu6-Dec-02 19:20
xxhimanshu6-Dec-02 19:20 
GeneralRe: IE plugin Pin
Laurent Michalkovic6-Dec-02 21:52
Laurent Michalkovic6-Dec-02 21:52 
GeneralRe: IE plugin Pin
xxhimanshu6-Dec-02 22:53
xxhimanshu6-Dec-02 22:53 
General#import directive Pin
nebbish6-Dec-02 19:02
nebbish6-Dec-02 19:02 
Starting with an example situation.....some of you might know that when you create an ATL COM project using the VisualStudio new project wizard, the newly created resource (*.rc) file will contain a TEXTINCLUDE directive that includes the project's type library (*.tlb generated from MIDL compiling the *.idl file) INTO the resulting binary (EXE or DLL).

Now, my question involves the case when 2 or MORE type libraries are included in this fashion into the resulting binary file.

If you are using the API function 'LoadTypeLib', you can specify which of the included type libraries you want like this:

LoadTypeLib("C:\\MyServer.dll", ...) for the first,   (or also "...\\1")<br />
LoadTypeLib("C:\\MyServer.dll\\2", ...) for the second,<br />
LoadTypeLib("C:\\MyServer.dll\\3", ...) for the third, and so on<br />


Mad | :mad: HOW CAN THIS BE DONE WITH THE '#import' directive?????????????Mad | :mad:

I can't believe microsoft would ignore the capability of generating com interface wrapper classes for secondary type libraries.

Is there an extractor tool that I'm unaware of that removes type libraries from 'dll's or 'exe's and saves them as 'tlb's.

I don't want to START with OleView, THEN find object, THEN copy Idl definition, (THEN find next object, THEN copy idl definition,...) THEN Midl compile, THEN FINALLY #import (besides this process is incomplete unless you ALREADY have a list of ALL the COM class objects that exist in the secondary type library).

HEEEEEEEEEEELLLLLP, i'm dieing here Dead | X|



thanks,
nebbish

Smart, Sexy, Sane. Pick two.
GeneralRe: #import directive Pin
Michael Dunn6-Dec-02 20:25
sitebuilderMichael Dunn6-Dec-02 20:25 
GeneralCListCtrl: What message to use for an event handler.. Pin
trustno16-Dec-02 17:22
trustno16-Dec-02 17:22 
GeneralRe: CListCtrl: What message to use for an event handler.. Pin
Michael Dunn6-Dec-02 20:32
sitebuilderMichael Dunn6-Dec-02 20:32 
GeneralMoving a single control in on HScroll in a CScrollView class Pin
VanHlebar6-Dec-02 16:10
VanHlebar6-Dec-02 16:10 
Questionhow to read data into an array in visual c++ Pin
KBL6-Dec-02 14:46
KBL6-Dec-02 14:46 
AnswerRe: how to read data into an array in visual c++ Pin
Christian Graus6-Dec-02 14:51
protectorChristian Graus6-Dec-02 14:51 
GeneralRe: how to read data into an array in visual c++ Pin
KBL6-Dec-02 15:16
KBL6-Dec-02 15:16 
GeneralRe: how to read data into an array in visual c++ Pin
Christian Graus6-Dec-02 15:27
protectorChristian Graus6-Dec-02 15:27 
GeneralRe: how to read data into an array in visual c++ Pin
KBL6-Dec-02 16:10
KBL6-Dec-02 16:10 
GeneralRe: how to read data into an array in visual c++ Pin
Nitron7-Dec-02 4:50
Nitron7-Dec-02 4:50 
QuestionFiles: What is more efficient? Pin
AlexMarbus6-Dec-02 12:51
AlexMarbus6-Dec-02 12:51 
AnswerRe: Files: What is more efficient? Pin
Nitron6-Dec-02 13:36
Nitron6-Dec-02 13:36 
GeneralRe: Files: What is more efficient? Pin
AlexMarbus6-Dec-02 13:37
AlexMarbus6-Dec-02 13:37 
AnswerRe: Files: What is more efficient? Pin
Michael Dunn6-Dec-02 14:13
sitebuilderMichael Dunn6-Dec-02 14:13 
GeneralRe: Files: What is more efficient? Pin
AlexMarbus6-Dec-02 14:19
AlexMarbus6-Dec-02 14:19 
QuestionHow to tell if a file is opened? Pin
Jonathan Gilligan6-Dec-02 12:34
Jonathan Gilligan6-Dec-02 12:34 
AnswerRe: How to tell if a file is opened? Pin
Ravi Bhavnani6-Dec-02 13:06
professionalRavi Bhavnani6-Dec-02 13:06 

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.