Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Coverted app from C++ Bldr 2010 to Tokyo 10.2 can't find file



Permlink Replies: 2 - Last Post: Sep 24, 2017 5:11 AM Last Post By: charles leggette
charles leggette

Posts: 45
Registered: 7/17/00
Coverted app from C++ Bldr 2010 to Tokyo 10.2 can't find file
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 22, 2017 1:45 PM
Is this still used in a Tokyo IW app? C++ bldr can’t find it.
#include "IsapiHTTP.hpp"

Here’s the code:

#pragma hdrstop
#include "IWCGHttpApp.h"
#include "IWCGVMTUtils.hpp"
#include "IWCGJQControl.hpp"
#include "HTTPApp.hpp"
#include "IsapiHTTP.hpp"
#include "InHTTPWebBrokerBridge.hpp"
#pragma link "IsapiAPP"

//
void __fastcall TCGHTTPApp::AfterConstructionHandler(System::TObject* AInstance, void *AData)
{
if (dynamic_cast<TInHTTPAppRequest*>(AInstance) != NULL || dynamic_cast<TISAPIRequest*>(AInstance) != NULL)
{
SetCurrentThreadWebRequest((TWebRequest*)AInstance);
}
else if (dynamic_cast<TInHTTPAppResponse*>(AInstance) != NULL || dynamic_cast<TISAPIResponse*>(AInstance) != NULL)
{
SetCurrentThreadWebResponse((TWebResponse*)AInstance);
}

}
Antonio Estevez

Posts: 665
Registered: 4/12/00
Re: Coverted app from C++ Bldr 2010 to Tokyo 10.2 can't find file
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 22, 2017 2:51 PM   in response to: charles leggette in response to: charles leggette
El 22/09/2017 a las 22:45, charles leggette escribió:
Is this still used in a Tokyo IW app? C++ bldr can’t find it.
#include "IsapiHTTP.hpp"

Try

#include <Web.Win.IsapiHTTP.hpp>
charles leggette

Posts: 45
Registered: 7/17/00
Re: Coverted app from C++ Bldr 2010 to Tokyo 10.2 can't find file
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 24, 2017 5:11 AM   in response to: charles leggette in response to: charles leggette
charles leggette wrote:
Is this still used in a Tokyo IW app? C++ bldr can’t find it.
#include "IsapiHTTP.hpp"

Here’s the code:

#pragma hdrstop
#include "IWCGHttpApp.h"
#include "IWCGVMTUtils.hpp"
#include "IWCGJQControl.hpp"
#include "HTTPApp.hpp"
#include "IsapiHTTP.hpp"
#include "InHTTPWebBrokerBridge.hpp"
#pragma link "IsapiAPP"

//
void __fastcall TCGHTTPApp::AfterConstructionHandler(System::TObject* AInstance, void *AData)
{
if (dynamic_cast<TInHTTPAppRequest*>(AInstance) != NULL || dynamic_cast<TISAPIRequest*>(AInstance) != NULL)
{
SetCurrentThreadWebRequest((TWebRequest*)AInstance);
}
else if (dynamic_cast<TInHTTPAppResponse*>(AInstance) != NULL || dynamic_cast<TISAPIResponse*>(AInstance) != NULL)
{
SetCurrentThreadWebResponse((TWebResponse*)AInstance);
}

}Removed reference to #include...apparently not needed.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02