Demo License not working for Borland C++ Builder 4.0

Questions about GdPicture.NET license agreement.
Post Reply
Boom
Posts: 2
Joined: Fri Sep 05, 2008 2:33 am

Demo License not working for Borland C++ Builder 4.0

Post by Boom » Fri Sep 05, 2008 2:54 am

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

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

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

Post by Loïc » Fri Sep 05, 2008 4:03 pm

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

Boom
Posts: 2
Joined: Fri Sep 05, 2008 2:33 am

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

Post by Boom » Fri Sep 05, 2008 8:13 pm

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

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

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

Post by Loïc » Sat Sep 06, 2008 11:05 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests