Click here to Skip to main content
15,919,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Deleting and Enum directories Pin
567890123428-Jan-02 4:54
567890123428-Jan-02 4:54 
GeneralRe: Deleting and Enum directories Pin
Carlos Antollini28-Jan-02 5:10
Carlos Antollini28-Jan-02 5:10 
GeneralRe: Deleting and Enum directories Pin
Stan the man28-Jan-02 5:30
Stan the man28-Jan-02 5:30 
GeneralRe: Deleting and Enum directories Pin
Carlos Antollini28-Jan-02 5:44
Carlos Antollini28-Jan-02 5:44 
GeneralRe: Deleting and Enum directories Pin
pba_28-Jan-02 5:49
pba_28-Jan-02 5:49 
GeneralOpenGL Pin
Rajveer28-Jan-02 4:15
Rajveer28-Jan-02 4:15 
GeneralRe: OpenGL Pin
Jamie Hale28-Jan-02 4:56
Jamie Hale28-Jan-02 4:56 
GeneralEdit box behaving strangely Pin
Fredrik Skog28-Jan-02 3:59
Fredrik Skog28-Jan-02 3:59 
My edit box code works just fine in debug mode, but it starts behaving very peculiar when I switch to release. Basically, I have a function that looks like this:
void CTerminalCtrl::GetCurrentLine(CString* strLine)
{
	int nLines, nLineLength, nRes;
	CString temp;
 
	nLines = GetLineCount() - 1;
	nLineLength = LineLength();				// Get length of current line
	strLine->Empty();
	GetLine(nLines, strLine->GetBuffer(nLineLength));
	strLine->ReleaseBuffer();

	// yadda yadda...
}

LineLength returns the correct number of characters in the current line, but GetLine always returns zero in release mode, meaning it has copied nothing. strLine will thus be empty.

What is going on here?

Cheers,

/Fredrik

Sonork ID: 100.11430:PhatBoy

GeneralRe: Edit box behaving strangely Pin
Joaquín M López Muñoz28-Jan-02 4:18
Joaquín M López Muñoz28-Jan-02 4:18 
GeneralRe: Edit box behaving strangely Pin
HintiFlo28-Jan-02 4:19
HintiFlo28-Jan-02 4:19 
GeneralAdd MFC support to Win32 Dll Pin
567890123428-Jan-02 3:51
567890123428-Jan-02 3:51 
GeneralRe: Add MFC support to Win32 Dll Pin
Joaquín M López Muñoz28-Jan-02 4:01
Joaquín M López Muñoz28-Jan-02 4:01 
GeneralRe: Add MFC support to Win32 Dll Pin
567890123428-Jan-02 4:51
567890123428-Jan-02 4:51 
GeneralRe: Add MFC support to Win32 Dll Pin
Joaquín M López Muñoz28-Jan-02 5:04
Joaquín M López Muñoz28-Jan-02 5:04 
GeneralRe: Add MFC support to Win32 Dll Pin
567890123428-Jan-02 19:44
567890123428-Jan-02 19:44 
GeneralActiveX Controls Events Pin
Abdiel Jaramillo28-Jan-02 3:49
Abdiel Jaramillo28-Jan-02 3:49 
GeneralRe: ActiveX Controls Events Pin
28-Jan-02 3:58
suss28-Jan-02 3:58 
GeneralRe: ActiveX Controls Events Pin
Abdiel Jaramillo28-Jan-02 4:10
Abdiel Jaramillo28-Jan-02 4:10 
GeneralRe: ActiveX Controls Events Pin
Michael P Butler28-Jan-02 5:07
Michael P Butler28-Jan-02 5:07 
GeneralRe: ActiveX Controls Events Pin
Bill Wilson28-Jan-02 7:22
Bill Wilson28-Jan-02 7:22 
GeneralScrolling problem Pin
Jeje28-Jan-02 2:58
Jeje28-Jan-02 2:58 
GeneralRe: Scrolling problem Pin
Joerg Wiedenmann28-Jan-02 22:08
Joerg Wiedenmann28-Jan-02 22:08 
GeneralRe: Scrolling problem Pin
Jeje29-Jan-02 1:38
Jeje29-Jan-02 1:38 
GeneralRe: Scrolling problem Pin
Joerg Wiedenmann31-Jan-02 22:16
Joerg Wiedenmann31-Jan-02 22:16 
GeneralRe: Scrolling problem Pin
Jeje31-Jan-02 23:12
Jeje31-Jan-02 23:12 

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.