Click here to Skip to main content
15,917,859 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Braces required? Pin
Jim A. Johnson9-Jul-03 7:15
Jim A. Johnson9-Jul-03 7:15 
GeneralRe: Braces required? Pin
Atlantys9-Jul-03 13:24
Atlantys9-Jul-03 13:24 
AnswerRe: Braces required? Pin
John R. Shaw9-Jul-03 8:38
John R. Shaw9-Jul-03 8:38 
GeneralRe: Braces required? Pin
Jamie Hale9-Jul-03 10:14
Jamie Hale9-Jul-03 10:14 
AnswerRe: Braces required? Pin
Haakon S.9-Jul-03 9:53
Haakon S.9-Jul-03 9:53 
GeneralRe: Braces required? Pin
Jamie Hale9-Jul-03 10:13
Jamie Hale9-Jul-03 10:13 
GeneralRe: Braces required? Pin
Haakon S.9-Jul-03 11:18
Haakon S.9-Jul-03 11:18 
Generalvisual studio 2003 + crtdbg.h Pin
dTCrash9-Jul-03 4:50
dTCrash9-Jul-03 4:50 
code:

#define _CRTDBG_MAP_ALLOC
#include<cstdlib>
#include<crtdbg.h>

int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrefInst, LPSTR cmdLine, int cmdShow)
{
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
int* i = new int;
i = NULL;
_CrtDumpMemoryLeaks();

return 0;
}

debug output:
==========================================================
'Game.exe': Loaded 'C:\work\StreetsOfDusk\Binaries\Debug\Game.exe', Symbols loaded.
'Game.exe': Loaded 'C:\WINNT\system32\ntdll.dll', Cannot find or open a required DBG file.
'Game.exe': Loaded 'C:\WINNT\system32\d3d9.dll', No symbols loaded.
'Game.exe': Loaded 'C:\WINNT\system32\d3d8thk.dll', No symbols loaded.
'Game.exe': Loaded 'C:\WINNT\system32\msvcrt.dll', No symbols loaded.
'Game.exe': Loaded 'C:\WINNT\system32\kernel32.dll', Cannot find or open a required DBG file.
'Game.exe': Loaded 'C:\WINNT\system32\user32.dll', Cannot find or open a required DBG file.
'Game.exe': Loaded 'C:\WINNT\system32\gdi32.dll', Cannot find or open a required DBG file.
'Game.exe': Loaded 'C:\WINNT\system32\advapi32.dll', Cannot find or open a required DBG file.
'Game.exe': Loaded 'C:\WINNT\system32\rpcrt4.dll', Cannot find or open a required DBG file.
'Game.exe': Loaded 'C:\WINNT\system32\version.dll', Cannot find or open a required DBG file.
'Game.exe': Loaded 'C:\WINNT\system32\lz32.dll', Cannot find or open a required DBG file.
'Game.exe': Loaded 'C:\WINNT\system32\winmm.dll', Cannot find or open a required DBG file.
'Game.exe': Loaded 'C:\WINNT\system32\mmdrv.dll', Cannot find or open a required DBG file.
'Game.exe': Unloaded 'C:\WINNT\system32\mmdrv.dll'
'Game.exe': Loaded 'C:\WINNT\system32\indicdll.dll', Cannot find or open a required DBG file.
'Game.exe': Loaded 'C:\WINNT\system32\imm32.dll', Cannot find or open a required DBG file.
'Game.exe': Loaded 'C:\WINNT\system32\TDispVol.dll', No symbols loaded.
'Game.exe': Loaded 'C:\WINNT\system32\d3d9d.dll', No symbols loaded.
Direct3D9: (INFO) :======================= Hal HWVP device selected
The program '[696] Game.exe: Native' has exited with code 0 (0x0).
==========================================================

What means "Cannot find or open a required DBG file."? Where can I get those DBG files?? The msdn didn't help me Frown | :(
GeneralRe: visual studio 2003 + crtdbg.h Pin
keegan9-Jul-03 4:58
keegan9-Jul-03 4:58 
Generalit's working, thx Pin
dTCrash9-Jul-03 6:22
dTCrash9-Jul-03 6:22 
GeneralRe: visual studio 2003 + crtdbg.h Pin
Mike Dimmick9-Jul-03 6:26
Mike Dimmick9-Jul-03 6:26 
GeneralRefreshing a listBox when a page is setactive Pin
keegan9-Jul-03 4:43
keegan9-Jul-03 4:43 
GeneralRe: Refreshing a listBox when a page is setactive Pin
David Crow9-Jul-03 4:59
David Crow9-Jul-03 4:59 
GeneralRe: Refreshing a listBox when a page is setactive Pin
keegan9-Jul-03 5:10
keegan9-Jul-03 5:10 
GeneralRe: Refreshing a listBox when a page is setactive Pin
David Crow9-Jul-03 5:49
David Crow9-Jul-03 5:49 
Generaldisplaying a jpg Pin
Tom Wright9-Jul-03 4:31
Tom Wright9-Jul-03 4:31 
GeneralRe: displaying a jpg Pin
John M. Drescher9-Jul-03 4:41
John M. Drescher9-Jul-03 4:41 
GeneralRe: displaying a jpg Pin
Ryan Binns9-Jul-03 4:59
Ryan Binns9-Jul-03 4:59 
GeneralRe: displaying a jpg Pin
PJ Arends9-Jul-03 11:25
professionalPJ Arends9-Jul-03 11:25 
GeneralReading very large files &gt; 32G Pin
rdh9-Jul-03 4:23
rdh9-Jul-03 4:23 
GeneralRe: Reading very large files &gt; 32G Pin
John M. Drescher9-Jul-03 4:30
John M. Drescher9-Jul-03 4:30 
GeneralRe: Reading very large files &gt; 32G Pin
David Crow9-Jul-03 4:47
David Crow9-Jul-03 4:47 
QuestionWriting the actual addresses of a struct in memory??? Pin
johnstonsk9-Jul-03 4:22
johnstonsk9-Jul-03 4:22 
AnswerRe: Writing the actual addresses of a struct in memory??? Pin
John M. Drescher9-Jul-03 4:35
John M. Drescher9-Jul-03 4:35 
Generaltype &quot;double&quot; question Pin
DaveE9th9-Jul-03 4:11
DaveE9th9-Jul-03 4:11 

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.