The COM object has been installed and registered.
Regards,
James
EPSTIPNet::_ChargeNowPtr ptr("EPSTIPNet.gutil.Forms.ChargeNow");
ptr->init();
ptr->put_PM(EPSTIPNet::PAYMENTMODE_PayNow);
ptr->put_CM(EPSTIPNet::CHARGEMODE_Sale);
ptr->Show();EPSTIPNet::_ChargeNowPtr ptr("EPSTIPNet.gutil.Forms.ChargeNow");
ptr->init();
ptr->put_PM(EPSTIPNet::PAYMENTMODE_PayNow);
ptr->put_CM(EPSTIPNet::CHARGEMODE_Sale);
ptr->Show();extern "C" {
#include <hbapi.h>
};extern "C" {
#include <hbapi.h>
};
#include ...C++ header files...
HB_FUNC( TEST )
{
EPSTIPNet::_ChargeNowPtr ptr("EPSTIPNet.gutil.Forms.ChargeNow");
ptr->init();
ptr->put_PM(EPSTIPNet::PAYMENTMODE_PayNow);
ptr->put_CM(EPSTIPNet::CHARGEMODE_Sale);
ptr->Show();
}Antonio,
I am not clear on what you are saying. Should your example be compiled as a PRG by FWH, or as a C file by Borland?
When I try to compile it as a PRG, I get a "syntax error at 'EXTERN.'"
How do I know which header files to include?
Regards,
James
oCharge:= CreateObject("EPSTIPNet.gutil.Forms.ChargeNow")
oCharge:init() ptr->put_PM(EPSTIPNet::PAYMENTMODE_PayNow);
ptr->put_CM(EPSTIPNet::CHARGEMODE_Sale);
ptr->Show();oCharge:put_PM(PAYMENTMODE_PayNow)
oCharge:put_CM(CHARGEMODE_Sale)
oCharge:Show()James,
good news ![]()
if you are able to manage from PRG level, as an OleAuto object, then it is much easier
Enrico,
Would manifest constants only apply when used with FWH, or would they be needed with VB.NET, C#, and/or C++ too?
I cannot find any include files in the SDK files, nor is there any mention of them in the docs.
James
PAYMENTMODE_PayNow and CHARGEMODE_Sale are not manifest constants. They are probably enum data values inside EPSTIPNet class.
EMG
Enrico,
>PAYMENTMODE_PayNow and CHARGEMODE_Sale are not manifest >constants. They are probably enum data values inside EPSTIPNet class.
OK, but I don't know what that means. How do I solve the problem?
As I guess you can tell, I know nothing about programming in C++.
James
You can't invent their values just as you can't invent manifest constants values. Sorry, I don't know where to find them. Probably they come directly from the .NET platform after the installation of the class module.
EMG
Enrico,
Is the situation that other languages don't need these values, but with FWH we do? If other languages do need them, then how do they get them?
Is there some tool to allow us to get those values?
James
James Bott wrote:Enrico,
Is the situation that other languages don't need these values, but with FWH we do?
James Bott wrote:If other languages do need them, then how do they get them?
James Bott wrote:Is there some tool to allow us to get those values?
oCharge:= CreateObject("EPSTIPNet.gutil.Forms.ChargeNow")
oCharge:init()
//oCharge:put_PM(PAYMENTMODE_PayNow)
//oCharge:put_CM(CHARGEMODE_Sale)
oCharge:Show()James,
>
PAYMENTMODE_PayNow
CHARGEMODE_Sale
>
Make a search for them everywhere in the code and header files. They have to be there, somewhere.
They seem related to that specific COM object, not with .NET