Click here to Skip to main content
15,867,308 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionModeless Dialogs? or Distroy Dialogs? Pin
aei_totten31-May-06 4:47
aei_totten31-May-06 4:47 
AnswerRe: Modeless Dialogs? or Distroy Dialogs? Pin
David Crow31-May-06 5:06
David Crow31-May-06 5:06 
GeneralRe: Modeless Dialogs? or Distroy Dialogs? Pin
aei_totten31-May-06 5:28
aei_totten31-May-06 5:28 
GeneralRe: Modeless Dialogs? or Distroy Dialogs? Pin
David Crow31-May-06 5:52
David Crow31-May-06 5:52 
QuestionRegister a TLB file? Pin
Ista31-May-06 4:33
Ista31-May-06 4:33 
AnswerRe: Register a TLB file? Pin
Sarath C31-May-06 4:40
Sarath C31-May-06 4:40 
AnswerRe: Register a TLB file? Pin
James R. Twine31-May-06 4:44
James R. Twine31-May-06 4:44 
AnswerRe: Register a TLB file? Pin
Roger Stoltz31-May-06 5:07
Roger Stoltz31-May-06 5:07 
Ista wrote:
DET.TLB Its a type library
But, when I use it I get the error


Confused | :confused:
Use it? How?
A .tlb file contains a description of interfaces and other types defined in a .idl or .odl file that is compiled with the MIDL compiler.
The typelibrary (the .tlb file) could be included in the distributable binary, e.g. an ActiveX control, as a resource; or it could be distributed as stand alone file.
Either way it's tightly connected to the binary that it describes.


Ista wrote:
I thought maybe if I create a dll from the tlb file, I could then use it


WTF | :WTF:
Think of the type library as a header file. When you've had that thought I assume you realize that you cannot compile a header file and build an executable application of it.
We "use" the type library when we add a library to the project, it could be a DLL, a COM server, an ActiveX control etc.


What happens here is that somewhere ::CoCreateInstance() is called and asked to create an object that has not been registered, at least not yet.
The cure for this is naturally to register the object/server.

--
Roger


It's supposed to be hard, otherwise anybody could do it!

Regarding CodeProject: "resistance is pointless; you will be assimilated"

GeneralRe: Register a TLB file? Pin
Ista31-May-06 5:33
Ista31-May-06 5:33 
GeneralRe: Register a TLB file? Pin
Roger Stoltz31-May-06 6:25
Roger Stoltz31-May-06 6:25 
GeneralRe: Register a TLB file? Pin
Ista31-May-06 7:47
Ista31-May-06 7:47 
AnswerRe: Register a TLB file? Pin
V.31-May-06 8:38
professionalV.31-May-06 8:38 
GeneralRe: Register a TLB file? Pin
Ista31-May-06 8:45
Ista31-May-06 8:45 
GeneralRe: Register a TLB file? [modified] Pin
V.31-May-06 8:57
professionalV.31-May-06 8:57 
GeneralRe: Register a TLB file? [modified] Pin
Ista31-May-06 9:00
Ista31-May-06 9:00 
QuestionIllegal Instruction Pin
Russell'31-May-06 3:22
Russell'31-May-06 3:22 
AnswerRe: Illegal Instruction Pin
Chris Losinger31-May-06 3:28
professionalChris Losinger31-May-06 3:28 
GeneralRe: Illegal Instruction Pin
Russell'31-May-06 3:32
Russell'31-May-06 3:32 
GeneralRe: Illegal Instruction Pin
Cedric Moonen31-May-06 3:46
Cedric Moonen31-May-06 3:46 
GeneralRe: Illegal Instruction Pin
Russell'31-May-06 4:06
Russell'31-May-06 4:06 
QuestionUnable to get device context Pin
shivditya31-May-06 3:02
shivditya31-May-06 3:02 
AnswerRe: Unable to get device context Pin
Hamid_RT31-May-06 3:15
Hamid_RT31-May-06 3:15 
AnswerRe: Unable to get device context Pin
Sarath C31-May-06 3:28
Sarath C31-May-06 3:28 
GeneralRe: Unable to get device context Pin
shivditya1-Jun-06 20:10
shivditya1-Jun-06 20:10 
AnswerRe: Unable to get device context Pin
eli1502197931-May-06 4:26
eli1502197931-May-06 4:26 

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.