Click here to Skip to main content
16,011,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CString into a non-MFC app Pin
Michael Dunn3-Jul-04 15:09
sitebuilderMichael Dunn3-Jul-04 15:09 
GeneralRe: CString into a non-MFC app Pin
CaesarCZ3-Jul-04 15:31
CaesarCZ3-Jul-04 15:31 
GeneralRe: CString into a non-MFC app Pin
Michael Dunn3-Jul-04 15:34
sitebuilderMichael Dunn3-Jul-04 15:34 
GeneralRe: CString into a non-MFC app Pin
CaesarCZ3-Jul-04 15:46
CaesarCZ3-Jul-04 15:46 
GeneralRe: CString into a non-MFC app Pin
Michael Dunn3-Jul-04 20:41
sitebuilderMichael Dunn3-Jul-04 20:41 
GeneralThe complete (?) list: Pin
peterchen4-Jul-04 0:44
peterchen4-Jul-04 0:44 
GeneralRe: CString into a non-MFC app Pin
gamitech4-Jul-04 6:24
gamitech4-Jul-04 6:24 
QuestionHelp! Where's this assertion? Pin
Daniel13243-Jul-04 11:57
Daniel13243-Jul-04 11:57 
Here's the code...
<br />
void CProgramView::OnGotoButton(CString Param) <br />
{<br />
	int ndex;<br />
	CString Str, Url;<br />
<br />
	if (Param.IsEmpty())<br />
	{<br />
		ndex = m_ListBox.GetCurSel();<br />
		if (ndex == LB_ERR)<br />
		{<br />
			MessageBox("No Selection", "Program", MB_OK|MB_ICONERROR);<br />
			return;<br />
		}<br />
		m_ListBox.GetText(ndex, Str);<br />
		Url = ProgramUrl + Str.Left(10);<br />
	}<br />
	else<br />
		Url = Param;<br />
<br />
	ShellExecute(NULL, "open", Url, NULL, NULL, SW_SHOW);<br />
}<br />


And here is the assertion error...
Debug Assertion Failed

Program: ...\Program.exe
File: dbgheap.c
Line: 1044

Expression: _CrtIsValidHeapPointer(pUserData)

For information on how your program can cause an assertion... blah, blah, blah.

ShellExecute works... the assertion happens after IE is opened. I have no idea what's causing this.

Thanks!
Daniel
AnswerRe: Help! Where's this assertion? Pin
PJ Arends3-Jul-04 14:31
professionalPJ Arends3-Jul-04 14:31 
Generalprinter driver Pin
jan moorman3-Jul-04 10:10
jan moorman3-Jul-04 10:10 
GeneralRe: printer driver Pin
Johan Rosengren3-Jul-04 21:09
Johan Rosengren3-Jul-04 21:09 
GeneralRe: printer driver Pin
Sumit Kapoor4-Jul-04 2:37
Sumit Kapoor4-Jul-04 2:37 
GeneralSimple Maths Application Pin
Shuaib.Latif3-Jul-04 7:00
Shuaib.Latif3-Jul-04 7:00 
GeneralRe: Simple Maths Application Pin
PJ Arends3-Jul-04 8:11
professionalPJ Arends3-Jul-04 8:11 
GeneralThe left tree in the code editor in vs.net Pin
Tcpip20053-Jul-04 7:00
Tcpip20053-Jul-04 7:00 
GeneralRe: The left tree in the code editor in vs.net Pin
Ravi Bhavnani3-Jul-04 9:50
professionalRavi Bhavnani3-Jul-04 9:50 
GeneralRe: The left tree in the code editor in vs.net Pin
Tcpip20053-Jul-04 23:33
Tcpip20053-Jul-04 23:33 
GeneralMaximum number of threads.. Pin
Laing,James3-Jul-04 6:57
Laing,James3-Jul-04 6:57 
GeneralRe: Maximum number of threads.. Pin
Graham Bradshaw3-Jul-04 12:52
Graham Bradshaw3-Jul-04 12:52 
GeneralRe: Maximum number of threads.. Pin
Laing,James4-Jul-04 0:13
Laing,James4-Jul-04 0:13 
GeneralRe: Maximum number of threads.. Pin
Graham Bradshaw4-Jul-04 0:48
Graham Bradshaw4-Jul-04 0:48 
GeneralRe: Maximum number of threads.. Pin
Laing,James4-Jul-04 1:08
Laing,James4-Jul-04 1:08 
QuestionHow to Capture Screen with DirectX 8 or 9 ? &gt;&quot;&lt; Pin
cher88230333-Jul-04 6:42
cher88230333-Jul-04 6:42 
GeneralCustom Controls in/within MFC Pin
0v3rloader3-Jul-04 4:33
0v3rloader3-Jul-04 4:33 
GeneralRe: Custom Controls in/within MFC Pin
Johan Rosengren3-Jul-04 6:01
Johan Rosengren3-Jul-04 6:01 

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.