Login  
Search All Forums
Dart Home | PowerTCP Web for ActiveX | Custom Development Reply | PowerTCP Web for ActiveX Topics | Forums   
AuthorForum: PowerTCP Web for ActiveX
Topic: DartStrings with Borland c++
kevenbeach
kbeach@beyondpos.com

From: Maitland, FL USA
Posts: 7
Member Since: 02/26/04
posted February 26, 2004 10:42 PM

With BCB 5, I have the Web Tool.
The line:
DartStrings *myDartString = new DartStrings;

Always results in "Undefined Symbol: Dartstrings"
If I inlcude DartSock.h, there are numerous compiler errors within DartSock.h.

How can I define a DartStrings object in BCB?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted February 27, 2004 8:57 AM

I think you need to import the type library for Dartsock.dll first. Then, if I remember correctly, you create it like this:

DartSock::DartStringsPtr ds = new DartStringsPtr();
kevenbeach
kbeach@beyondpos.com

From: Maitland, FL USA
Posts: 7
Member Since: 02/26/04
posted February 28, 2004 10:55 AM

I created type library from the borland tool. Then, added it to the command line for linking, which Ive done with other dlls. The linker says:
Qualifier DartSock is not a class or namespace name.

When I tried to import dartsock.dll directly through the borland IDE, it complains that ther is no license for PowerTCP.

The root of my issue is actually that when I try to change the Http header's Content-Type header for a Post, the linker complains that Post method argument 2 is an invalid type. I cannot make it a DartString, like the type wnats, because I cannot declare a variable to be a dartstring.

Can you provide a code example in Borland (not VB) where I can set a custom Content-Type, then use the Http Post with that custom Content-Type?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted February 28, 2004 11:26 AM

The problem is that everything in BCB is so hard to do it takes 10 times as long to figure it out for us because the only time we use it is when we are forced to through a paid support incident. I don't even have BCB on the computer I am using now.

I just did a search of all of our samples and found what may be something to get you going in the right direction:

Dartsock_tlb::

That may be what has to preface the Dartstrings.

If you can't figure it out download one of our other tools that has BCB samples (like Winsock or Mail).

If you still can't get it, call in and request a custom sample.

kevenbeach
kbeach@beyondpos.com

From: Maitland, FL USA
Posts: 7
Member Since: 02/26/04
posted February 28, 2004 12:05 PM

That doesnt come with the WebTool. Im beginning to suspect the problem is that the WebTool does not include sufficient components to change the headers under borland C++.

Your web site and product descriptions blatently say you support your tools under Borland C++. There was even a press release to that effect. 

I am somewhat aghast that you would expect me to pay you to tell me how to do one of the most basic functions in your Http tool. 

Since this is probably not the right venue to proceed with this issue, how can I request this custom sample?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted February 28, 2004 4:00 PM

My apologies. I didn't mean to imply that it comes with the Web tool. I was simply suggesting that you download the trials of the other tools because they have more complex samples and thought the code may be helpful.

When we say we support BCB, we mean that the controls work with BCB and we provide samples that show how to do the basics (with some of the tools)

As a BCB user, I am sure that you can understand the "ease of use" issues that don't exist in other enviroments.

Please contact support@dart.com or call 315-790-5456 for more info.

Thanks.
Reply | PowerTCP Web for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX