| Dart Home | PowerTCP Web for ActiveX | Custom Development | Reply | PowerTCP Web for ActiveX Topics | Forums |
| Author | Forum: PowerTCP Web for ActiveX Topic: Implementing the web tool in Borland c++ builder |
| User185 Posts: 5 Member Since: 04/04/01 |
posted April 4, 2001 11:50 PM Although i've successfully integrated the web tool into a visual basic application, i'm having trouble implementing the tool in borland c++ builder. I'm defining the post data and the data recieved as a Variant. The post is successful. However, when i have a look at the result data, it says that the Variant is empty. I know that this is not the case. Are there any examples of how to implement the Variant type? Thanks. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted April 5, 2001 9:39 AM Do you initialize the data to a string after setting it's type to VT_BSTR? That's usually what I do in BCB: Variant vData = Variant(""); vData.ChangeType(VT_BSTR); Hope this helps! Tony Priest Dart Tech Support |
| User185 Posts: 5 Member Since: 04/04/01 |
posted April 6, 2001 12:49 PM Hi Tony, Thanks for your help the the BCB thing, it's helped a bit. I have been able to implement the variant type now. However, i'm still having some problems with the request headers and result headers...I get an error message telling me that parameter 2 and 4 of the Post method are invalid. This is because they are defined as dartstring objects. Is it possible to pass a different type than a dartstring?? I'm not sure how to implement the DartString type. I had a look in the header file where it's defined (DartWeb_TLB.h), but this caused problems. Is it possible to get a snippet of working source code that either shows the use of an alternative type to the dartstring or shows how to implement the dartstring in BCB? (Even just the posting part?), Thanks. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted April 6, 2001 1:04 PM It's too complex to get into in the forum. Since most BCB problems involve hours of trial and error to get things working, we are only able to help people who have priority support so that we can talk to them on the phone. Please contact your sales rep ASAP to get a support package (unless you have one already) I could most likely get some sample code out today. Regards, Tony Priest Dart Tech Support |
| User185 Posts: 5 Member Since: 04/04/01 |
posted April 8, 2001 12:15 AM OK, fair enough... Although I'm not actually interested in the headers when i'm posting data. Is it possible to send a NULL value in place of the DartString Object to indicate that i'm not interested in the headers? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted April 8, 2001 12:19 AM Yes. Create a Variant and set it's type to VT_EMPTY. Tony |
| User185 Posts: 5 Member Since: 04/04/01 |
posted April 8, 2001 1:02 AM Thanks Tony, that's got it working now :) |
| Reply | PowerTCP Web for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|