Click here to Skip to main content
15,912,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Trouble using namespace System Pin
linkfitz7-Jan-09 8:31
linkfitz7-Jan-09 8:31 
GeneralRe: Trouble using namespace System Pin
Jijo.Raj7-Jan-09 9:17
Jijo.Raj7-Jan-09 9:17 
QuestionAudio Line in Pin
surger17-Jan-09 4:56
surger17-Jan-09 4:56 
AnswerRe: Audio Line in Pin
Code-o-mat7-Jan-09 5:18
Code-o-mat7-Jan-09 5:18 
AnswerRe: Audio Line in Pin
Stuart Dootson7-Jan-09 5:33
professionalStuart Dootson7-Jan-09 5:33 
Question.vssscc file and Visual Source Safe Pin
Like2Byte7-Jan-09 4:23
Like2Byte7-Jan-09 4:23 
QuestionNeed help for numericupdown Pin
sai567-Jan-09 4:18
sai567-Jan-09 4:18 
AnswerRe: Need help for numericupdown Pin
Iain Clarke, Warrior Programmer7-Jan-09 22:59
Iain Clarke, Warrior Programmer7-Jan-09 22:59 
OK, I am very confused by this. You seem to have 3 things going on, and I'm not sure where the problem actually is. It doesn't help that your code is looking very un-MCF/C++ like. Maybe you should be in the Managed C++/CLI forum?

1/ You have an Up-Down control (which I think of as a spinner, but you're actually correct). I'm confused what you're setting the range to. I think it's from -180 to +180

2/ You handle either the WM_NOTIFY/UDN_DELTAPOS or WM_HSCROLL/WM_VSCROLL messages sent from the up/down control. Do you get the correct values?

3/ Then you have to translate the -180 to +180 bearing value into a nice text representation. You can probably be hyper clever, but I'd suggest you do something like:
if (bearing >= 0 && bearing <= 45)
{
   // set text with WxxxN whatever your format is
} else if (bearing >= 45 && bearing <= 90)
...


As I suspect you're posting in the wrong forum, I'll stop now. But the idea is to just break your problem down into ever smaller bits, and see where you fail.

Iain.

Codeproject MVP for C++, I can't believe it's for my lounge posts...

QuestionConcept/example for virtual list Pin
nobaq7-Jan-09 4:10
nobaq7-Jan-09 4:10 
AnswerRe: Concept/example for virtual list Pin
Stuart Dootson7-Jan-09 4:34
professionalStuart Dootson7-Jan-09 4:34 
GeneralRe: Concept/example for virtual list Pin
nobaq7-Jan-09 5:35
nobaq7-Jan-09 5:35 
GeneralRe: Concept/example for virtual list Pin
nobaq7-Jan-09 6:04
nobaq7-Jan-09 6:04 
GeneralRe: Concept/example for virtual list Pin
Stuart Dootson7-Jan-09 8:44
professionalStuart Dootson7-Jan-09 8:44 
GeneralRe: Concept/example for virtual list Pin
Stuart Dootson7-Jan-09 8:49
professionalStuart Dootson7-Jan-09 8:49 
GeneralRe: Concept/example for virtual list Pin
Stuart Dootson7-Jan-09 8:40
professionalStuart Dootson7-Jan-09 8:40 
QuestionRe: Concept/example for virtual list Pin
David Crow7-Jan-09 5:33
David Crow7-Jan-09 5:33 
GeneralRe: Concept/example for virtual list Pin
nobaq7-Jan-09 6:00
nobaq7-Jan-09 6:00 
AnswerRe: Concept/example for virtual list Pin
Maximilien7-Jan-09 5:42
Maximilien7-Jan-09 5:42 
GeneralRe: Concept/example for virtual list Pin
nobaq7-Jan-09 7:17
nobaq7-Jan-09 7:17 
Questionimapi2 cd name Pin
meme817-Jan-09 3:52
meme817-Jan-09 3:52 
Questionwhy SubclassWindow fails? [modified] Pin
SanjaySMK7-Jan-09 3:51
SanjaySMK7-Jan-09 3:51 
AnswerRe: why SubclassWindow fails? Pin
Code-o-mat7-Jan-09 5:05
Code-o-mat7-Jan-09 5:05 
Questionreplace CMapStringToOb by standard C Pin
RedSonja7-Jan-09 2:28
RedSonja7-Jan-09 2:28 
AnswerRe: replace CMapStringToOb by standard C Pin
CPallini7-Jan-09 2:54
mveCPallini7-Jan-09 2:54 
GeneralRe: replace CMapStringToOb by standard C Pin
RedSonja7-Jan-09 2:58
RedSonja7-Jan-09 2:58 

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.