Click here to Skip to main content
16,012,025 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: create a new process in c Pin
Hamid_RT25-Feb-08 19:24
Hamid_RT25-Feb-08 19:24 
GeneralRe: create a new process in c Pin
Xing Chen25-Feb-08 19:50
Xing Chen25-Feb-08 19:50 
GeneralUsing __toascii() got me a runtime access violation Pin
glyfyx25-Feb-08 18:52
glyfyx25-Feb-08 18:52 
GeneralRe: Using __toascii() got me a runtime access violation Pin
Maxwell Chen25-Feb-08 19:03
Maxwell Chen25-Feb-08 19:03 
GeneralRe: Using __toascii() got me a runtime access violation Pin
Mark Salsbery25-Feb-08 19:17
Mark Salsbery25-Feb-08 19:17 
GeneralRe: Using __toascii() got me a runtime access violation Pin
Maxwell Chen25-Feb-08 19:46
Maxwell Chen25-Feb-08 19:46 
GeneralRe: Using __toascii() got me a runtime access violation Pin
Mark Salsbery26-Feb-08 5:16
Mark Salsbery26-Feb-08 5:16 
GeneralRe: Using __toascii() got me a runtime access violation Pin
glyfyx27-Feb-08 3:03
glyfyx27-Feb-08 3:03 
Of course, %c for char! I was sure it had a simple answer but couldn't see it for looking - most embarrassing. Too many years of VB?

So big thanks Maxwell and Mark! Also Mark, I was starting to think of assembling a 2 byte char array as you suggested - that'd work with %s.

Also special thanks to Rajkumar R for the ToAscii suggestion, which is intriguing to say the least, since it requires a GetKeyboardState call to set its 256 byte array arg, lpKeyState, to the current status of *all* the virtual keys. I would have thought GetKeyState for just the virtual key in question (1st arg, uVirtKey),would be sufficient.

I suppose ToAscii will be a case-sensitive conversion - will give it a shot and see what happens.

int ToAscii(
UINT uVirtKey,
UINT uScanCode,
PBYTE lpKeyState,
LPWORD lpChar,
UINT uFlags
);

Here's the MSDN article...
http://msdn2.microsoft.com/en-us/library/ms646299(VS.85).aspx

Thanks again everyone!
glyfyx
GeneralRe: Using __toascii() got me a runtime access violation Pin
Rajkumar R25-Feb-08 19:10
Rajkumar R25-Feb-08 19:10 
GeneralRe: Using __toascii() got me a runtime access violation Pin
Mark Salsbery25-Feb-08 19:12
Mark Salsbery25-Feb-08 19:12 
GeneralWithout Installing How to MatLab run when VC++ Button Pressed... Pin
johnalek25-Feb-08 18:42
johnalek25-Feb-08 18:42 
QuestionHow to Configure the Matlab Add-in for Visual Studio vc++ 6.0 Pin
johnalek25-Feb-08 18:36
johnalek25-Feb-08 18:36 
GeneralUnlocking a file.. Pin
sharanu25-Feb-08 17:44
sharanu25-Feb-08 17:44 
AnswerRe: Unlocking a file.. Pin
Rajkumar R25-Feb-08 17:58
Rajkumar R25-Feb-08 17:58 
GeneralRe: Unlocking a file.. Pin
sharanu25-Feb-08 19:04
sharanu25-Feb-08 19:04 
AnswerRe: Unlocking a file.. Pin
Rajkumar R25-Feb-08 20:31
Rajkumar R25-Feb-08 20:31 
GeneralRe: Unlocking a file.. Pin
sharanu25-Feb-08 20:48
sharanu25-Feb-08 20:48 
AnswerRe: Unlocking a file.. Pin
Rajkumar R25-Feb-08 21:42
Rajkumar R25-Feb-08 21:42 
QuestionHow to change the background color of AfxControlBar*, CToolBar's parent window ? Pin
Paresh Chitte25-Feb-08 17:22
Paresh Chitte25-Feb-08 17:22 
GeneralRe: How to change the background color of AfxControlBar*, CToolBar's parent window ? Pin
SandipG 27-Feb-08 22:46
SandipG 27-Feb-08 22:46 
GeneralRe: How to change the background color of AfxControlBar*, CToolBar's parent window ? Pin
Paresh Chitte28-Feb-08 17:27
Paresh Chitte28-Feb-08 17:27 
Questionhow to generate several Gaussian function according to different sigm Pin
gentleguy25-Feb-08 14:30
gentleguy25-Feb-08 14:30 
QuestionParallel Port Polling Pin
GlenET25-Feb-08 10:21
GlenET25-Feb-08 10:21 
GeneralRe: Parallel Port Polling Pin
Mark Salsbery25-Feb-08 11:04
Mark Salsbery25-Feb-08 11:04 
GeneralRe: Parallel Port Polling Pin
GlenET26-Feb-08 7:21
GlenET26-Feb-08 7:21 

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.