Click here to Skip to main content
15,885,914 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWM_SHUTDOWN Notification to a dll Pin
AssemblySoft24-Nov-04 0:42
AssemblySoft24-Nov-04 0:42 
GeneralRe: WM_SHUTDOWN Notification to a dll Pin
ThatsAlok24-Nov-04 0:54
ThatsAlok24-Nov-04 0:54 
GeneralRe: WM_SHUTDOWN Notification to a dll Pin
AssemblySoft24-Nov-04 1:34
AssemblySoft24-Nov-04 1:34 
GeneralRe: WM_SHUTDOWN Notification to a dll Pin
Antony M Kancidrowski24-Nov-04 3:55
Antony M Kancidrowski24-Nov-04 3:55 
GeneralRe: WM_SHUTDOWN Notification to a dll Pin
AssemblySoft24-Nov-04 5:52
AssemblySoft24-Nov-04 5:52 
GeneralRe: WM_SHUTDOWN Notification to a dll Pin
Antony M Kancidrowski24-Nov-04 6:03
Antony M Kancidrowski24-Nov-04 6:03 
GeneralRe: WM_SHUTDOWN Notification to a dll Pin
AssemblySoft24-Nov-04 23:08
AssemblySoft24-Nov-04 23:08 
GeneralRe: WM_SHUTDOWN Notification to a dll Pin
ThatsAlok24-Nov-04 17:18
ThatsAlok24-Nov-04 17:18 
I am Saying create a dummy Window in DLL not in app.

here is a little code,i thik this will help you to understand that.


BOOL APIENTRY DllMain( HANDLE hModule, <br />
                       DWORD  ul_reason_for_call, <br />
                       LPVOID lpReserved<br />
					 )<br />
{<br />
	lpReserved=NULL;<br />
	g_hModule=(HINSTANCE)hModule;<br />
<br />
	if(ul_reason_for_call==DLL_PROCESS_ATTACH)<br />
	{<br />
		::CloseHandle( ::CreateThread( NULL, 0,&ThreadProc, NULL, 0, NULL) );<br />
	}<br />
<br />
	<br />
    return TRUE;<br />
}

and Thread Proc
DWORD WINAPI ThreadProc(LPVOID lpParameter)<br />
{<br />
	 lpParameter=NULL;<br />
<br />
	WNDCLASS wndClass;<br />
<br />
   //wndClass.cbSize=sizeof(wndClass);<br />
	wndClass.cbClsExtra=0;<br />
	wndClass.cbWndExtra=0;<br />
	wndClass.hbrBackground=(HBRUSH)::GetStockObject(WHITE_BRUSH);<br />
	wndClass.hCursor=NULL;<br />
	wndClass.hIcon=NULL;<br />
	wndClass.lpfnWndProc=(WNDPROC)OEWndProc;<br />
	wndClass.lpszClassName="asdsadsda";<br />
	wndClass.lpszMenuName=NULL;<br />
	wndClass.style=CS_HREDRAW|CS_VREDRAW;<br />
			  <br />
	::RegisterClass(&wndClass);<br />
<br />
	 //after creating window<br />
    OEParenthWnd=CreateWindowEx(0,"sdffdsf","sdfsdf",0,200,0,500,300,0,0,0,NULL);<br />
<br />
while(GetMessage(&msg,0,0,0)<br />
{<br />
}<br />
<br />
<br />
}


this is not full code,its just logic so that you can implement Dummmy window in you DLL

-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
GeneralRe: WM_SHUTDOWN Notification to a dll Pin
AssemblySoft24-Nov-04 23:06
AssemblySoft24-Nov-04 23:06 
GeneralChanging font in treeview control Pin
Alpha Siera24-Nov-04 0:29
Alpha Siera24-Nov-04 0:29 
GeneralRe: Changing font in treeview control Pin
Jack Puppy24-Nov-04 0:54
Jack Puppy24-Nov-04 0:54 
GeneralMultiple row selection MSFlexGrid Pin
balajeedurai23-Nov-04 23:37
balajeedurai23-Nov-04 23:37 
Generalhelp....... Pin
namaskaaram23-Nov-04 23:13
namaskaaram23-Nov-04 23:13 
GeneralRe: help....... Pin
Jack Puppy24-Nov-04 0:45
Jack Puppy24-Nov-04 0:45 
GeneralRe: help....... Pin
namaskaaram24-Nov-04 16:57
namaskaaram24-Nov-04 16:57 
General#defining correct constant Pin
GDavy23-Nov-04 23:07
GDavy23-Nov-04 23:07 
QuestionCString to a int? Pin
Larsson23-Nov-04 22:55
Larsson23-Nov-04 22:55 
AnswerRe: CString to a int? Pin
Yuvaraj N23-Nov-04 22:59
Yuvaraj N23-Nov-04 22:59 
GeneralRe: CString to a int? Pin
Larsson23-Nov-04 23:01
Larsson23-Nov-04 23:01 
GeneralRe: CString to a int? Pin
Yuvaraj N23-Nov-04 23:10
Yuvaraj N23-Nov-04 23:10 
AnswerRe: CString to a int? Pin
V.23-Nov-04 23:53
professionalV.23-Nov-04 23:53 
AnswerRe: CString to a int? Pin
toxcct24-Nov-04 8:17
toxcct24-Nov-04 8:17 
GeneralRe: WM_SHUTDOWN notification Win32 dll Pin
geo_m23-Nov-04 22:45
geo_m23-Nov-04 22:45 
QuestionGIF in dialogue box? Pin
max_gundam1523-Nov-04 22:37
max_gundam1523-Nov-04 22:37 
Generalworking of up and down arrows Pin
Anonymous23-Nov-04 22:28
Anonymous23-Nov-04 22:28 

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.