Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Lock whole screen Pin
Don Box21-Jan-08 23:26
Don Box21-Jan-08 23:26 
GeneralRe: Lock whole screen Pin
baerten21-Jan-08 23:38
baerten21-Jan-08 23:38 
GeneralRe: Lock whole screen Pin
Rajesh R Subramanian21-Jan-08 23:43
professionalRajesh R Subramanian21-Jan-08 23:43 
GeneralRe: Lock whole screen Pin
baerten21-Jan-08 23:48
baerten21-Jan-08 23:48 
GeneralRe: Lock whole screen Pin
Don Box21-Jan-08 23:53
Don Box21-Jan-08 23:53 
GeneralRe: Lock whole screen Pin
baerten22-Jan-08 0:10
baerten22-Jan-08 0:10 
GeneralRe: Lock whole screen Pin
Don Box22-Jan-08 0:22
Don Box22-Jan-08 0:22 
GeneralRe: Lock whole screen Pin
baerten22-Jan-08 0:39
baerten22-Jan-08 0:39 
I have for example a simple source-code ( .cpp & .h file) without classes, only static functions.
These functions are called from the DOS-code and aswell from my MFC-Classes :

For example

while(stop != 1) {
Grid.Execute(); //-> does the DoModal() and quits this function via the OnOK()
switch(Grid.PressedKey) {
case KEY_ESC: stop = 1; break;
case KEY_ENTER: /*traitement*/ stop = 1; break;
};
}

In the DOS-Application the .Execute draws with a lot of printf a Grid to the console
In my MFC-Application the .Execute opens a Dialog within a Grid-Control

If the user hit's a key, the Execute function ends and the switch(Grid.PressedKey) launches
If the key don't matches, the grid continues beeing displayed, until ENTER or ESCAPE is beeing hitted.

In DOS a #ifndef loads the header which defines the DOS-Grid and in the case of a windows PRECOMPILER-DIRECTIVE the header
for the Dialog will be loaded...

So this code is uniform to the application ...

You know what i mean? Because it's hard to explain in a brief text a whole project-logic Smile | :)


Greetz
GeneralPlz Help me Pin
sharanu21-Jan-08 22:07
sharanu21-Jan-08 22:07 
GeneralRe: Plz Help me Pin
Don Box21-Jan-08 22:19
Don Box21-Jan-08 22:19 
GeneralRe: Plz Help me Pin
Cedric Moonen21-Jan-08 22:21
Cedric Moonen21-Jan-08 22:21 
GeneralRe: Plz Help me Pin
CPallini21-Jan-08 22:26
mveCPallini21-Jan-08 22:26 
GeneralNeed help on MFC CListCtrl -- Pin
sarat21-Jan-08 22:06
sarat21-Jan-08 22:06 
GeneralRe: Need help on MFC CListCtrl -- Pin
Don Box21-Jan-08 22:31
Don Box21-Jan-08 22:31 
GeneralRe: Need help on MFC CListCtrl -- Pin
sarat21-Jan-08 22:52
sarat21-Jan-08 22:52 
GeneralRe: Need help on MFC CListCtrl -- Pin
Don Box21-Jan-08 23:04
Don Box21-Jan-08 23:04 
GeneralRe: Need help on MFC CListCtrl -- Pin
sarat22-Jan-08 0:44
sarat22-Jan-08 0:44 
QuestionRe: Need help on MFC CListCtrl -- Pin
David Crow22-Jan-08 2:59
David Crow22-Jan-08 2:59 
GeneralRe: Need help on MFC CListCtrl -- Pin
sarat27-Jan-08 22:13
sarat27-Jan-08 22:13 
GeneralRe: Need help on MFC CListCtrl -- Pin
David Crow28-Jan-08 2:29
David Crow28-Jan-08 2:29 
GeneralPerformance counter index Pin
George_George21-Jan-08 21:51
George_George21-Jan-08 21:51 
GeneralRe: Performance counter index Pin
David Crow22-Jan-08 3:04
David Crow22-Jan-08 3:04 
GeneralRe: Performance counter index Pin
George_George22-Jan-08 14:24
George_George22-Jan-08 14:24 
QuestionRe: Performance counter index Pin
David Crow22-Jan-08 15:58
David Crow22-Jan-08 15:58 
GeneralRe: Performance counter index Pin
George_George22-Jan-08 16:03
George_George22-Jan-08 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.