Link to home
Start Free TrialLog in
Avatar of mikel022697
mikel022697

asked on

Using Win95 dialer with 16bit program

I have written a winsock program for Win3.1. The program starts a dialer program (for example Trumpet) when necessary  and connects to the provider. When I try the same under Win95 with the standard Win95 dialer, I fail. The dialer is not started. Probably this does not work, because the winsock.dll of the dialer is a 32 bit dll. Is there any way to manage this? If not, can the dialer be started by hand without connecting to the provider and it does connect if it gets a request by my program?
Thanks!
Avatar of Wayne Leister
Wayne Leister
Flag of United States of America image

Have you tried bringing up the dialer by hand?
Its under My Computer->dialup networking
Connect to your providor then try the program.
Avatar of mikel022697
mikel022697

ASKER

If I start the dialer and connect by hand before I start my program everything works fine. But this should work automatically because a feature of my program is connecting to the Internet at a specified time.
If people have internet explorer installed, it will bring up the dialer.  This is a feature of IE, it brings up the internet whenever a program needs it.
I have seen other programs bring up the dialer without the IE, but they were all 32bit programs.  It may be possible to do it in a 16 bit program, but I don't know how.
By default, Windows 95 doesn't call the dialer automatically unless you have MS Plus! installed. If you don't have Plus!, there is a registry patch (Autodial registry patch) available at www.tucows.com in the "Modem Dialers and Utilities for Window 95" section. The problem is, this only works with 32-bit apps and since your program was written for Win 3.1, it doesn't qualify and will not work with this. Sorry, I can't help but I hope the information serves you well. Good luck.
What's about the other possibility: Starting dialer by hand, but don't connect to the provider. Starting my program. If the program sends a request to the dialer, the dialer connects to the provider. I did test this but didn't work either.
Any hints?
ASKER CERTIFIED SOLUTION
Avatar of yoram
yoram

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Did find only one winsock.dll and this is the dll which comes with Win95. What do you mean by 'it worked for me many times'? Does this mean that you used a 16bit program which could start automatically the dialer?
I'm still not completely clear on what you're looking for. As I said before, Autodial only works for 32-bit apps and I know of no dialer that can be automatically called by 16-bit apps. Also, as a side note to that, "Autodial" doesn't really autodial at all. It just brings the dialer window to the forefront. There's a freeware app called Dunce that can be downloaded from the same site as the registry patch that will then take the dialer and start dialing without you having to touch anything. It will also redial for you should you get a busy signal or get disconnected for any reason. If this is a winsock program you've "written", why not just issue a "call" to the Windows dialer and have Dunce autodial for you?