Issue with DIRPORT.C/DIRPORT.H

This is a discussion on Issue with DIRPORT.C/DIRPORT.H within the C Programming forums, part of the General Programming Boards category; Hello all I have an old module that uses _dos_findfirst and _dos_findnext which I need to revive into the Windows ...

  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    14

    Issue with DIRPORT.C/DIRPORT.H

    Hello all
    I have an old module that uses _dos_findfirst and _dos_findnext which I need to revive into the Windows 7 era.
    I downloaded DIRPORT.C and DIRPORT.H and used FIND_FIRST and FIND_NEXT instead. I also use the DOSFileData structure. My main issue is that the filename has to be defined as LPCWSTR (I use VS 2010.) I understand the reason and I also understand that DIPORT is meant for WIN23 and not for Windows 7 64 bits, but I do compile under Win32 project.

    Is there a way around this issue or should I prompt the authors to make a change in the package?
    Thanks
    ZA

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,452
    Cprogramming.com FAQ > Accessing a directory and all the files within it
    Sooner or later, you'll have to rewrite the historic kludge for your new environment.

    > My main issue is that the filename has to be defined as LPCWSTR
    Yeah, along with say
    - dates past Y2K
    - filenames not in 8.3 format
    - filenames with space and other formerly illegal chars
    - files larger than 2Gbytes (or whatever)
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. bandwidth issue / network issue with wireless device communication
    By vlrk in forum Networking/Device Communication
    Replies: 0
    Last Post: 07-05-2010, 11:52 PM
  2. float calculation issue
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 05-26-2008, 04:56 AM
  3. type safe issue
    By George2 in forum C++ Programming
    Replies: 4
    Last Post: 02-12-2008, 08:32 PM
  4. Replies: 8
    Last Post: 01-17-2006, 04:39 PM
  5. my first issue of GDM
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 09-12-2002, 04:02 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21