Click here to Skip to main content
15,881,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC CreateEx function crashes program Pin
ChrisBuckley2-Oct-09 7:14
ChrisBuckley2-Oct-09 7:14 
GeneralRe: MFC CreateEx function crashes program Pin
transoft2-Oct-09 7:23
transoft2-Oct-09 7:23 
GeneralRe: MFC CreateEx function crashes program Pin
ChrisBuckley2-Oct-09 7:47
ChrisBuckley2-Oct-09 7:47 
GeneralRe: MFC CreateEx function crashes program Pin
transoft2-Oct-09 8:54
transoft2-Oct-09 8:54 
GeneralRe: MFC CreateEx function crashes program Pin
ChrisBuckley5-Oct-09 4:24
ChrisBuckley5-Oct-09 4:24 
GeneralRe: MFC CreateEx function crashes program Pin
Tim Craig3-Oct-09 21:58
Tim Craig3-Oct-09 21:58 
GeneralRe: MFC CreateEx function crashes program Pin
ChrisBuckley5-Oct-09 4:59
ChrisBuckley5-Oct-09 4:59 
QuestionDebug Error - Calling a class member function declared in another file Pin
AntoineBab2-Oct-09 3:14
AntoineBab2-Oct-09 3:14 
I'm a french new MFC programmer, and at run-time (compiling is OK), I got a message from MSVC++. This message is a Debug Error(Value of ESP was not properly saved...Problem of convention function calling). It's seems I located the call function which generate this exception. Following a piece of my source code. I think it's a function declaration problem. Thank's if someone could help me.

// repository.h
class CRepository
{
{
	struct Server {
		struct AutomationModules { 
			int  nDataValid;
			char szFilename[20];
			char szDrawrow1[50];
			char szDrawrow2[50];
			char szDateModifier[10];
		};
		char szServerName[20];						// Individual Server name
		// array files of XXX element of type AutomationModules
		AutomationModules files [MAX_FILES];
		int nValid;									// validity
	};
//Défintion des éléments accesiblent à l'exterieur de la classe
public:
	CString RepositoryName;							// Repository name
	bool bModify;									// Repository state

	//// array server of XXX element of type Server
	Server server[MAX_SERVERS];

	CRepository() {} 
	virtual ~CRepository() {}


.....
public:
void InverseServer(CRepository::Server *Svr1,CRepository::Server *Svr2);
...
};

// heap object
CRepository *pRepository = new CRepository;


// calling from another file 
// xxx.cpp
...
extern CRepository *pRepository
...
pCrepository->InverseServer(&server[j],&server[j+1]);
...

QuestionRe: Debug Error - Calling a class member function declared in another file Pin
David Crow2-Oct-09 8:56
David Crow2-Oct-09 8:56 
QuestionBackground Colour of TabControl Pin
Deepak.Prahlad2-Oct-09 3:00
Deepak.Prahlad2-Oct-09 3:00 
AnswerRe: Background Colour of TabControl Pin
Deepak.Prahlad6-Nov-09 21:08
Deepak.Prahlad6-Nov-09 21:08 
Questionhow to pass arguments to createproces() function Pin
WindowsVsLinux2-Oct-09 1:26
WindowsVsLinux2-Oct-09 1:26 
AnswerRe: how to pass arguments to createproces() function Pin
CPallini2-Oct-09 1:57
mveCPallini2-Oct-09 1:57 
GeneralRe: how to pass arguments to createproces() function Pin
WindowsVsLinux2-Oct-09 2:34
WindowsVsLinux2-Oct-09 2:34 
GeneralRe: how to pass arguments to createproces() function Pin
Michael Schubert2-Oct-09 2:39
Michael Schubert2-Oct-09 2:39 
GeneralRe: how to pass arguments to createproces() function Pin
WindowsVsLinux2-Oct-09 2:44
WindowsVsLinux2-Oct-09 2:44 
GeneralRe: how to pass arguments to createproces() function Pin
David Crow2-Oct-09 2:50
David Crow2-Oct-09 2:50 
GeneralRe: how to pass arguments to createproces() function Pin
Michael Schubert2-Oct-09 2:52
Michael Schubert2-Oct-09 2:52 
GeneralRe: how to pass arguments to createproces() function Pin
CPallini2-Oct-09 2:44
mveCPallini2-Oct-09 2:44 
QuestionRe: how to pass arguments to createproces() function Pin
David Crow2-Oct-09 2:21
David Crow2-Oct-09 2:21 
AnswerRe: how to pass arguments to createproces() function Pin
Michael Schubert2-Oct-09 2:33
Michael Schubert2-Oct-09 2:33 
GeneralRe: how to pass arguments to createproces() function Pin
Cedric Moonen2-Oct-09 2:51
Cedric Moonen2-Oct-09 2:51 
QuestionCloning Dialogs in VS2005 Pin
Grahamfff2-Oct-09 0:13
Grahamfff2-Oct-09 0:13 
AnswerRe: Cloning Dialogs in VS2005 Pin
Cedric Moonen2-Oct-09 1:00
Cedric Moonen2-Oct-09 1:00 
GeneralRe: Cloning Dialogs in VS2005 Pin
Grahamfff2-Oct-09 1:33
Grahamfff2-Oct-09 1:33 

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.