03-07-2019, 03:59 PM
(This post was last modified: 03-07-2019, 06:35 PM by denville.
Edit Reason: Addendum
)
Forgive me for opening another thread but it is essential here that I get this going - I have staked my reputation on IntraWeb against almost irresistable opposition from the VS dot crap camp - so to recap ...
I have a clean install of XE7 on a 64-bit W7 PC with the latest IntraWeb release freshly downloaded and installed according to the instructions including removing the bundled edition. On 32-bit platform an app builds and runs perfectly just like I am used to.
I start a new project in a new and completely different directory, adding 64-bit platform and removing 32-bit platform, I put a button on the IW form and build...
[ilink64 Error] Error: Unresolved external 'WinMain' referenced from C:\PROGRAM FILES (X86)\EMBARCADERO\STUDIO\15.0\LIB\WIN64\RELEASE\C0W64.O
I open Project | View Source where I know the main is located, there I see...
#if _WIN64
int WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int)
#elif __WIN32__
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
#endif
{
So, I try renaming _tWinMain to just WinMain and rebuild - success !
Then I run the app, which immediately crashes out with "The application was unable to start correctly (0x0000007b)."
So there was obviously a reason why WinMain was renamed. Now I am stumpped and need to make progress...
Help Alexandre my hero !!!
PS I should have said - I'm using C++ Builder not Delphi.
PPS...
Since the whole rational behind this new project is to add a Web form to the 64-vit VCL app....
I tried adding IW to a VCL application using the technique I developed last year (and which was so successful I published it in the then C++ Builder Journal) thinking this would navigate around the Linker error - which it did. But unfortunately the program still crashed out on start-up with the same Unable to start correctly ... error as above.
I am quite willing to pay for support and a solution !
Denville.
I have a clean install of XE7 on a 64-bit W7 PC with the latest IntraWeb release freshly downloaded and installed according to the instructions including removing the bundled edition. On 32-bit platform an app builds and runs perfectly just like I am used to.
I start a new project in a new and completely different directory, adding 64-bit platform and removing 32-bit platform, I put a button on the IW form and build...
[ilink64 Error] Error: Unresolved external 'WinMain' referenced from C:\PROGRAM FILES (X86)\EMBARCADERO\STUDIO\15.0\LIB\WIN64\RELEASE\C0W64.O
I open Project | View Source where I know the main is located, there I see...
#if _WIN64
int WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int)
#elif __WIN32__
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
#endif
{
So, I try renaming _tWinMain to just WinMain and rebuild - success !
Then I run the app, which immediately crashes out with "The application was unable to start correctly (0x0000007b)."
So there was obviously a reason why WinMain was renamed. Now I am stumpped and need to make progress...
Help Alexandre my hero !!!
PS I should have said - I'm using C++ Builder not Delphi.
PPS...
Since the whole rational behind this new project is to add a Web form to the 64-vit VCL app....
I tried adding IW to a VCL application using the technique I developed last year (and which was so successful I published it in the then C++ Builder Journal) thinking this would navigate around the Linker error - which it did. But unfortunately the program still crashed out on start-up with the same Unable to start correctly ... error as above.
I am quite willing to pay for support and a solution !
Denville.