Click here to Skip to main content
15,921,884 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralClass wizard Pin
BicycleTheif1-Aug-05 5:40
BicycleTheif1-Aug-05 5:40 
GeneralRe: Class wizard Pin
RChin1-Aug-05 5:46
RChin1-Aug-05 5:46 
GeneralRe: Class wizard Pin
BicycleTheif1-Aug-05 5:49
BicycleTheif1-Aug-05 5:49 
GeneralRe: Class wizard Pin
RChin1-Aug-05 5:53
RChin1-Aug-05 5:53 
GeneralSmart Pointer Pin
LCI1-Aug-05 5:34
LCI1-Aug-05 5:34 
GeneralRe: Smart Pointer Pin
Marc Soleda1-Aug-05 5:40
Marc Soleda1-Aug-05 5:40 
GeneralRe: Smart Pointer Pin
Alex_Y1-Aug-05 5:42
Alex_Y1-Aug-05 5:42 
GeneralRe: Smart Pointer Pin
David Crow1-Aug-05 5:44
David Crow1-Aug-05 5:44 
Per MSDN:

Smart pointers are created when you use the new #import directive to "import" a type library. When you use #import, the Visual C++ compiler reads the type library from the file you specify.

All you really need to do is to use #import and use the smart pointer types it creates for you.

Visual C++ then creates two files which it automagically #includes in your compilation. They're stored in your output directory and are named with the same base name as the type library with the extensions ".TLH" and ".TLI." For instance, our program has the #import:

#import "..\NonATLObject.tlb"
and it generates two files in the output directory (DEBUG for debug builds), NonATLObject.TLH and NonATLObject.TLI.


Read more here.

While I don't provide a definition, see a small example here.


"One must learn from the bite of the fire to leave it alone." - Native American Proverb


GeneralCOM interface weirdity Pin
LCI1-Aug-05 5:31
LCI1-Aug-05 5:31 
GeneralRe: COM interface weirdity Pin
Alex_Y1-Aug-05 5:40
Alex_Y1-Aug-05 5:40 
GeneralRe: COM interface weirdity Pin
Michael Dunn1-Aug-05 6:55
sitebuilderMichael Dunn1-Aug-05 6:55 
GeneralGetQueueStatus Pin
Alex_Y1-Aug-05 4:58
Alex_Y1-Aug-05 4:58 
GeneralRe: GetQueueStatus Pin
David Crow1-Aug-05 5:46
David Crow1-Aug-05 5:46 
GeneralRe: GetQueueStatus Pin
Alex_Y1-Aug-05 6:05
Alex_Y1-Aug-05 6:05 
GeneralRe: GetQueueStatus Pin
David Crow1-Aug-05 6:33
David Crow1-Aug-05 6:33 
GeneralRe: GetQueueStatus Pin
Alex_Y1-Aug-05 7:37
Alex_Y1-Aug-05 7:37 
GeneralRe: GetQueueStatus Pin
David Crow1-Aug-05 7:58
David Crow1-Aug-05 7:58 
GeneralRe: GetQueueStatus Pin
Alex_Y1-Aug-05 8:39
Alex_Y1-Aug-05 8:39 
GeneralCSock and firewall Pin
Shay Harel1-Aug-05 4:56
Shay Harel1-Aug-05 4:56 
GeneralRe: CSock and firewall Pin
Anonymous1-Aug-05 5:13
Anonymous1-Aug-05 5:13 
GeneralRe: CSock and firewall Pin
Anonymous1-Aug-05 5:17
Anonymous1-Aug-05 5:17 
GeneralRe: CSock and firewall Pin
Anonymous2-Aug-05 7:14
Anonymous2-Aug-05 7:14 
QuestionConverting from MFC Ext DLL to standard MFC DLL? Pin
Anacreon1-Aug-05 4:48
Anacreon1-Aug-05 4:48 
AnswerRe: Converting from MFC Ext DLL to standard MFC DLL? Pin
Alex_Y1-Aug-05 4:56
Alex_Y1-Aug-05 4:56 
GeneralRe: Converting from MFC Ext DLL to standard MFC DLL? Pin
Anacreon1-Aug-05 5:03
Anacreon1-Aug-05 5:03 

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.