|
<< Click to Display Table of Contents >> Navigation: Telegram > 2019 > 01 > 26 > Telegram_2019-01-26T13 |
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
2019-01-26T13:04:57
can you verify that your create event is being called and that it is getting registered?
2019-01-26T13:05:31
set a breakpoint here:
THandlers::Add(\\, \ GiveMeSomeXML\, new TContentXML());
2019-01-26T13:05:35
see if it reaches that.
2019-01-26T13:05:52
or set an execption in that event and see if its thrown/raised.
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
2019-01-26T13:15:21
please check that i have created the my drived class properly
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);
};
2019-01-26T13:18:16
because Execute is pure virtual function I never creater override virtual function so I am not sure about it.
2019-01-26T13:24:05
you MUST override. if you dont override, it wont hook into the abstract
2019-01-26T13:24:25
Line is added when application starts but Execute never called
2019-01-26T13:24:32
you need override.
2019-01-26T13:24:48
without override it will replace and the compiler should issue a warning about this. it does in Delphi]
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.
2019-01-26T13:25:42
never did which? C++?
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
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.
2019-01-26T13:30:36
when I am
2019-01-26T13:31:36
try a ; after ) and before the override;
2019-01-26T13:31:39
when i am useing overide error comes as Declaration terminated incorrectly
2019-01-26T13:31:41
sorry have to leave now.. back later.
2019-01-26T13:32:02
ok sir