Click here to Skip to main content
15,888,610 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionHow Can use CFileDialog in WTL Frameworks? Pin
Boyren18-May-03 1:22
Boyren18-May-03 1:22 
AnswerRe: How Can use CFileDialog in WTL Frameworks? Pin
Boyren18-May-03 1:40
Boyren18-May-03 1:40 
GeneralCstring/Atlstr.h Pin
DuFF17-May-03 1:36
DuFF17-May-03 1:36 
GeneralRe: Cstring/Atlstr.h Pin
Tim Smith17-May-03 4:07
Tim Smith17-May-03 4:07 
GeneralRe: Cstring/Atlstr.h Pin
Michael Dunn17-May-03 7:52
sitebuilderMichael Dunn17-May-03 7:52 
GeneralRe: Cstring/Atlstr.h Pin
DuFF17-May-03 8:57
DuFF17-May-03 8:57 
GeneralRe: Cstring/Atlstr.h Pin
Michael Dunn17-May-03 13:38
sitebuilderMichael Dunn17-May-03 13:38 
GeneralATL DLL Newbie Question Pin
James Spibey16-May-03 10:07
James Spibey16-May-03 10:07 
Hey Guys,

I'm trying to port a plain WIN32 dll over to another system which uses ATL to implement the interface. I know nothing about ATL but I've sort of got it working aside from the fact I can't figure out how to get the HINSTANCE of my DLL.

The DLLmain does the following
CComModule _Module;

BEGIN_OBJECT_MAP(ObjectMap)
OBJECT_ENTRY(CLSID_My_Plugin, CMyPlugin)
END_OBJECT_MAP()

BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID /*lpReserved*/)
{
    if (dwReason == DLL_PROCESS_ATTACH)
    {
        _Module.Init(ObjectMap, hInstance);
        DisableThreadLibraryCalls(hInstance);
    }
    else if (dwReason == DLL_PROCESS_DETACH)
        _Module.Term();
    return TRUE;    // ok
}


I can see the _Module gets the HINSTANCE here but how do I get to it from the CMyPlugin class?

Cheers

James
GeneralRe: ATL DLL Newbie Question Pin
Charles Spirz16-May-03 11:14
Charles Spirz16-May-03 11:14 
GeneralRe: ATL DLL Newbie Question Pin
James Spibey16-May-03 12:20
James Spibey16-May-03 12:20 
QuestionUsing yourDLL in myDLL, /FORCE:MULTIPLE ? Pin
SoloVision16-May-03 4:04
SoloVision16-May-03 4:04 
GeneralCMap and CComPtr Pin
Paul Selormey15-May-03 0:28
Paul Selormey15-May-03 0:28 
GeneralUsing bitset as key in a map Pin
Rox27114-May-03 5:17
Rox27114-May-03 5:17 
GeneralRe: Using bitset as key in a map Pin
Joaquín M López Muñoz14-May-03 9:12
Joaquín M López Muñoz14-May-03 9:12 
GeneralRe: Using bitset as key in a map Pin
Rox27114-May-03 21:34
Rox27114-May-03 21:34 
GeneralRe: Using bitset as key in a map Pin
Rox27114-May-03 22:54
Rox27114-May-03 22:54 
GeneralRe: Using bitset as key in a map Pin
Stuart Dootson14-May-03 23:27
professionalStuart Dootson14-May-03 23:27 
Generalhelp please!!!!!!!!! Pin
xxhimanshu14-May-03 2:03
xxhimanshu14-May-03 2:03 
GeneralTLB and DLL Pin
Hans Ruck13-May-03 21:40
Hans Ruck13-May-03 21:40 
GeneralRe: TLB and DLL Pin
Stephane Rodriguez.13-May-03 21:50
Stephane Rodriguez.13-May-03 21:50 
GeneralRe: TLB and DLL Pin
Hans Ruck13-May-03 22:32
Hans Ruck13-May-03 22:32 
QuestionSTL - multimap - equal keys? Pin
Bash13-May-03 0:52
Bash13-May-03 0:52 
AnswerRe: STL - multimap - equal keys? Pin
Joaquín M López Muñoz13-May-03 2:42
Joaquín M López Muñoz13-May-03 2:42 
GeneralIDL enum and VC Import Pin
John M. Drescher12-May-03 10:16
John M. Drescher12-May-03 10:16 
GeneralRe: IDL enum and VC Import Pin
Michael Dunn12-May-03 18:09
sitebuilderMichael Dunn12-May-03 18:09 

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.