Long File Name problems in 16-bit VB4 on Win95 
Author Message
 Long File Name problems in 16-bit VB4 on Win95

Long filenames are unavailable in 16 bit windows, or from 16 bit VB under
Win95.  You'll have to recompile using VB4-32 or VB5.

--
Randy Birch, MVP Visual Basic

Moderator, Fidonet Visual Basic Programmer's Conference
VBnet, The Visual Basic Developers Resource Centre
http://www.*-*-*.com/



: We have an app developed in VB4 for 16-bit on WIndows 95 that is being
: used under Win95. Now the user wants to read long file name graphics
: from the Application. The problems I am seeing are when I use the
: FileLen function to check if file exists, it returns error if file name
: passed is longer than 8 characters. Also, the third party control has
: problem opening this file.
:
: So, I want to convert the files longer than 8 characters to the DOS name
: (with tilda). When I use the Win API call for 32-bit (kernel 32), I get
: invalid DLL error.
:
: I would like to know how I can make VB FileLen  function to work
: properly in my App and also how to use the Win32 API call in this
: version.
:
: I should appreciate any feedback on this.
:
: Krishna
:
:



Fri, 28 Jan 2000 03:00:00 GMT  
 Long File Name problems in 16-bit VB4 on Win95

We have an app developed in VB4 for 16-bit on WIndows 95 that is being
used under Win95. Now the user wants to read long file name graphics
from the Application. The problems I am seeing are when I use the
FileLen function to check if file exists, it returns error if file name
passed is longer than 8 characters. Also, the third party control has
problem opening this file.

So, I want to convert the files longer than 8 characters to the DOS name
(with tilda). When I use the Win API call for 32-bit (kernel 32), I get
invalid DLL error.

I would like to know how I can make VB FileLen  function to work
properly in my App and also how to use the Win32 API call in this
version.

I should appreciate any feedback on this.

Krishna



Fri, 28 Jan 2000 03:00:00 GMT  
 Long File Name problems in 16-bit VB4 on Win95

If you don't mind a little extra overhead, you can write the conversion
functions in a 32-bit OLE EXE server and create an instance of the class in
your 16-bit application.  The 32-bit server should have functions to
convert filenames.  However, this way is wrought with slow performance, as
not only are process boundaries crossed, but OLE compatibility systems,
too.

- James



Quote:
> Long filenames are unavailable in 16 bit windows, or from 16 bit VB under
> Win95.  You'll have to recompile using VB4-32 or VB5.

> --
> Randy Birch, MVP Visual Basic

> Moderator, Fidonet Visual Basic Programmer's Conference
> VBnet, The Visual Basic Developers Resource Centre
> http://home.sprynet.com/sprynet/rasanen/



> : We have an app developed in VB4 for 16-bit on WIndows 95 that is being
> : used under Win95. Now the user wants to read long file name graphics
> : from the Application. The problems I am seeing are when I use the
> : FileLen function to check if file exists, it returns error if file name
> : passed is longer than 8 characters. Also, the third party control has
> : problem opening this file.
> :
> : So, I want to convert the files longer than 8 characters to the DOS
name
> : (with tilda). When I use the Win API call for 32-bit (kernel 32), I get
> : invalid DLL error.
> :
> : I would like to know how I can make VB FileLen  function to work
> : properly in my App and also how to use the Win32 API call in this
> : version.
> :
> : I should appreciate any feedback on this.
> :
> : Krishna
> :
> :



Tue, 01 Feb 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Long file name Save dialog in VB4 16-bit

2. Long file name Save dialog in VB4 16-bit

3. copy long files name using 16 bit

4. Long Path Names and 16 Bit

5. HELP: VB4-16 bit to VB5-32 bit problem

6. Calling 16 bit DLL from VB4 16 bit in Win 95

7. VB4 using mciSendString with long file names in WIN95

8. Convert Long Filenames to Short Filenames in VB4 16-Bit

9. Converting long filenames to short filenames in VB4.0 16-bit

10. File access problem in 16-bit VB4.0

11. VB4 - 16 Bit and Access for Win95

12. Access for Win95 & VB4 16 bit

 

 
Powered by phpBB® Forum Software