Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Creating a project for a non-VCL Windows app


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Aug 29, 2016 8:36 PM Last Post By: John Baird
John Baird

Posts: 22
Registered: 6/15/09
Creating a project for a non-VCL Windows app  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 29, 2016 2:34 AM
Under XE7, how can I create a project for an existing non VCL GUI Windows application which I have been building via bat file using a combination of bcc32, brc32 and ilink32? The options under "File -> New" allow for VCL and console apps but not a GUI app with its own win32 code for window creation, message handling etc.

I'm having an issue with the bat build where using the WSDL with the Micro Focus' (Novell) GroupWise SOAP, an application error occurs in kernelbase.dll, but the same WSDL code works perfectly from a VCL app and from a bat file built console app. Hence I want to see if a GUI version built from a project works, and if so, what compiler and linker options are being used.

Thanks, John
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Creating a project for a non-VCL Windows app  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 29, 2016 10:37 AM   in response to: John Baird in response to: John Baird
John wrote:

Under XE7, how can I create a project for an existing non VCL GUI
Windows application which I have been building via bat file using a
combination of bcc32, brc32 and ilink32? The options under "File ->
New" allow for VCL and console apps but not a GUI app

Create a Console project, and uncheck the "Console Application" option in
the wizard. That will create a Win32 app with a WinMain() entry point instead
of a main() entry point.

However, the "Console Application" checkbox is broken in XE2+, so you have
to utilize a workaround if it is checked by default. See my answer to this
question on StackOverflow:

Create Win32 application in C++Builder XE5
http://stackoverflow.com/questions/29283438/

with its own win32 code for window creation, message handling etc.

The console wizard does not generate any default code for you. The generated
entry point is completely empty, so you can add your own code as desired.

--
Remy Lebeau (TeamB)
John Baird

Posts: 22
Registered: 6/15/09
Re: Creating a project for a non-VCL Windows app  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 29, 2016 8:36 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Remy Lebeau (TeamB) wrote:
John wrote:

Under XE7, how can I create a project for an existing non VCL GUI
Windows application which I have been building via bat file using a
combination of bcc32, brc32 and ilink32? The options under "File ->
New" allow for VCL and console apps but not a GUI app

Create a Console project, and uncheck the "Console Application" option in
the wizard. That will create a Win32 app with a WinMain() entry point instead
of a main() entry point.

However, the "Console Application" checkbox is broken in XE2+, so you have
to utilize a workaround if it is checked by default. See my answer to this
question on StackOverflow:

Create Win32 application in C++Builder XE5
http://stackoverflow.com/questions/29283438/

with its own win32 code for window creation, message handling etc.

The console wizard does not generate any default code for you. The generated
entry point is completely empty, so you can add your own code as desired.

That worked great. And running the program in debug mode has pointed me to the issue causing the application error.

Many thanks, John
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02