Click here to Skip to main content
15,922,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionQuestion about compression Pin
godspeed1239-May-07 12:22
godspeed1239-May-07 12:22 
AnswerRe: Question about compression Pin
Paresh Chitte9-May-07 18:15
Paresh Chitte9-May-07 18:15 
QuestionDLL's and external dependencies Pin
l_d9-May-07 10:17
l_d9-May-07 10:17 
AnswerRe: DLL's and external dependencies Pin
Hans Dietrich9-May-07 20:35
mentorHans Dietrich9-May-07 20:35 
AnswerRe: DLL's and external dependencies Pin
ThatsAlok16-May-07 21:00
ThatsAlok16-May-07 21:00 
QuestionStep through in VC++ Pin
Software_Specialist9-May-07 9:40
Software_Specialist9-May-07 9:40 
AnswerRe: Step through in VC++ Pin
Mark Salsbery9-May-07 10:08
Mark Salsbery9-May-07 10:08 
GeneralRe: Step through in VC++ Pin
Software_Specialist9-May-07 13:09
Software_Specialist9-May-07 13:09 
Mark Salsbery wrote:
I only see one function call in your posted code


Mark Salsbery wrote:
To debug at that point you need breakpoint(s) in your DialogProc


So as you said i placed breakpt over DialogProc Function i.e.


<br />
<br />
BOOL CALLBACK DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam){<br />
<br />
	int wmId, wmEvent;<br />
<br />
	switch(uMsg){<br />
		case WM_INITDIALOG:<br />
			hWnd = hwndDlg;<br />
			SetWindowText(GetDlgItem(hWnd, IDC_EXT), "TXT");<br />
			CenterWindow(hwndDlg);<br />
			return TRUE;<br />
		case WM_COMMAND:<br />
			wmId    = LOWORD(wParam); <br />
			wmEvent = HIWORD(wParam); <br />
<br />
			switch(wmId){<br />
				case IDOK:<br />
					EndDialog(hwndDlg, IDOK);<br />
					break;<br />
				case IDCANCEL:<br />
					EndDialog(hwndDlg, IDCANCEL);<br />
					break;<br />
				case IDC_BROWSEBMP:<br />
					OnBrowseBmp();<br />
					break;<br />
				case IDC_BROWSEFILE:<br />
					OnBrowseFile();<br />
					break;<br />
				case IDC_COMBIND:<br />
					OnCombindYo();<br />
					break;<br />
				case IDC_BROWSECASEBMP:<br />
					OnBrowseCaseBmp();<br />
					break;<br />
				case IDC_EXTRACT:<br />
					OnExtract();<br />
					break;<br />
			}<br />
			break;<br />
			<br />
		case WM_PAINT:<br />
			<br />
			break;<br />
	}<br />
	return FALSE;<br />
}<br />

When i place break pt over this function it always return FALSE and give me error saying "There is no source code available from the current location".

Now within this fucntiont there are calls to many other functions and which in turn calls to many others. So how can i step through whole application. Where should i place the break point as i also tried placing break pt over functions call with in DialogProc function but nothing seems to be working.


Mark Salsbery wrote:
(I forget the two "step" keys in
Borland).


Its F7 and F8 in borland.
Mark Salsbery wrote:
a debug version of the operating system.


I am not much sure about this.

Please help me out in understanding confusing VC++ Frown | :(

Thanks
GeneralRe: Step through in VC++ Pin
Mark Salsbery9-May-07 13:25
Mark Salsbery9-May-07 13:25 
GeneralRe: Step through in VC++ Pin
Software_Specialist9-May-07 14:31
Software_Specialist9-May-07 14:31 
QuestionRe: Step through in VC++ Pin
Mark Salsbery9-May-07 14:54
Mark Salsbery9-May-07 14:54 
AnswerRe: Step through in VC++ Pin
Software_Specialist10-May-07 1:17
Software_Specialist10-May-07 1:17 
GeneralRe: Step through in VC++ Pin
Software_Specialist10-May-07 1:38
Software_Specialist10-May-07 1:38 
GeneralRe: Step through in VC++ Pin
Mark Salsbery10-May-07 4:50
Mark Salsbery10-May-07 4:50 
GeneralRe: Step through in VC++ Pin
Mark Salsbery10-May-07 4:45
Mark Salsbery10-May-07 4:45 
GeneralRe: Step through in VC++ Pin
Nelek13-May-07 19:56
protectorNelek13-May-07 19:56 
QuestionRe: Error in plex.cpp, line 44 Pin
mla1549-May-07 9:35
mla1549-May-07 9:35 
AnswerRe: Error in plex.cpp, line 44 Pin
Stephen Hewitt9-May-07 14:25
Stephen Hewitt9-May-07 14:25 
AnswerRe: Error in plex.cpp, line 44 Pin
BadKarma9-May-07 22:12
BadKarma9-May-07 22:12 
AnswerRe: Error in plex.cpp, line 44 Pin
mla15411-May-07 5:25
mla15411-May-07 5:25 
QuestionFD_ACCEPT event very slow (sometimes) Pin
od@ananzi.co.za9-May-07 9:20
od@ananzi.co.za9-May-07 9:20 
QuestionRe: FD_ACCEPT event very slow (sometimes) Pin
Mark Salsbery9-May-07 10:24
Mark Salsbery9-May-07 10:24 
AnswerRe: FD_ACCEPT event very slow (sometimes) Pin
od@ananzi.co.za9-May-07 20:48
od@ananzi.co.za9-May-07 20:48 
GeneralRe: FD_ACCEPT event very slow (sometimes) Pin
Mark Salsbery10-May-07 5:00
Mark Salsbery10-May-07 5:00 
GeneralRe: FD_ACCEPT event very slow (sometimes) Pin
od@ananzi.co.za11-May-07 1:27
od@ananzi.co.za11-May-07 1:27 

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.