wxWidgets and Borland Turbo C++ Explorer Edition Topic is solved
- T-Rex
- Moderator
- Posts: 1249
- Joined: Sat Oct 23, 2004 9:58 am
- Location: Zaporizhzhya, Ukraine
- Contact:
wxWidgets and Borland Turbo C++ Explorer Edition
Hello.
Has anybody compiled even minimal wxWidgets application using Borland Turbo C++ EE?
I managed how to build wxWidgets using new compiler. (I had to make some minor fixes of wxWidgets source code but I got it compiled). Also I compiled minimal sample using makefile.bcc but unfortunately I can't make it work when compiled from IDE.
Build process finishes successfully with no warnings or errors but I get access violation when executing the application built from IDE.
This problem also occured with CBuilder 5/6 but I solved it by using some #pragmas. Unfortunately such trick does not work with Turbo C++ EE (IDE adds some compiler parameters and I can't figure out how to remove them. It seems that the IDE forces using of this parameters)
So, if anybody have successfully compiled the minimal sample with IDE then please tell me how to do this... Some step-by-step tutorial could be useful for all of us.
If you have any thoughts regarding this problem then please, feel free to post them here.
Regards,
T-Rex
Has anybody compiled even minimal wxWidgets application using Borland Turbo C++ EE?
I managed how to build wxWidgets using new compiler. (I had to make some minor fixes of wxWidgets source code but I got it compiled). Also I compiled minimal sample using makefile.bcc but unfortunately I can't make it work when compiled from IDE.
Build process finishes successfully with no warnings or errors but I get access violation when executing the application built from IDE.
This problem also occured with CBuilder 5/6 but I solved it by using some #pragmas. Unfortunately such trick does not work with Turbo C++ EE (IDE adds some compiler parameters and I can't figure out how to remove them. It seems that the IDE forces using of this parameters)
So, if anybody have successfully compiled the minimal sample with IDE then please tell me how to do this... Some step-by-step tutorial could be useful for all of us.
If you have any thoughts regarding this problem then please, feel free to post them here.
Regards,
T-Rex
-
- Filthy Rich wx Solver
- Posts: 210
- Joined: Sat May 07, 2005 8:24 pm
- Location: Eskisehir, TURKEY
- Contact:
I tried it, too. Do you know that using wizard like wxDevcpp wxwidgets project with this IDE?
- T U R K E Y ?
- I love this country!
WebSites:
http://mebt.sourceforge.net/
http://wxquran.sourceforge.net/
- I love this country!
WebSites:
http://mebt.sourceforge.net/
http://wxquran.sourceforge.net/
-
- Filthy Rich wx Solver
- Posts: 210
- Joined: Sat May 07, 2005 8:24 pm
- Location: Eskisehir, TURKEY
- Contact:
tiwag wrote:haha good joke - i don't think there exists any wizard for wxemarti wrote:I tried it, too. Do you know that using wizard like wxDevcpp wxwidgets project with this IDE?
http://chgi.developpez.com/wxwindows/
I found wxwizard at this link but spanish. I beat one's brains to translate it.
Help me.
- T U R K E Y ?
- I love this country!
WebSites:
http://mebt.sourceforge.net/
http://wxquran.sourceforge.net/
- I love this country!
WebSites:
http://mebt.sourceforge.net/
http://wxquran.sourceforge.net/
-
- Filthy Rich wx Solver
- Posts: 210
- Joined: Sat May 07, 2005 8:24 pm
- Location: Eskisehir, TURKEY
- Contact:
Hi, T-Rex.T-Rex wrote: It is not very hard to create project template for IDE but first of all it would be good if we manage how to build minimal sample from IDE.
if you share minimal sample project for BCB, we found occuring errors.
Can you build it from console? (make -f makefile.bcc BUILD=release)
- T U R K E Y ?
- I love this country!
WebSites:
http://mebt.sourceforge.net/
http://wxquran.sourceforge.net/
- I love this country!
WebSites:
http://mebt.sourceforge.net/
http://wxquran.sourceforge.net/
- T-Rex
- Moderator
- Posts: 1249
- Joined: Sat Oct 23, 2004 9:58 am
- Location: Zaporizhzhya, Ukraine
- Contact:
All wxWidgets samples work fine when built from console but do not work when built from IDE.
You just can use the source code of samples/minumal
there was a trick for BCB6
But we can avoid this trick since all samples work fine when built from command line.
You just can use the source code of samples/minumal
there was a trick for BCB6
Code: Select all
#include <vector>
using namespace std;
#pragma option push -a1 -b -p-
#pragma comment(lib, "wx24ds_bcc.lib")
#pragma comment(lib, "winpng.lib")
#pragma comment(lib, "zlib.lib")
//all wxWidgets-related source code here
#pragma option pop
WINAPI WinMain(HINSTANCE hi, HINSTANCE, LPSTR, int)
{
wxEntry(hi, NULL, NULL, 0, true);
if ( wxTheApp )
wxTheApp->OnExit();
return 0;
}
//---------------------------------------------------------------------------
-
- Filthy Rich wx Solver
- Posts: 210
- Joined: Sat May 07, 2005 8:24 pm
- Location: Eskisehir, TURKEY
- Contact:
Ok, I am trying it on BCB6 IDE.
- T U R K E Y ?
- I love this country!
WebSites:
http://mebt.sourceforge.net/
http://wxquran.sourceforge.net/
- I love this country!
WebSites:
http://mebt.sourceforge.net/
http://wxquran.sourceforge.net/
Re: wxWidgets and Borland Turbo C++ Explorer Edition
I just managed to get controls working in TurboExplorer. Granted this was in debug mode, but it is progress.T-Rex wrote:Hello.
Has anybody compiled even minimal wxWidgets application using Borland Turbo C++ EE?
I couldn't get the minimal sample working previously, I kept getting weird linker errors.
Anyone else mangaged this so far?
Follow the development of my screenplay authoring program at http://wxscreenplaywriter.blogspot.com/
No crash here. The programs run as desired.T-Rex wrote:I have no problems with compilation and linking but executables do not work. They just crash at startup
Follow the development of my screenplay authoring program at http://wxscreenplaywriter.blogspot.com/