PB DLL 5.0 and $INCLUDE 
Author Message
 PB DLL 5.0 and $INCLUDE

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



Mon, 22 Sep 2003 06:30:37 GMT  
 PB DLL 5.0 and $INCLUDE
PB/DLL cannot read long file names; is it possible you are trying ..

$INCLUDE "C:\Program Development\PBDLL\WIN32API.INC

Other than lack of lfn support, I have had no problems with PB/DLL 5.0 or
6.0 and $INCLUDE

I've never had a case-sensitivity problem, either.

I use the "options, paths" in the IDE and do not qualify my $INCLUDE file
names.

--
Michael Mattias
Tal Systems
Racine WI USA


Quote:
> Greetings All,

>  The first one: is there something about the $INCLUDE that's
> different for v5?
> me.  Has anybody else had any issues with this in v5?

> TIA,

> Paul



Mon, 22 Sep 2003 22:47:32 GMT  
 PB DLL 5.0 and $INCLUDE
It can not be case sensitive, the compiler is 16bit.


Quote:
>PB/DLL cannot read long file names; is it possible you are trying ..

>$INCLUDE "C:\Program Development\PBDLL\WIN32API.INC

>Other than lack of lfn support, I have had no problems with PB/DLL 5.0 or
>6.0 and $INCLUDE

>I've never had a case-sensitivity problem, either.

>I use the "options, paths" in the IDE and do not qualify my $INCLUDE file
>names.

>--
>Michael Mattias
>Tal Systems
>Racine WI USA



>> Greetings All,

>>  The first one: is there something about the $INCLUDE that's
>> different for v5?
>> me.  Has anybody else had any issues with this in v5?

>> TIA,

>> Paul



Tue, 23 Sep 2003 01:21:45 GMT  
 PB DLL 5.0 and $INCLUDE
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



Tue, 23 Sep 2003 00:55:17 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. OpenGL in PB/DLL 5.0

2. MX Lookup with PB/CC or PB/DLL

3. TCPADDR for PB/DLL & PB/CC

4. Info on new PB/CC and PB/DLL

5. Announcing the JazzAge COM Wizard for PB/DLL and PB/CC

6. animated characters, speech input/output in PB/DLL and PB/CC

7. email enable PB/DLL-PB/CC using Outlook

8. SQL, ADO/OLE-DB programming in PB/DLL and PB/CC

9. VB 5.0 calling a DVF 5.0 DLL

10. help file to PB/DLL32 5.0

11. ODBC include for PB/CC

12. LF95 5.0 released: includes quad-precision support and Fujitsu Visual Analyzer

 

 
Powered by phpBB® Forum Software