Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / TCP/IP DLL request ...

Author
Message
Hubdule
22
Years of Service
User Offline
Joined: 3rd Sep 2002
Location: Gundelsheim
Posted: 13th Jan 2003 12:23
Hi to all advanced Delphi / C programmers.

As I'm just experienced with VB/DB|Pro and VB could only create ActiveX Dll's I want to ask if there's someone out there who can create a very simple TCP/IP DLL. There should be only a few functions in it:

Connect(ip$,port)
SendMessage(msg$)
GetMessage(msg$)
CloseConnection

As I have created several tools for all of you to use with DBPro's editor (have a look in the DBPro Forum at the top) I just wanted to ask if someone is kind enough to create such a tool for me (and also for others !!!)

I tried several ideas but as I said I'm not very experienced in creating programs with Delphi/C so hopefully someone could help me out.

One idea I had was that I tried to create such a thing with Delphi: I created a invisible form with a TSocketClient on it and then created a DLL project around it. But it just crashed with a GPF everytime I tried to connect. Hopefully someone could help me.

Thanks
Hubdule
[url]www.colorarts.de[/url]
Hubdule
22
Years of Service
User Offline
Joined: 3rd Sep 2002
Location: Gundelsheim
Posted: 13th Jan 2003 12:24
Oh I forgot to say that I tried Ariels DLL postet in the RGT Forum but it didn't work with TCP/IP receiving

MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 13th Jan 2003 12:44
Have you contacted the author of the module about it ? The only other network commands are those built-in to DBPro.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Hubdule
22
Years of Service
User Offline
Joined: 3rd Sep 2002
Location: Gundelsheim
Posted: 13th Jan 2003 12:49
I've emailed Ariel about the problem but he said that he won't work on it anymore and also don't work with DBPro anymore. So no help from this side.

I know about the built in network commands in DBPro. These are special one's because they use DirectPlay so it's a pain to write a game server for that. So that's why I need just these 4 simple functions only based on TCP/IP protocoll to create a gameserver.

IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 13th Jan 2003 14:24
If you don't mind waiting a while (at least a month) I could have a look at it for you. Or you could use the techniques I've shown earlier with getting the current IP address and extend them to the other tcp/ip functions if you know what you are doing.

Unfortunately, I'm rather busy doing DLL's for other people at the moment - Learning loads of new windows stuff
Hubdule
22
Years of Service
User Offline
Joined: 3rd Sep 2002
Location: Gundelsheim
Posted: 13th Jan 2003 16:51
Ok guys thanks a lot but Monos was faster ... he did the complete DLL with all the functions I wanted THX a lot to him ... now I can get back to work ... *g*

JamDotNET
22
Years of Service
User Offline
Joined: 15th Jan 2003
Location: United States
Posted: 15th Jan 2003 15:15
Hubdule,

I see you got your problem solved but I wanted to mention that a vb6 ActiveX dll is nothing more than a COM component that you can create. In other words, you could have made a new VB6 project as an activeX DLL (just a class to be compiled as dll) and instantiated an MSWinsock object in it, and then used the prebuilt methods for TCP or UDP to do whatever you wanted. It would have been just a wrapper for the winsock class as a DLL that dbp could use.

don't ever discount the power of vb especially VB.NET!

Good Luck
Jam.net

IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 15th Jan 2003 18:04
You can't use VB DLLs directly with DBPro - you would have to write a DLL wrapper that would then instantiate the VB COM object and action the DBPro calls/commands via that COM object.
Hubdule
22
Years of Service
User Offline
Joined: 3rd Sep 2002
Location: Gundelsheim
Posted: 16th Jan 2003 09:31
Monos made a very tiny 10K standard windows DLL doing the stuff I need As DBPro does not support ActiveX DLL's I couldn't do that myself otherwise ...

JamDotNET
22
Years of Service
User Offline
Joined: 15th Jan 2003
Location: United States
Posted: 16th Jan 2003 15:44
Hubdule,

Ahhh. I was not aware that dbp could not use VB dll's. I will shut up until my copy of dbp arrives!

And I had so many plans for some VB dll's - DARN!

As long as I can use vb6 dll's from vb.net all is still well - LOL

Jam.Net

Login to post a reply

Server time is: 2025-05-18 12:26:10
Your offset time is: 2025-05-18 12:26:10