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

C / C++ / MFC

 
GeneralRe: executing Make file Pin
ThatsAlok6-Feb-05 3:06
ThatsAlok6-Feb-05 3:06 
GeneralReturning focus to window Pin
Julietta Magakian5-Feb-05 19:59
sussJulietta Magakian5-Feb-05 19:59 
GeneralRe: Returning focus to window Pin
X20405-Feb-05 22:00
X20405-Feb-05 22:00 
GeneralBeginner need help : bug in my code Pin
Robert Eckman5-Feb-05 19:24
Robert Eckman5-Feb-05 19:24 
GeneralRe: Beginner need help : bug in my code Pin
John L. DeVito5-Feb-05 19:37
professionalJohn L. DeVito5-Feb-05 19:37 
GeneralRe: Beginner need help : bug in my code Pin
Robert Eckman5-Feb-05 19:57
Robert Eckman5-Feb-05 19:57 
GeneralRe: Beginner need help : bug in my code Pin
Robert Eckman5-Feb-05 20:16
Robert Eckman5-Feb-05 20:16 
GeneralCEdit Control to unsigned short array Pin
Dennis Wentworth5-Feb-05 11:37
sussDennis Wentworth5-Feb-05 11:37 
Ok. I have an MFC app in VC++ .net

I have several Edit control boxes that I want to type in a voltage (in the form X.XX). Then I want to be able to take the voltage I entered, do a analog to digital conversion for an 8-bit number.. so something like voltage * 256/5, round the number to the nearest int.. then convert the int to the unsigned char representation. Now I think this will have some problems because there are several non-printing characters from 0 to 255 so the conversion will not work. Right?

If this is wrong let me know! Hehe. This is the easy way for me to do this problem.

The second way I don't know how to do.. same thing except I want to convert to an unsigned short.

The function that I am ultimately sending this data to takes an (unsigned char *)

Any and all help would be greatly appreciated. Also I would rather have unmanaged code help. No System namespaces. hehe. Thanks
GeneralRe: CEdit Control to unsigned short array Pin
PJ Arends5-Feb-05 13:11
professionalPJ Arends5-Feb-05 13:11 
GeneralRe: CEdit Control to unsigned short array Pin
Dennis Wentworth5-Feb-05 13:35
sussDennis Wentworth5-Feb-05 13:35 
GeneralRe: CEdit Control to unsigned short array Pin
PJ Arends5-Feb-05 15:35
professionalPJ Arends5-Feb-05 15:35 
QuestionRedrawWindow(), Invalidate() ? Pin
BlackDice5-Feb-05 5:40
BlackDice5-Feb-05 5:40 
AnswerRe: RedrawWindow(), Invalidate() ? Pin
Mike Dimmick5-Feb-05 9:05
Mike Dimmick5-Feb-05 9:05 
GeneralRe: RedrawWindow(), Invalidate() ? Pin
BlackDice5-Feb-05 9:10
BlackDice5-Feb-05 9:10 
GeneralPlaying WAV files Pin
Grahamfff5-Feb-05 5:32
Grahamfff5-Feb-05 5:32 
GeneralRe: Playing WAV files Pin
PJ Arends5-Feb-05 10:44
professionalPJ Arends5-Feb-05 10:44 
GeneralRe: Playing WAV files Pin
Blake Miller7-Feb-05 5:25
Blake Miller7-Feb-05 5:25 
GeneralProblems with malloc Pin
r3dqu33n5-Feb-05 1:12
r3dqu33n5-Feb-05 1:12 
GeneralRe: Problems with malloc Pin
WoutL5-Feb-05 1:25
WoutL5-Feb-05 1:25 
GeneralRe: Problems with malloc Pin
r3dqu33n5-Feb-05 1:38
r3dqu33n5-Feb-05 1:38 
GeneralRe: Problems with malloc Pin
WoutL5-Feb-05 1:54
WoutL5-Feb-05 1:54 
GeneralRe: Problems with malloc Pin
Anonymous5-Feb-05 3:57
Anonymous5-Feb-05 3:57 
GeneralRe: Problems with malloc Pin
Mike Dimmick5-Feb-05 1:57
Mike Dimmick5-Feb-05 1:57 
GeneralRe: Problems with malloc Pin
Michael Dunn5-Feb-05 20:49
sitebuilderMichael Dunn5-Feb-05 20:49 
GeneralHTTP chunked encoding Pin
Taka Muraoka4-Feb-05 23:47
Taka Muraoka4-Feb-05 23:47 

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.