Hi
I have some code, (most of which is made by others), that uses JUCE and compiled and linked fine in VS .NET 2005.
Now I’ve made some changes in the code, and now suddenly I get this error when compiling:
1>Main.cpp
1>c:\projects\eio\tcnear_tca_and_driver_supp_workingbranch\product\eio\controlpanel\private\source\main\main.cpp(14) : error C2731: 'WinMain' : function cannot be overloaded
1> c:\projects\eio\tcnear_tca_and_driver_supp_workingbranch\product\eio\controlpanel\private\source\main\main.cpp(14) : see declaration of 'WinMain'
Main.cpp looks like this:
[code]//------------------------------------------------------------------------------
// File: Main.cpp ©2005 TCWorks Soft- & Hardware GmbH
//------------------------------------------------------------------------------
/** @file Main.cpp
@history
@h 10, June 2005, (Matthias Muchaier) Initial version.
*/
#include “Main.h”
#include “Application/ControlPanel.h”
//==============================================================================
// This macro creates the application’s main() function…
START_JUCE_APPLICATION (ControlPanel)
[/code]
Main.h:
[code]//------------------------------------------------------------------------------
// File: Main.h ©2005 TCWorks Soft- & Hardware GmbH
//------------------------------------------------------------------------------
/** @file Main.h
Declaration of class Main
@history
@h 10, June 2005, (Matthias Muchaier) Initial version.
*/
#include <windows.h>
#include “juce/TCGroup/TCJuce.h”
[/code]
Neither Main.cpp nor Main.h has been changed since it compiled and linked OK.
I tried the suggestion from the other “WinMain problem” string:
but then I get a lot of other errors.
Does someone know, what usually is the problem, that causes the above error and/or what I could/can do to solve it ?
Thanks in advance
Eigil