Use This DWORD GetModuleFileNameEx( HANDLE hProcess, // handle to process HMODULE hModule, // handle to module LPTSTR lpFilename, // path buffer DWORD nSize // maximum characters to retrieve ); DWORD GetModuleFileName( HMODULE hModule, // handle to module LPTSTR lpFilename, // file name of module DWORD nSize // size of buffer ); ~Rahuraman.K
Member 162462
Posts
-
Executable's Name -
It is possible ?Thanks for u'r immediate response with plenty of information ~Rahuraman.K
-
It is possible ?Hi , this is my problem if anybody knows that plz give me a use full tips, Probs:- I have a DLL it contain only resource , I would like to replace one particular string, that is in side resource DLL. But I don’t want to recompile it. ~ Rahuraman.K
-
Using CStdioFile to modify text fileU have to store remaining lines( after 4 line) in some other temporary buffer , then insert what ever content u want insert , once again append temporary buffer.
-
How to set a timer to a dialogIf is it mfc application , u can use this BOOL CTelnetServerDlg::OnInitDialog() { … … … … … … … … … SetTimer(100,20000,NULL); … … … … … … … … … } BEGIN_MESSAGE_MAP(CTelnetServerDlg, CDialog) //{{AFX_MSG_MAP(CTelnetServerDlg) … … … … … … … … … ON_WM_TIMER() ON_WM_DESTROY() … … … … … … … … … //}}AFX_MSG_MAP END_MESSAGE_MAP() void CTelnetServerDlg::OnTimer(UINT nIDEvent) { if (nIDEvent == 100) { // TODO: Add your message handler code here and/or call default } CDialog::OnTimer(nIDEvent); } void CTelnetServerDlg::OnDestroy() { KillTimer(100); CDialog::OnDestroy(); }
-
How to increase print preview areais it possible to increase the print preview area with out zoom out