Newby Question: compiling with RAD

I am using Power++ (RAD-Tool) under Win95 and NT and wanted to test one of the
easier sample applications. So I downloaded the Win32 binaries from the IDM Web
site and started.
-------------
The linker failed, because the functions provided by the Microsoft Lib are
starting with _ while my linker wants them to end with _. Since it is a RAD-Tool
there is no option to turn such behavior on or off, instead you have to alter
the code. So I had to edit the necessary h-Files and had to put WDLLIMPORT2 in
front of every function declaration I wanted to use. After that, my compiler
wanted my function without a _. In the next step, I recreated the lib-Files from
the DLLs and then I could create the EXE.

So we come to question 1: maybe a LibWWW-experienced user could have done the
task above much quicker, is there a quicker way and when not, is it a good idea
to provide the declaration with an empty IMPORT-Define, for example:

    #define IMPORT
    extern void IMPORT HTProfile_newClient (const char * AppName, const char *
AppVersion);
instead of
    extern void HTProfile_newClient (const char * AppName, const char *
AppVersion);

With this, I could do a #define IMPORT WDLLIMPORT2 and had not to change all
h-files. I could also change my compiler :-)
--------------
Whe I started the application, I noticed that all DLLs are tied together, so
even if you need only a small part of LibWWW, you have all DLLs in mem. I can go
around that with compiling my own lib. Is it planed to switch to dynamically
loading of the dlls unter Win32?
-------------
Is it possible to perform a ping with LibWWW and if yes, could someone give a
brief description how?
--------------

Thanks in advance and sorry for my english,
CL

Received on Thursday, 11 February 1999 09:25:02 UTC