Click here to Skip to main content
15,895,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: detect if user has admin privilege Pin
devvvy24-Nov-02 21:47
devvvy24-Nov-02 21:47 
GeneralRe: detect if user has admin privilege Pin
Daniel Turini24-Nov-02 22:06
Daniel Turini24-Nov-02 22:06 
GeneralCreating a window in an ATL without MFC Pin
Jerome Conus24-Nov-02 20:19
Jerome Conus24-Nov-02 20:19 
GeneralRe: Creating a window in an ATL without MFC Pin
Daniel Turini24-Nov-02 22:12
Daniel Turini24-Nov-02 22:12 
GeneralPreTranslateMessage question Pin
Mel Feik24-Nov-02 19:45
Mel Feik24-Nov-02 19:45 
GeneralRe: PreTranslateMessage question Pin
Christian Graus24-Nov-02 20:21
protectorChristian Graus24-Nov-02 20:21 
GeneralRe: PreTranslateMessage question Pin
Mel Feik24-Nov-02 20:39
Mel Feik24-Nov-02 20:39 
GeneralRe: PreTranslateMessage question Pin
Christian Graus24-Nov-02 20:46
protectorChristian Graus24-Nov-02 20:46 
In OnChar, the first parameter is a UINT. If you declare a char to be equal to that value, you can test for any key you like:

<br />
void CTestView::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags)<br />
{<br />
	char c = nChar;<br />
	CString s(c);<br />
	AfxMessageBox(s);<br />
}<br />


This will bring up any key you press in a message box.

The conversion from int to char is implicit.


Christian

No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002

Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002

Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
GeneralRe: PreTranslateMessage question Pin
Christian Graus24-Nov-02 20:51
protectorChristian Graus24-Nov-02 20:51 
GeneralRe: PreTranslateMessage question Pin
Mel Feik24-Nov-02 21:05
Mel Feik24-Nov-02 21:05 
GeneralRe: PreTranslateMessage question Pin
Cosmin Marin25-Nov-02 0:52
Cosmin Marin25-Nov-02 0:52 
GeneralAdding text to toolbar buttons into a standard MFC SDI App Pin
Alex Cramer24-Nov-02 18:35
Alex Cramer24-Nov-02 18:35 
GeneralRe: Adding text to toolbar buttons into a standard MFC SDI App Pin
Anonymous25-Nov-02 23:46
Anonymous25-Nov-02 23:46 
Generalhelp! CreateThread! Pin
devvvy24-Nov-02 18:13
devvvy24-Nov-02 18:13 
GeneralRe: help! CreateThread! Pin
Michael Dunn24-Nov-02 18:20
sitebuilderMichael Dunn24-Nov-02 18:20 
GeneralRe: help! CreateThread! Pin
devvvy24-Nov-02 18:40
devvvy24-Nov-02 18:40 
GeneralRe: help! CreateThread! Pin
devvvy24-Nov-02 18:47
devvvy24-Nov-02 18:47 
Questionhow can i repair and compact the access2000 database using ado in vc? Pin
whelk24-Nov-02 17:42
whelk24-Nov-02 17:42 
AnswerRe: how can i repair and compact the access2000 database using ado in vc? Pin
paulb24-Nov-02 18:07
paulb24-Nov-02 18:07 
GeneralRe: how can i repair and compact the access2000 database using ado in vc? Pin
whelk24-Nov-02 18:58
whelk24-Nov-02 18:58 
GeneralRe: how can i repair and compact the access2000 database using ado in vc? Pin
Alexinuk25-Nov-02 3:12
Alexinuk25-Nov-02 3:12 
Generalthe CDaodatabase dont support access2000 Pin
whelk25-Nov-02 14:52
whelk25-Nov-02 14:52 
GeneralToolbar dependent bitmaps in my Popup menus Pin
Mr Bose Dayala24-Nov-02 17:31
Mr Bose Dayala24-Nov-02 17:31 
GeneralCreating Line Count for CRich Edit Control Pin
E324-Nov-02 16:34
E324-Nov-02 16:34 
GeneralCustom compiler steps... Pin
Matt Gullett24-Nov-02 16:03
Matt Gullett24-Nov-02 16:03 

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.