- Comms Problem
- Posted by Chris B on December 8th, 2003
To all
I'm trying to write an application in VB that uses a modem to dial to
a server and submit data via FTP as an encrypted file. It also
downloads client information.
My first solution to this problem worked reasonably well by utilising
RASAPI.dll and WININET.DLL to make the connection to the server and
connection to the internet and perform FTP respectively. My problem is
now that none of this works on Win95! It would appear I need to
perform all this at a lower level. I think this may mean using
Winsock.dll, but I haven't looked into this yet. Unfortunately
installing the latest version of IE would not be an option, even if
this did fix the problem, as for security reasons we're not allowed to
install this at certain locations.
Prior to using RASAPI I was able to control the modem to dial a
number, pass the username and password to the server and get a
connection. The server then sits and waits for a PPP connection (I
believe??) but that's where I got stuck. No idea what comes next to
create a PPP connection.
Anybody that has any pointers or ideas please let me know.
I'm connecting to a standard ISP as if I had set it up via a dial-up
connection - if that helps. Also the clients are all Windows - from 95
(This is the problem one) to XP.
Thanks in advance.
Chris B
- Posted by Corey Murtagh on December 9th, 2003
Chris B wrote:
Quite possibly the problem is in the way the RAS API deals with
versioning. A lot of the structures have changed size from version to
version, so depending on which version of the RAS API you're using you
might have to feed slightly different data. The up-side is that if you
can do it on Win95, the same code /should/ work unmodified on anything else.
Well, that's the theory anyway. In practice it's seldom that simple.
Still, look into the differences and see if there's anything of use there.
It's tempting to say "don't try to support Win95"... but if you have a
need, you have a need *shrug*
--
Corey Murtagh
The Electric Monk
"Quidquid latine dictum sit, altum viditur!"
- Posted by Joseph Dionne on December 9th, 2003
I believe Windows 95 has an add on product called "Dial Up Networking"
(DUN) that might be helpful.
However, just know that Windows 95 will shortly be dropped as a
maintained product line by M$.
Corey Murtagh wrote:
- Posted by Programmer Dude on December 9th, 2003
Chris B wrote:
Check out MSDN for InternetOpen() and related functions.
They are Win32 WinInet functions and should be available in W95.
For sample use, see my FTP class at:
http://www.sonnack.com/Chris/Softwar...b/cjFTP_h.html
http://www.sonnack.com/Chris/Softwar...cjFTP_cpp.html
--
|_ CJSonnack <Chris@Sonnack.com> _____________| How's my programming? |
|_ http://www.Sonnack.com/ ___________________| Call: 1-800-DEV-NULL |
|_____________________________________________|___ ____________________|
- Posted by Chris B on December 10th, 2003
yoshy@globalnet.co.uk (Chris B) wrote in message news:<6c0b0132.0312080434.1fa91dc7@posting.google. com>...
Thanks to all those that answered my initial query. I propbably didn't
explain myself too well, so I'll have another go.
All of the functionality I need working is working in OS versions
Windows 98 upwards by using the RASAPI32.dll as described in MSDN.
I've also used WININET.dll as described in MSDN to make internet
connection for FTPing etc. My problem is that I have to support
Win95!? I don't want to, but I have to (Not only that, but some
clients are even running at 640*480!) Anyway. I have since, despite
this not being mentioned in MSDN!?, upgraded the Win95 test machine
with IE4.0 and Dun1.4, this has fixed the problem, it all now works as
I hoped. But some of the clients won't allow us to install IE?!?!?!
So, my previous query was, after making an initial dial-up using
MSComm and passing the Username and password. I am validated by the
server; it then sends some more data to me that seems to be
encrypted?? I don't know as I can't read it. I'm assuming it wants me
to connect via PPP, by sending some form of PPP validation (CHAP or
something like that???), again I don't know. That is my question. What
do I do next after making an initial dial-up connection via MSComm?
Any help would be greatly appreciated.
Chris B
- Posted by Joseph Dionne on December 10th, 2003
Check out
http://support.microsoft.com/default...NoWebContent=1
Windows 95 is going to be your nightmare. Our company has stopped
support for that platform because it is such a step child.
Chris B wrote:
- Posted by Chris B on December 12th, 2003
Programmer Dude <Chris@Sonnack.com> wrote in message news:<3FD635B0.202E2A24@Sonnack.com>...
Wininet functions are not supported in Win95. To get FTP funtionality
in Win95 I had to use Winsock. That is until I installed IE4 on to the
Win95 test machine, then it all worked. Funny how MSDN seems to make
no mention of this!! Thanks Microsoft!
- Posted by Programmer Dude on December 15th, 2003
Chris B wrote:
Installing the latest MDAC would probably have done the same thing.
--
|_ CJSonnack <Chris@Sonnack.com> _____________| How's my programming? |
|_ http://www.Sonnack.com/ ___________________| Call: 1-800-DEV-NULL |
|_____________________________________________|___ ____________________|