Click here to Skip to main content
15,912,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Resize controls in c++ win 32 Pin
Maximilien3-May-10 7:07
Maximilien3-May-10 7:07 
GeneralRe: Resize controls in c++ win 32 Pin
Randor 3-May-10 8:04
professional Randor 3-May-10 8:04 
GeneralRe: Resize controls in c++ win 32 Pin
David Crow3-May-10 8:37
David Crow3-May-10 8:37 
GeneralRe: Resize controls in c++ win 32 Pin
Randor 3-May-10 9:03
professional Randor 3-May-10 9:03 
GeneralRe: Resize controls in c++ win 32 Pin
David Crow3-May-10 9:11
David Crow3-May-10 9:11 
GeneralRe: Resize controls in c++ win 32 Pin
Randor 3-May-10 9:30
professional Randor 3-May-10 9:30 
GeneralRe: Resize controls in c++ win 32 Pin
David Crow3-May-10 10:29
David Crow3-May-10 10:29 
QuestionI want to display a Images or Icons on second column using CListCtrl Pin
D.Manivelan3-May-10 3:18
D.Manivelan3-May-10 3:18 
AnswerRe: I want to display a Images or Icons on second column using CListCtrl Pin
«_Superman_»3-May-10 7:08
professional«_Superman_»3-May-10 7:08 
QuestionMultimap (STL) equal_range function Pin
AkashAg3-May-10 1:26
AkashAg3-May-10 1:26 
AnswerRe: Multimap (STL) equal_range function Pin
CPallini3-May-10 2:08
mveCPallini3-May-10 2:08 
AnswerRe: Multimap (STL) equal_range function Pin
Stephen Hewitt3-May-10 5:00
Stephen Hewitt3-May-10 5:00 
Questioncrasing in CAsyncSocket Accept Pin
Member 36537513-May-10 1:06
Member 36537513-May-10 1:06 
QuestionRe: crasing in CAsyncSocket Accept Pin
David Crow3-May-10 3:00
David Crow3-May-10 3:00 
AnswerRe: crasing in CAsyncSocket Accept Pin
Member 36537513-May-10 3:55
Member 36537513-May-10 3:55 
GeneralRe: crasing in CAsyncSocket Accept Pin
Rajesh R Subramanian3-May-10 4:26
professionalRajesh R Subramanian3-May-10 4:26 
QuestionProblems reading Bitmaps Pin
Manfr3d3-May-10 1:02
Manfr3d3-May-10 1:02 
AnswerRe: Problems reading Bitmaps Pin
Cedric Moonen3-May-10 1:08
Cedric Moonen3-May-10 1:08 
GeneralRe: Problems reading Bitmaps Pin
Manfr3d3-May-10 1:27
Manfr3d3-May-10 1:27 
GeneralRe: Problems reading Bitmaps Pin
Jonathan Davies3-May-10 2:16
Jonathan Davies3-May-10 2:16 
GeneralRe: Problems reading Bitmaps Pin
Manfr3d3-May-10 5:17
Manfr3d3-May-10 5:17 
QuestionHow to Convert from console application with .C files to MFC based application Pin
manoharbalu2-May-10 20:26
manoharbalu2-May-10 20:26 
I am having a sample Console based application Test.dsw which uses .C files. The application start point is the file shown below.

//GLGMain.h
/*---------------------------------------------------------------------------
| This file defines platform-specific entry point and may be included when
| the generic GLG API is used.*/

#include "GlgApi.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Prototype for GlgMain */
int GlgMain _G_PROTO(( int, char*[], GlgAppContext ));
#ifdef __cplusplus
}
#endif
#ifdef MS_WINDOWS
#include <windows.h>
/* MS Windows entry point. */
int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow )
{
GlgAppContext AppContext; GlgObject args_array; int rval; GlgLong argc;
char ** argv;
args_array = GlgParseArgs( "GlgToolkit", lpCmdLine, &argc, &argv );
AppContext = GlgInit( False, (GlgAppContext)hInstance, argc, argv );
rval = GlgMain( (int) argc, argv, AppContext );
GlgDropObject( args_array ); GlgTerminate(); return rval;
}
#else /* X Windows *//* X Windows entry point. */#ifdef _G_USE_PROTOTYPES
int main( int argc, char *argv[] )#elseint main( argc, argv ) int argc;
char *argv[];#endif{ return GlgMain( argc, argv, (GlgAppContext)0 );}
#endif

The main functionality of the application is present in the file diagramG.C.
I want to convert the application to MFC Based application and use the diagramG.C file in my application. When I tried to create a MFC EXE application and included the diagramG.C file in my project and started compiling its giving me errors. kindly advise.

Anyone kindly tell me the step by step procedure to use the diagramG.C file in my MFC based application and change the starting point of the application from int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow ) to MFC starting point.


Thanks in advance
AnswerRe: How to Convert from console application with .C files to MFC based application Pin
KingsGambit2-May-10 20:51
KingsGambit2-May-10 20:51 
AnswerRe: How to Convert from console application with .C files to MFC based application Pin
CPallini2-May-10 21:15
mveCPallini2-May-10 21:15 
AnswerRe: How to Convert from console application with .C files to MFC based application Pin
Cedric Moonen2-May-10 21:22
Cedric Moonen2-May-10 21:22 

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.