From: <dan...@ya...> - 2001-09-23 23:56:45
|
--- Theepa Somasundaram <th...@he...> wrote: > Hi, > > I am trying to use InternetDial to connect to an ISP from Windows 98. > > > I downloaded MINGW as precompiled binaries, but I checked the source > later and found that the wininet.def file contains a link to > InernetDial. I therefore included the declaration of this function > within my code as > #ifdef __cplusplus extern "C" #endif { > DWORD WINAPI InternetDial( > HWND hwndParent, // Handle of parent window > LPTSTR lpszConnectoid, // dial-up connection > DWORD dwFlags, // Unsigned long containing flags > LPDWORD lpdwConnection, // ID number of connection > DWORD dwReserved //=0 > ); > #ifdef __cplusplus } #endif Better yet: This function is declared in current release wininet.h. > During linking I get the following error: > > main.o: In function `WinMain': > //D/Users/Theepa/C++/WebHost/main.cpp:39: undefined reference to > `InternetDial__FP6HWND__PcUlPUlUl@20' > > My longterm plan is to write a program to connect to an ISP, ftp > files, hang-up, connect to another ISP, ftp files, hang-up, etc. > InternetAutoDial works as an alternative, but I can't change the name > of the ISP from the program. > > If anybody has some explanations/comments, it would be much > appreciated. > Look at the RAS API. It is much more flexible than the InternetDialup interface. > Regards, Theepa > > > http://travel.yahoo.com.au - Yahoo! Travel - Got Itchy feet? Get inspired! |