Telegram_2019-01-26T13

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2019 > 01 > 26 >

Telegram_2019-01-26T13

Telegram link

 

2019-01-26T13:04:28

 

No sir, by changing the position of \test\ to first application is not starting. i also tried CanStartSession = true;

 

RequiresSessionStart := false; same

 


 

Telegram link

 

2019-01-26T13:04:57

 

can you verify that your create event is being called and that it is getting registered?

 


 

Telegram link

 

2019-01-26T13:05:31

 

set a breakpoint here:

 

THandlers::Add(\\, \ GiveMeSomeXML\, new TContentXML());

 


 

Telegram link

 

2019-01-26T13:05:35

 

see if it reaches that.

 


 

Telegram link

 

2019-01-26T13:05:52

 

or set an execption in that event and see if its thrown/raised.

 


 

Telegram link

 

2019-01-26T13:13:52

 

Yes it is calle. what I do for chaking, add a VCL form in the project and place a memo on it and I can add line in the memo from any were from the project. VCL form is always visual. and after completion of the project remove the VCL form

 


 

Telegram link

 

2019-01-26T13:15:21

 

please check that i have created the my drived class properly

 


 

Telegram link

 

2019-01-26T13:15:38

 

class TContentXML : public Iw::Content::Base::TContentBase

 

{

 

private: // User declarations

 

public: // User declarations

 

__fastcall virtual TContentXML ();

 

__fastcall

 

TContentXML (void);

 

virtual bool __fastcall Execute(Iw::Http::Request::THttpRequest* aRequest, Iw::Http::Reply::THttpReply* aReply, const System::UnicodeString aPathname, Iwapplication::TIWApplication* aSession, System::Classes::TStrings* aParams);

 

};

 


 

Telegram link

 

2019-01-26T13:18:16

 

because Execute is pure virtual function I never creater override virtual function so I am not sure about it.

 


 

Telegram link

 

2019-01-26T13:24:05

 

you MUST override. if you dont override, it wont hook into the abstract

 


 

Telegram link

 

2019-01-26T13:24:25

 

Line is added when application starts but Execute never called

 


 

Telegram link

 

2019-01-26T13:24:32

 

you need override.

 


 

Telegram link

 

2019-01-26T13:24:48

 

without override it will replace and the compiler should issue a warning about this. it does in Delphi]

 


 

Telegram link

 

2019-01-26T13:25:23

 

that's the issue I don't know how to write the code in correct way in C++ I never did it.

 


 

Telegram link

 

2019-01-26T13:25:42

 

never did which? C++?

 


 

Telegram link

 

2019-01-26T13:26:58

 

I dont do much C++, but it should be simple:

 

type: link https://en.cppreference.com/w/cpp/language/override

 


 

Telegram link

 

2019-01-26T13:29:13

 

I have to leave now. I will return in about 2 hours. But the missing override is very likely the issue.

 


 

Telegram link

 

2019-01-26T13:30:36

 

when I am

 


 

Telegram link

 

2019-01-26T13:31:36

 

try a ; after ) and before the override;

 


 

Telegram link

 

2019-01-26T13:31:39

 

when i am useing overide error comes as Declaration terminated incorrectly

 


 

Telegram link

 

2019-01-26T13:31:41

 

sorry have to leave now.. back later.

 


 

Telegram link

 

2019-01-26T13:32:02

 

ok sir