Click here to Skip to main content
15,914,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSimulate a carriage return Pin
RobJones5-Jul-01 10:12
RobJones5-Jul-01 10:12 
GeneralRe: Simulate a carriage return Pin
Christian Graus5-Jul-01 12:16
protectorChristian Graus5-Jul-01 12:16 
GeneralRe: Simulate a carriage return Pin
Julien5-Jul-01 13:34
Julien5-Jul-01 13:34 
GeneralRe: Simulate a carriage return Pin
CMFC6.0VS.NETUser6-Jul-01 4:49
CMFC6.0VS.NETUser6-Jul-01 4:49 
GeneralBeginner Question Pin
Dan Madden5-Jul-01 9:55
Dan Madden5-Jul-01 9:55 
GeneralRe: Beginner Question Pin
Pavlos Touboulidis5-Jul-01 10:29
Pavlos Touboulidis5-Jul-01 10:29 
GeneralRe: Doesn't Work Pin
Dan Madden5-Jul-01 17:38
Dan Madden5-Jul-01 17:38 
GeneralRe: Doesn't Work Pin
Mike Burston5-Jul-01 18:11
Mike Burston5-Jul-01 18:11 
>> AfxIsValidString(lpsz)
This function checks if the address you have passed in points to memory that your program has 'read' access to. This routine looks for a terminating NULL char, since all valid 'C' and windows strings must have terminating NULL. All characters between the starting address and the terminating NULL must be in valid 'read' access memory.

Looking at your samp,e code, you appear to be passing the address of an array that has no terminating NULL, so this is why the attempt to load the CString from this memory is failing.

The bigger question is why you want to load and array 'byte' data, which does not appear to be a valid string value, into a CString ??

GeneralRe: Doesn't Work Pin
Dan Madden5-Jul-01 18:25
Dan Madden5-Jul-01 18:25 
GeneralRe: Doesn't Work Pin
Mike Burston5-Jul-01 18:42
Mike Burston5-Jul-01 18:42 
GeneralRe: Doesn't Work Pin
Dan Madden5-Jul-01 19:20
Dan Madden5-Jul-01 19:20 
Generalpointer to a function Pin
5-Jul-01 9:13
suss5-Jul-01 9:13 
GeneralRe: pointer to a function Pin
Chris Losinger5-Jul-01 9:26
professionalChris Losinger5-Jul-01 9:26 
GeneralRe: pointer to a function Pin
KingsGambit5-Jul-01 18:00
KingsGambit5-Jul-01 18:00 
GeneralRe: pointer to a function Pin
5-Jul-01 18:28
suss5-Jul-01 18:28 
GeneralRe: pointer to a function Pin
8-Jul-01 11:03
suss8-Jul-01 11:03 
GeneralRe: pointer to a function Pin
Oliver Anhuth8-Jul-01 20:53
Oliver Anhuth8-Jul-01 20:53 
GeneralCStringList and CList problem Pin
5-Jul-01 7:54
suss5-Jul-01 7:54 
GeneralDevice Context Pin
Ryan McFarren5-Jul-01 7:33
Ryan McFarren5-Jul-01 7:33 
GeneralRe: Device Context Pin
Tim Deveaux5-Jul-01 8:29
Tim Deveaux5-Jul-01 8:29 
QuestionHow can I have multiple fonts per line using DrawTextEX? Pin
Bart-Man5-Jul-01 6:23
Bart-Man5-Jul-01 6:23 
AnswerRe: How can I have multiple fonts per line using DrawTextEX? Pin
Jim Crafton5-Jul-01 7:29
Jim Crafton5-Jul-01 7:29 
GeneralRe: How can I have multiple fonts per line using DrawTextEX? Pin
Bart-Man5-Jul-01 8:32
Bart-Man5-Jul-01 8:32 
GeneralFound a solution to the problem!! Pin
Bart-Man5-Jul-01 9:37
Bart-Man5-Jul-01 9:37 
GeneralDS problem Pin
Mihail5-Jul-01 6:02
Mihail5-Jul-01 6:02 

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.