Click here to Skip to main content
15,896,377 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WM_CAPTURECHANGED, lParam=0 Pin
cowwoc20021-Sep-04 18:50
cowwoc20021-Sep-04 18:50 
GeneralRe: WM_CAPTURECHANGED, lParam=0 Pin
Ryan Binns1-Sep-04 21:32
Ryan Binns1-Sep-04 21:32 
GeneralSubtitles ... Pin
Andre Massada1-Sep-04 10:44
Andre Massada1-Sep-04 10:44 
GeneralAdd event to Controlbar button Pin
TNguyen1-Sep-04 8:35
TNguyen1-Sep-04 8:35 
GeneralRe: Add event to Controlbar button Pin
Cliff Hatch20-Jan-05 8:54
Cliff Hatch20-Jan-05 8:54 
GeneralWindow Service Parameters from INI file Pin
aman20061-Sep-04 8:08
aman20061-Sep-04 8:08 
GeneralRe: Window Service Parameters from INI file Pin
David Crow1-Sep-04 8:31
David Crow1-Sep-04 8:31 
GeneralRe: Window Service Parameters from INI file Pin
aman20061-Sep-04 8:44
aman20061-Sep-04 8:44 
if i use GetModuleFinename(NULL..) I Get the Memory could not be read error. My Code is as

BOOL FillParams()
{

CFileFind fileFinder;
CIniReader m_IniFile;

TCHAR Buffer[BUFSIZE];
DWORD dwRet,nSize;
CString error;

dwRet = GetModuleFileName(NULL,Buffer,nSize);

if( dwRet == 0 )
{
error.Format("Failed GetCurrentDirectory %d",GetLastError());
WriteToLog((LPSTR)(LPCTSTR)error);
return 0;
}

WriteToLog(Buffer);
// Here i am changing the path..
}

But It is failing at GetModuleFineName function or crashing.

Any Suggestion..

Thanks
Shailesh


GeneralRe: Window Service Parameters from INI file Pin
David Crow1-Sep-04 8:50
David Crow1-Sep-04 8:50 
GeneralRe: Window Service Parameters from INI file Pin
aman20061-Sep-04 8:58
aman20061-Sep-04 8:58 
GeneralRe: Window Service Parameters from INI file Pin
David Crow1-Sep-04 9:05
David Crow1-Sep-04 9:05 
GeneralRe: Window Service Parameters from INI file Pin
aman20061-Sep-04 11:08
aman20061-Sep-04 11:08 
GeneralAnimateWindow - can't compile Pin
BlackDice1-Sep-04 7:29
BlackDice1-Sep-04 7:29 
GeneralRe: AnimateWindow - can't compile Pin
David Crow1-Sep-04 7:40
David Crow1-Sep-04 7:40 
GeneralRe: AnimateWindow - can't compile Pin
BlackDice1-Sep-04 8:00
BlackDice1-Sep-04 8:00 
General<b>RESOLVED</b> Pin
BlackDice1-Sep-04 8:30
BlackDice1-Sep-04 8:30 
GeneralRe: <b>RESOLVED</b> Pin
David Crow1-Sep-04 8:32
David Crow1-Sep-04 8:32 
GeneralMe either Pin
BlackDice1-Sep-04 8:36
BlackDice1-Sep-04 8:36 
GeneralRe: Me either Pin
David Crow1-Sep-04 8:43
David Crow1-Sep-04 8:43 
GeneralRe: Me either Pin
BlackDice1-Sep-04 10:32
BlackDice1-Sep-04 10:32 
GeneralRe: AnimateWindow - can't compile Pin
Michael Dunn1-Sep-04 18:04
sitebuilderMichael Dunn1-Sep-04 18:04 
GeneralRe: AnimateWindow - can't compile Pin
BlackDice2-Sep-04 2:48
BlackDice2-Sep-04 2:48 
QuestionHow to get the coordinates of a CMenu item Pin
Thomas Tremblay1-Sep-04 7:01
Thomas Tremblay1-Sep-04 7:01 
AnswerRe: How to get the coordinates of a CMenu item Pin
alex.barylski1-Sep-04 8:58
alex.barylski1-Sep-04 8:58 
GeneralRe: How to get the coordinates of a CMenu item Pin
Thomas Tremblay1-Sep-04 9:10
Thomas Tremblay1-Sep-04 9:10 

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.