Page 1 of 1

Demo License not working for Borland C++ Builder 4.0

Posted: Fri Sep 05, 2008 2:54 am
by Boom
Can anyone tell me why the demo liscense for GDTwain will not work for Borland C++ builder 4.0? I ran the sample code for VB and it worked fine for it. I tried using the function mbstowcs to convert a string of characters to a wide string but still not working?????

Thanks,
Boom

Re: Demo License not working for Borland C++ Builder 4.0

Posted: Fri Sep 05, 2008 4:03 pm
by Loïc
Hi,

The SetLicenseNumber() method are waiting for an unicode string parameter.
Check you are passing the string key into Unicode format.

IE:

Code: Select all

this->GdViewer1->SetLicenseNumber( (wchar_t *) "LicenseKey");
Best regards,

Loïc Carrère

Re: Demo License not working for Borland C++ Builder 4.0

Posted: Fri Sep 05, 2008 8:13 pm
by Boom
Hi,

I tried the line of code you recommended but when executing it an exception was raised "External exception C0000029". Any ideas why this exception would be raised?

Thanks,
Boom

Re: Demo License not working for Borland C++ Builder 4.0

Posted: Sat Sep 06, 2008 11:05 am
by Loïc
Hi Boom,

This this instead. It is working in BC++ 5, I suggest it will be ok for BC++ 4 too...

Code: Select all

WideString LicenseKey = "YourLicenseKEY";
this->GdViewer1->SetLicenseNumber(LicenseKey);

Best regards,

Loïc Carrère