Click here to Skip to main content
15,914,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: BOOL to bool conversion Pin
J.B.4-Jul-04 7:19
J.B.4-Jul-04 7:19 
GeneralRe: BOOL to bool conversion Pin
User 66584-Jul-04 7:34
User 66584-Jul-04 7:34 
GeneralRe: BOOL to bool conversion Pin
A T I F4-Jul-04 22:14
A T I F4-Jul-04 22:14 
GeneralRe: BOOL to bool conversion Pin
User 66585-Jul-04 0:54
User 66585-Jul-04 0:54 
GeneralRe: BOOL to bool conversion Pin
Tim Smith5-Jul-04 4:03
Tim Smith5-Jul-04 4:03 
GeneralRe: BOOL to bool conversion Pin
V.4-Jul-04 22:18
professionalV.4-Jul-04 22:18 
GeneralRe: BOOL to bool conversion Pin
Tim Smith5-Jul-04 4:01
Tim Smith5-Jul-04 4:01 
GeneralUsing MFC in Win32 Application Pin
vyjesh4-Jul-04 0:33
vyjesh4-Jul-04 0:33 
Hi Everybody,

I have a question regarding "Using MFC in Win32 Application". I am using Visual Studio6.0. I want to use MFC in my Win32 Application. I started File->New->Win32 Application->A Simple Win32 Application. And I get the following code pasted below. Now I want to use MFC, say, CString, How do I do it? I tried to use as "CString str" and included the header file <afx.h> but of no use. It gives compile errors as "CString undeclared identifier" Can anybody help? Can anybody tell me which header files and .lib files to use, or any other settings to be made to the editor???


----------------------------------------------------------
// FirstSample.cpp : Defines the entry point
// for the application.
//

#include "stdafx.h"

int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
// TODO: Place code here.
CString str;
return 0;
}
-----------------------------------------------------------

Regards
VYJU

GeneralRe: Using MFC in Win32 Application Pin
gamitech4-Jul-04 6:19
gamitech4-Jul-04 6:19 
GeneralRe: Using MFC in Win32 Application Pin
Frank K4-Jul-04 19:34
Frank K4-Jul-04 19:34 
Generalproblem with console app Pin
cpeed4-Jul-04 0:29
cpeed4-Jul-04 0:29 
GeneralRe: problem with console app Pin
Mike Nordell4-Jul-04 1:17
Mike Nordell4-Jul-04 1:17 
GeneralRe: problem with console app Pin
cpeed4-Jul-04 1:25
cpeed4-Jul-04 1:25 
Generalthe &quot;outp&quot; command Pin
Member 12178723-Jul-04 22:59
Member 12178723-Jul-04 22:59 
GeneralRe: the &quot;outp&quot; command Pin
peterchen4-Jul-04 0:30
peterchen4-Jul-04 0:30 
Generalthe &quot;outp&quot; command Pin
Member 12178723-Jul-04 22:56
Member 12178723-Jul-04 22:56 
Generalthe &quot;outp&quot; command Pin
Member 12178723-Jul-04 19:24
Member 12178723-Jul-04 19:24 
GeneralRe: the &quot;outp&quot; command Pin
Michael Dunn3-Jul-04 20:40
sitebuilderMichael Dunn3-Jul-04 20:40 
GeneralRe: the &quot;outp&quot; command Pin
Johan Rosengren3-Jul-04 21:02
Johan Rosengren3-Jul-04 21:02 
Generaldialog box help Pin
AmericanBacon3-Jul-04 15:15
AmericanBacon3-Jul-04 15:15 
GeneralRe: dialog box help Pin
Ravi Bhavnani3-Jul-04 16:04
professionalRavi Bhavnani3-Jul-04 16:04 
GeneralRe: dialog box help Pin
PJ Arends3-Jul-04 17:22
professionalPJ Arends3-Jul-04 17:22 
GeneralRe: dialog box help Pin
gamitech4-Jul-04 6:21
gamitech4-Jul-04 6:21 
GeneralRe: dialog box help Pin
vyjesh4-Jul-04 23:05
vyjesh4-Jul-04 23:05 
GeneralCString into a non-MFC app Pin
CaesarCZ3-Jul-04 13:06
CaesarCZ3-Jul-04 13: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.