forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Bug in vdstcp50.dll

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Fri Jan 16, 2004 8:21 am    Post subject: Bug in vdstcp50.dll Reply with quote

Hi,

vdstcp50 does not work when no dialog is showing. I try to make a tcp server listening and get always "invalid argument" on TCP LISTEN when no dialog is showing.

Bye, Fabian
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Fri Jan 16, 2004 12:57 pm    Post subject: Reply with quote

Just add a Dialog but don't issue "Dialog Show" - just a thought
_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Jan 16, 2004 1:20 pm    Post subject: Reply with quote

Just to illustrate what CodeScript was saying, you could make a fake
dialog as follows:

Code:
dialog create,fake
rem add vdstcp50 code here

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Fri Jan 16, 2004 1:32 pm    Post subject: Reply with quote

thanks for your answers - i understand what you mean.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Mon Jan 19, 2004 11:41 am    Post subject: Reply with quote

You have to do this because Winsock uses messages sent to a window to inform of certain events, such as a client connecting to a listening socket, and so you have to create a window for this. As has been said, you don't have to actually show it, which means that you can even create a server that runs as an NT service (which isn't allowed to show a dialog.)
_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Thu Jan 22, 2004 8:13 am    Post subject: Reply with quote

I tested it today, but TCP LISTEN only works when the dialog is shown. before it still says invalid argument
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Thu Jan 22, 2004 8:53 am    Post subject: Reply with quote

If the DLL insists on having a dialog, then perhaps give it one but make it non-visible:

Code:
DIALOG CREATE,Hidden,0,0,0,0


Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Thu Jan 22, 2004 9:38 am    Post subject: Reply with quote

Yes. I know it works, because the original POP3 and SMTP servers in Tech-Pro Mail Server were written in VDS, and they could run as a service under XP, where it is not possible to show the dialog. I seem to recall I had to code a workaround into the runtime to make this possible. Now, it may be (I haven't tested it) that it doesn't work like that in the IDE. In my servers, I added a command line paramater I could use to cause the dialog to be shown. (It's useful for testing, because you can display status messages on it.) But the compiled version certainly works without showing the dialog.
_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu Jan 22, 2004 10:58 am    Post subject: Reply with quote

Yes, but you are able to modify the runtime if you need a special function... Smile Or does it have to work with the 'normal' runtime dll as well?
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Mon Jan 26, 2004 1:33 pm    Post subject: Reply with quote

Hi,

I have the same problem when showing two dialogs.
I tried to work with dialog select,0 but it still says invalid argument.

Bye, Fabian
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group