Click here to Skip to main content
15,867,308 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: binary data to image VC++ Pin
Mukund Pradeep10-Feb-15 22:05
Mukund Pradeep10-Feb-15 22:05 
AnswerRe: binary data to image VC++ Pin
Chris Losinger18-Jan-15 8:49
professionalChris Losinger18-Jan-15 8:49 
Questioncan a function return WCHAR Pin
bkelly1316-Jan-15 6:07
bkelly1316-Jan-15 6:07 
AnswerRe: can a function return WCHAR Pin
CPallini16-Jan-15 7:54
mveCPallini16-Jan-15 7:54 
GeneralRe: can a function return WCHAR Pin
bkelly1316-Jan-15 13:54
bkelly1316-Jan-15 13:54 
AnswerRe: can a function return WCHAR Pin
Richard Andrew x6416-Jan-15 14:54
professionalRichard Andrew x6416-Jan-15 14:54 
GeneralRe: can a function return WCHAR Pin
CPallini16-Jan-15 22:32
mveCPallini16-Jan-15 22:32 
GeneralRe: can a function return WCHAR Pin
bkelly1319-Jan-15 7:48
bkelly1319-Jan-15 7:48 
Regarding what problems with CString? I don't remember the details right now. I think my problem in that area is settling down with one representation for strings. I fetch some critical data using the API of another application (I'll update this when I get back to work and verify), then the code reads text from a file, tokenizes it, builds parameters names with odd formatting and does a lot of compares. I would like to make this app easy to port to a Unix/Linux platform but am not obsessed with that. Selecting a single character and string representation is not trivial.

I am receptive to suggestions as to my selection of the basic character/string representation. I am leaning towards WCHAR but can be convinced otherwise. The need for a simple tokenizer is strong.

Regarding the function returning a string, avoiding the problems of allocation is rather important. It seems that I cannot so something like:

WCHAR target[ MAX ];
...
target[ 4 ] = get_paremeter_class( );


Where get_string() will return a short phrase that is frequently used. The resultant string would look like: S01_ANA_0001, meaning "String 01, Analog, parameter 0001" or S01_DIG_0001.

I am thinking of writing a procedure that will accept a pointer to target along with a size and copy that short string into target. I want the higher level to look simple and let the frequently called function handle the ugly details.
Thank you for your time
If you work with telemetry, please check this bulletin board: www.irigbb.com


GeneralRe: can a function return WCHAR Pin
CPallini19-Jan-15 8:02
mveCPallini19-Jan-15 8:02 
GeneralRe: can a function return WCHAR Pin
bkelly1321-Jan-15 16:19
bkelly1321-Jan-15 16:19 
GeneralRe: can a function return WCHAR Pin
CPallini22-Jan-15 5:51
mveCPallini22-Jan-15 5:51 
QuestionYASAQ Yet another silly academic question - how does "code optimization" really works? Pin
Vaclav_16-Jan-15 3:55
Vaclav_16-Jan-15 3:55 
AnswerRe: YASAQ Yet another silly academic question - how does "code optimization" really works? Pin
PIEBALDconsult16-Jan-15 4:02
mvePIEBALDconsult16-Jan-15 4:02 
AnswerRe: YASAQ Yet another silly academic question - how does "code optimization" really works? Pin
Richard MacCutchan16-Jan-15 4:49
mveRichard MacCutchan16-Jan-15 4:49 
GeneralRe: YASAQ Yet another silly academic question - how does "code optimization" really works? Pin
CPallini16-Jan-15 5:31
mveCPallini16-Jan-15 5:31 
GeneralRe: YASAQ Yet another silly academic question - how does "code optimization" really works? Pin
Richard MacCutchan16-Jan-15 5:44
mveRichard MacCutchan16-Jan-15 5:44 
QuestionRe: YASAQ Yet another silly academic question - how does "code optimization" really works? Pin
CPallini16-Jan-15 7:39
mveCPallini16-Jan-15 7:39 
AnswerRe: YASAQ Yet another silly academic question - how does "code optimization" really works? Pin
Mike Nordell2-Feb-15 10:27
Mike Nordell2-Feb-15 10:27 
AnswerRe: YASAQ Yet another silly academic question - how does "code optimization" really works? Pin
CPallini16-Jan-15 5:28
mveCPallini16-Jan-15 5:28 
AnswerRe: YASAQ Yet another silly academic question - how does "code optimization" really works? Pin
jschell16-Jan-15 12:29
jschell16-Jan-15 12:29 
GeneralRe: YASAQ Yet another silly academic question - how does "code optimization" really works? Pin
Vaclav_17-Jan-15 3:33
Vaclav_17-Jan-15 3:33 
GeneralRe: YASAQ Yet another silly academic question - how does "code optimization" really works? Pin
Richard MacCutchan17-Jan-15 5:49
mveRichard MacCutchan17-Jan-15 5:49 
GeneralRe: YASAQ Yet another silly academic question - how does "code optimization" really works? Pin
jschell18-Jan-15 6:38
jschell18-Jan-15 6:38 
GeneralRe: YASAQ Yet another silly academic question - how does "code optimization" really works? Pin
Mike Nordell2-Feb-15 10:31
Mike Nordell2-Feb-15 10:31 
QuestionDetours : how to hook QT applications ? Pin
jeff614-Jan-15 23:56
jeff614-Jan-15 23:56 

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.