Hi Paul,
The capitalization of the filename is irrelevent, so it is much more
likely to be a path problem.
First, make sure you are using 8.3 file names. If you installed
PB/DLL into a Long File Name (LFN) folder, best to uninstall and
reinstall into an 8.3 named folder. (to be clear, the apps created
with PB/DLL 5.0 or 6.0 can use long file names, but the compiler
itself cannot.
Next, the problem is that the compiler cannot actually locate the
file, since it is not in the current directory.
In most instances, copying the WIN32API.INC file into the current
directory is sufficient, however, using the IDE's OPTIONS dialog you
can add the folder of the INC file, so PowerBASIC will be able to
locate the file. Typically, this folder is in "C:\PBDLL50\WINAPI"
There is one other possible problem: if the INC file is accessable,
but it is locked, the compiler will not be able to read it. This can
happen if you have the file open with another app, such as a
file-viewer like QuickView, etc.
Finally, if you are using the compiler in command-line mode, you may
need to use the /I<path> command-line option to tell the compiler
where else to look for source files.
I hope this helps!
Quote:
>Greetings All,
>I acquired PB DLL 5.0 sometime back when I thought I was fixing to have a
>development need for it. That need didn't develop, so it's sat on a shelf
>for some time. I now have the need, and I'm trying to develop some small
>sample DLLs (actually, re-compiling my old v1 code to v5) and I'm having
>some issues. The first one: is there something about the $INCLUDE that's
>different for v5? I.E. does the file spec have to match exactly on the case
>of the letters? It hasn't had to do that in any other product I've used
>from PowerBASIC, but I'm having troubles with $INCLUDE and didn't know if it
>was me, or something else. The file I'm trying to include is the
>WIN32API.INC, and I traditionally specify the entire path in the code. But
>the compiler is coming back stating that it can't find the include module.
>I would not classify myself as a newbie at all. But this is still puzzling
>me. Has anybody else had any issues with this in v5?
>TIA,
>Paul
Lance
PowerBASIC Support
-------------------------------------------------------------------------
PowerBASIC, Inc. | 800-780-7707 Sales | "We put the Power in Basic!"
316 Mid Valley Center | 831-659-8000 Voice | http://www.powerbasic.com