Page 1 of 1

Message "CGDevTools Evaluation"

PostPosted: 25 Feb 2013 14:16
by Jorge Sousa
[Q] : After installing and activating the CGDevTools product shows the message "CGDevTools Evaluation" in runtime?
[A] : Copied from license.pdf :

C++Builder project modification:

cpp code
//-------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
USEFORM("Unit1.cpp", IWForm1); /* TIWAppForm: File Type */
USEFORM("UserSessionUnit.cpp", IWUserSession); /* TIWUserSessionBase: File Type */
USEFORM("ServerController.cpp", IWServerController); /* TIWServerControllerBase: File Type */
//-------------------------------------------------------------------
#include <IWStart.hpp>
#include "IWCGLicenseKey.h" // <--- Insert this line
//--------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
try
{
IWCGLicenseKeyApply(); // <--- Insert this line
TIWStart* p = new TIWStart()
#if /*CB2006*/ (__BORLANDC__ == 0x580) /*Update 1*/ || (__BORLANDC__ == 0x581) || /*CB2007*/ (__BORLANDC__ == 0x593)
p->Execute(NULL, true);
#else
p->Execute(true);
#endif
}
catch (Exception &exception)
{
}
return 0;
} //-------------------------------------------------------------------



Delphi project modification

Delphi project modification
delphi code
program IWCGProject;
uses
Forms,
IWStart,
UTF8ContentParser,
IWCGLicenseKey, // <--- Insert this line
Unit2 in 'Unit2.pas' {IWForm2: TIWAppForm},
ServerController in 'ServerController.pas' {IWServerController: TIWServerControllerBase},
UserSessionUnit in 'UserSessionUnit.pas' {IWUserSession: TIWUserSessionBase};

{$R *.res}

begin
TIWStart.Execute(True);
end.



Best Regards,
cgdevtools