IntraWeb14 C-Builder - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: IntraWeb14 C-Builder (/thread-208.html) |
IntraWeb14 C-Builder - KDU - 05-15-2018 Hello, I'm trying to get IntraWeb running in c++. Everything is wonderful in delphi, but not in C-Builder. The generated code from the Wizzard can no be compiled. I get the following errors: In Project1.c include <vcl.h> #pragma hdrstop USEFORM("Unit1.cpp", IWForm1); /* TIWAppForm: File Type */ USEFORM("ServerController.cpp", IWServerController); /* TIWServerControllerBase: File Type */ USEFORM("UserSessionUnit.cpp", IWUserSession); /* TIWUserSessionBase: File Type */ //--------------------------------------------------------------------------- #include <IWRtlFix.hpp> #include <IWStart.hpp> //--------------------------------------------------------------------------- #if _WIN64 int WINAPI _tWinMain (HINSTANCE, HINSTANCE, LPTSTR, int) #elif __WIN32__ WINAPI WinMain (HINSTANCE, HINSTANCE, LPSTR, int) #endif { try { TIWStart * p = new TIWStart (true); p> Execute (true); } catch (exception & exception) { } return 0; } // ------------------------------------ [bcc32 error] Project1.cpp (20): E2285 No match found for 'TIWStart :: TIWStart (bool)' Full parser context Project1.cpp (17): parsing: int __stdcall WinMain (HINSTANCE__ *, HINSTANCE__ *, char *, int) Ok, I changed it to TIWStart * p = new TIWStart (); works, but the I get the next Error: //--------------------------------------------------------------------------- #include <vcl.h> #pragma hdrstop #include "UserSessionUnit.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" //--------------------------------------------------------------------------- TIWUserSession* UserSession() { return (TIWUserSession*)WebApplication->Data; } //--------------------------------------------------------------------------- __fastcall TIWUserSession ::TIWUserSession (TComponent* Owner, TIWApplication* ASession) : TIWUserSessionBase(Owner, ASession) { } //--------------------------------------------------------------------------- [bcc32 error] UserSessionUnit.cpp (20): E2285 No match found for 'TIWUserSessionBase :: TIWUserSessionBase (TComponent *, TIWApplication *)' Full parser context UserSessionUnit.cpp (19): parsing: _fastcall TIWUserSession :: TIWUserSession (TComponent *, TIWApplication *) Before I swapped the Intraweb Lib shipped by Embarcadero for the version 14 of Atozed Software, everything worked fine in the C-Builder. The examples work in Delphi but not in the C-Builder. There are always the same errors. What is wrong. I have no idea. I have already lost too much time searching for the error codes. I need help or even better an executable example in c++. Thank you for your help RE: IntraWeb14 C-Builder - AllBars - 05-26-2018 I had those errors at one point. I can't remember exactly how to get rid of it, but the compile errors are due to include path problems, link errors are due to library path problems AllBars RE: IntraWeb14 C-Builder - kudzu - 05-26-2018 "The generated code from the Wizzard can no be compiled" Which version did you use to generate the project? RE: IntraWeb14 C-Builder - Alexandre Machado - 05-27-2018 Please follow these steps 1) Download and run IntraWeb Bundled Removal Tool. You can find instructions and download here: https://www.atozed.com/intraweb/bundled/removal-tool/ 2) Check your paths for C++ compiler. Please notice that C++ Builder 32 bits use the classic compiler, so you must check classic compiler settings. Make sure you don't have invalid and old paths there. In doubt, please copy and paste here your C++ Builder path regarding IntraWeb 3) Install latest IW version for your IDE 4) In your project options disable: a) Link with RTL libraries b) Use runtime packages Try to rebuild it again and see what you get. RE: IntraWeb14 C-Builder - Alexandre Machado - 05-28-2018 Please check your e-mail. I've sent you instructions to update IntraWeb to our latest build. Please make sure that you also follow my previous instructions. |