Click here to Skip to main content
16,005,206 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to find the time interval accurate to millisecond? Pin
geo_m26-Jan-05 1:10
geo_m26-Jan-05 1:10 
GeneralRe: How to find the time interval accurate to millisecond? Pin
KaЯl26-Jan-05 5:38
KaЯl26-Jan-05 5:38 
GeneralRe: How to find the time interval accurate to millisecond? Pin
David Crow26-Jan-05 5:51
David Crow26-Jan-05 5:51 
GeneralRe: How to find the time interval accurate to millisecond? Pin
KaЯl26-Jan-05 6:22
KaЯl26-Jan-05 6:22 
GeneralRe: How to find the time interval accurate to millisecond? Pin
rbid26-Jan-05 10:27
rbid26-Jan-05 10:27 
GeneralRe: How to find the time interval accurate to millisecond? Pin
David Crow26-Jan-05 10:36
David Crow26-Jan-05 10:36 
QuestionHow to add .c file to my MFC project and using its function Pin
tttyip25-Jan-05 23:46
tttyip25-Jan-05 23:46 
AnswerRe: How to add .c file to my MFC project and using its function Pin
Mike Dimmick26-Jan-05 0:29
Mike Dimmick26-Jan-05 0:29 
You must add the .c file, otherwise it won't be compiled and your program won't link. Adding the .h file is optional; IntelliSense normally works better if you do. Just use the Add Files feature to add them.

You don't need to do anything in VC6 to compile a .c file as C. The C/C++ compiler uses the extension to decide how to compile the file, unless you override it. The defaults for a new project in VS.NET include the /TP flag, which instructs the compiler to compile all files as C++. This is rarely an issue as C is a mostly-compatible subset of C++. There are a very few cases where the compiler will produce different code when compiled as C versus compiling as C++.

To turn this feature off in VS.NET, go to Project Properties, Configuration Properties, C/C++, Advanced and set Compile As to Default.

[EDIT] I forgot to mention how to use the functions. Simply #include the header file in any source file you want to use the functions in. [/EDIT]

Stability. What an interesting concept. -- Chris Maunder
Questionhandle the keyboard input or Accelerator Keys using win32 modal dialog box? Pin
torrentmoon25-Jan-05 23:43
torrentmoon25-Jan-05 23:43 
AnswerRe: handle the keyboard input or Accelerator Keys using win32 modal dialog box? Pin
Bob Ciora26-Jan-05 1:33
Bob Ciora26-Jan-05 1:33 
GeneralRe: handle the keyboard input or Accelerator Keys using win32 modal dialog box? Pin
suendisra9-May-11 20:34
suendisra9-May-11 20:34 
Questionhow to initialize a pointer and store string values in it? Pin
reenacutie25-Jan-05 23:35
reenacutie25-Jan-05 23:35 
AnswerRe: how to initialize a pointer and store string values in it? Pin
cristina_tudor26-Jan-05 0:13
cristina_tudor26-Jan-05 0:13 
Generalcube root of a number Pin
cristina_tudor25-Jan-05 23:20
cristina_tudor25-Jan-05 23:20 
GeneralRe: cube root of a number Pin
Antony M Kancidrowski26-Jan-05 2:04
Antony M Kancidrowski26-Jan-05 2:04 
Generallink asm code Pin
rushing25-Jan-05 23:12
rushing25-Jan-05 23:12 
GeneralRe: link asm code Pin
tanvon malik26-Jan-05 0:04
tanvon malik26-Jan-05 0:04 
GeneralMessageBox and Modal dialog Pin
rwestgraham25-Jan-05 22:44
rwestgraham25-Jan-05 22:44 
GeneralRe: MessageBox and Modal dialog Pin
Bob Ciora26-Jan-05 2:49
Bob Ciora26-Jan-05 2:49 
GeneralRe: MessageBox and Modal dialog Pin
rwestgraham26-Jan-05 12:50
rwestgraham26-Jan-05 12:50 
Generalwindows service Pin
hou_12625-Jan-05 22:36
hou_12625-Jan-05 22:36 
GeneralRe: windows service Pin
Blake Miller26-Jan-05 10:14
Blake Miller26-Jan-05 10:14 
GeneralRe: windows service Pin
hou_12626-Jan-05 15:40
hou_12626-Jan-05 15:40 
GeneralRe: windows service Pin
Blake Miller27-Jan-05 4:07
Blake Miller27-Jan-05 4:07 
QuestionProblem extending a Win32 Console App with a MFC Dialog ? Pin
keith_ennion25-Jan-05 22:06
keith_ennion25-Jan-05 22:06 

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.