Click here to Skip to main content
15,921,250 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CreateWindow problem in Win32 Pin
Mike Burston24-Sep-01 21:53
Mike Burston24-Sep-01 21:53 
GeneralRe: CreateWindow problem in Win32 Pin
Christian Graus24-Sep-01 22:07
protectorChristian Graus24-Sep-01 22:07 
GeneralRe: CreateWindow problem in Win32 Pin
Andrew Peace25-Sep-01 11:44
Andrew Peace25-Sep-01 11:44 
GeneralRe: CreateWindow problem in Win32 Pin
Christian Graus25-Sep-01 11:54
protectorChristian Graus25-Sep-01 11:54 
GeneralSHAutoComplete Pin
PJ Arends24-Sep-01 14:56
professionalPJ Arends24-Sep-01 14:56 
GeneralRe: SHAutoComplete Pin
PJ Arends24-Sep-01 16:54
professionalPJ Arends24-Sep-01 16:54 
GeneralError Message Pin
Peter Liddle24-Sep-01 11:21
Peter Liddle24-Sep-01 11:21 
GeneralRichEdit, ActiveX, Extraterrestrial behavior Pin
24-Sep-01 10:40
suss24-Sep-01 10:40 
Hey all!

I recently stumbled upon a REALLY WEIRD bug - and I'm totally stuck!

Bug description: I send EM_GETTEXTEX message to a rich edit control, and get an empty string - even though there is definitely a string there - it even returns the correct length of the string when I send an EM_GETTEXTLENGTHEX message!

I compile the code in 4 modes:
1. Deubg build, an EXE application
2. Debug build, an ActiveX application
3. Release build, an EXE application
4. Release build, an ActiveX application.

I compiled using both VC++ 7 and VC++ 6 (no SP), and used Windows 2000 (no SP) + IE6 for the ActiveX.

I was also able to occasionally reproduce the bug in a Debug build when I used NuMega BoundsChecker.

And here is the weirdest part:
I have some code that looks more or less like this:
1. Get string from Rich Edit control and display it
2. Get string from Rich Edit control and display it
3. char *sz = new char [1]

Now, in the ActiveX Release build - the previous code displayed two empty strings. When I removed line 3 - the code worked. Or maybe it was the other way around... But anyway, that was the situation.

I thought about subclassing the Rich Edit control, causing the program to crash when the EM_GETTEXTEX message is received, and then follow the Rich Edit Control assembly code and see what's going inside there - but it seems too painful!

Does anyone have any constructive idea?? (other than "go drink your troubles away", please)

Thanks!
General'Document Summary Info' Pin
Lilian Chan-Grant24-Sep-01 10:27
Lilian Chan-Grant24-Sep-01 10:27 
GeneralRe: 'Document Summary Info' Pin
Michael Dunn24-Sep-01 15:10
sitebuilderMichael Dunn24-Sep-01 15:10 
GeneralSimple DLL, Simple DLL, Simple DLL , P L E A S E !!! Pin
24-Sep-01 9:52
suss24-Sep-01 9:52 
GeneralRe: Simple DLL, Simple DLL, Simple DLL , P L E A S E !!! Pin
Chris Losinger24-Sep-01 10:07
professionalChris Losinger24-Sep-01 10:07 
GeneralRe: Simple DLL, Simple DLL, Simple DLL , P L E A S E !!! Pin
24-Sep-01 11:43
suss24-Sep-01 11:43 
GeneralRe: Simple DLL, Simple DLL, Simple DLL , P L E A S E !!! Pin
Michael P Butler25-Sep-01 2:37
Michael P Butler25-Sep-01 2:37 
GeneralHide Menu Pin
24-Sep-01 9:19
suss24-Sep-01 9:19 
GeneralRe: Hide Menu Pin
Oscar Vazquez24-Sep-01 9:49
Oscar Vazquez24-Sep-01 9:49 
GeneralHelp Using CMemDC and its derivatives... Pin
TSquared24-Sep-01 7:36
TSquared24-Sep-01 7:36 
GeneralRe: Help Using CMemDC and its derivatives... Pin
Tim Deveaux24-Sep-01 9:43
Tim Deveaux24-Sep-01 9:43 
GeneralRe: Help Using CMemDC and its derivatives... Pin
TSquared24-Sep-01 13:58
TSquared24-Sep-01 13:58 
GeneralRe: Help Using CMemDC and its derivatives... Pin
Tim Deveaux25-Sep-01 4:27
Tim Deveaux25-Sep-01 4:27 
GeneralRe: Help Using CMemDC and its derivatives... Pin
25-Sep-01 8:10
suss25-Sep-01 8:10 
GeneralRe: Help Using CMemDC and its derivatives... Pin
Tim Deveaux25-Sep-01 9:11
Tim Deveaux25-Sep-01 9:11 
GeneralRe: Help Using CMemDC and its derivatives... Pin
TSquared25-Sep-01 12:20
TSquared25-Sep-01 12:20 
GeneralRe: Help Using CMemDC and its derivatives... Pin
Tim Deveaux25-Sep-01 14:28
Tim Deveaux25-Sep-01 14:28 
GeneralRe: Help Using CMemDC and its derivatives... Pin
26-Sep-01 8:25
suss26-Sep-01 8:25 

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.