Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IntraWeb14 C-Builder
#1
Question 
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++.

Huh Huh Huh Huh Huh Huh Huh 

Thank you for your help
Reply


Messages In This Thread
IntraWeb14 C-Builder - by KDU - 05-15-2018, 02:57 PM
RE: IntraWeb14 C-Builder - by AllBars - 05-26-2018, 09:55 AM
RE: IntraWeb14 C-Builder - by kudzu - 05-26-2018, 02:05 PM
RE: IntraWeb14 C-Builder - by Alexandre Machado - 05-27-2018, 09:50 PM
RE: IntraWeb14 C-Builder - by Alexandre Machado - 05-28-2018, 12:47 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)