| View previous topic :: View next topic |
| Author |
Message |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Fri Jan 16, 2004 8:21 am Post subject: Bug in vdstcp50.dll |
|
|
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 |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Fri Jan 16, 2004 12:57 pm Post subject: |
|
|
Just add a Dialog but don't issue "Dialog Show" - just a thought _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Jan 16, 2004 1:20 pm Post subject: |
|
|
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 |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Fri Jan 16, 2004 1:32 pm Post subject: |
|
|
| thanks for your answers - i understand what you mean. |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Mon Jan 19, 2004 11:41 am Post subject: |
|
|
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 |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Thu Jan 22, 2004 8:13 am Post subject: |
|
|
| I tested it today, but TCP LISTEN only works when the dialog is shown. before it still says invalid argument |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Thu Jan 22, 2004 8:53 am Post subject: |
|
|
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 |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Thu Jan 22, 2004 9:38 am Post subject: |
|
|
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 |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Mon Jan 26, 2004 1:33 pm Post subject: |
|
|
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 |
|
 |
|