Click here to Skip to main content
15,888,286 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: How to Convert from console application with .C files to MFC based application Pin
Rajesh R Subramanian2-May-10 22:57
professionalRajesh R Subramanian2-May-10 22:57 
GeneralRe: How to Convert from console application with .C files to MFC based application Pin
CPallini3-May-10 21:19
mveCPallini3-May-10 21:19 
GeneralRe: How to Convert from console application with .C files to MFC based application Pin
Rajesh R Subramanian3-May-10 22:31
professionalRajesh R Subramanian3-May-10 22:31 
QuestionWin32 / C++ Pin
Fareed Rizkalla2-May-10 10:33
Fareed Rizkalla2-May-10 10:33 
AnswerRe: Win32 / C++ Pin
Code-o-mat2-May-10 10:48
Code-o-mat2-May-10 10:48 
AnswerRe: Win32 / C++ Pin
Michel Godfroid2-May-10 10:51
Michel Godfroid2-May-10 10:51 
AnswerRe: Win32 / C++ Pin
ThatsAlok2-May-10 20:04
ThatsAlok2-May-10 20:04 
QuestionMultithreading in general Pin
csrss2-May-10 9:22
csrss2-May-10 9:22 
AnswerRe: Multithreading in general Pin
CPallini2-May-10 9:39
mveCPallini2-May-10 9:39 
AnswerRe: Multithreading in general Pin
csrss2-May-10 9:56
csrss2-May-10 9:56 
GeneralRe: Multithreading in general Pin
Software_Developer3-May-10 2:46
Software_Developer3-May-10 2:46 
AnswerRe: Multithreading in general Pin
ThatsAlok2-May-10 20:01
ThatsAlok2-May-10 20:01 
AnswerRe: Multithreading in general Pin
Rajesh R Subramanian2-May-10 23:02
professionalRajesh R Subramanian2-May-10 23:02 
AnswerRe: Multithreading in general Pin
Emilio Garavaglia3-May-10 1:23
Emilio Garavaglia3-May-10 1:23 

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.