Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » LineEdit, EditFields, DocEdit » EditString: how to convert data with "~" operator to char*?
Re: Editstring control [message #10161 is a reply to message #1391] Fri, 22 June 2007 17:56 Go to previous messageGo to previous message
malaugh is currently offline  malaugh
Messages: 7
Registered: June 2007
Promising Member
I have been struggling with the same issue. I need to get a hex number from an edit box, so I used an EditField called editHex, and converted to a string using

char HexDigits[MAX_HEX_CHARACTERS + 1];
UINT8 DataOut[MAX_HEX_CHARACTERS/2 ];

strcpy(HexDigits, editHex.GetText().ToString());
GetHexValue(DataOut, HexDigits);

GetHexValue reads the string and does the conversion.

This works fine if I just execute the program. But if run in the debugger and set a breakpoint on the strcpy line, I get the Microsoft "crash" dialog box with the message.

"gdb.exe has encountered a problem and needs to close. We are sorry for the inconvenience."

If I comment out the strcpy, then gdb does not crash. I am using the windows version with the minGW compiler and the internal debugger. The EditField length is set to MAX_HEX_CHARACTERS.

Am I doing something wrong?





 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: EditInt callback?
Next Topic: DocEdit bug
Goto Forum:
  


Current Time: Thu Apr 18 09:29:17 CEST 2024

Total time taken to generate the page: 0.02218 seconds