Thread: Issue with DIRPORT.C/DIRPORT.H

  1. #1
    Registered User
    Join Date
    Jul 2010

    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?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    35,959 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.

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, 09:32 PM
  4. Replies: 8
    Last Post: 01-17-2006, 05:39 PM
  5. my first issue of GDM
    By DavidP in forum A Brief History of
    Replies: 0
    Last Post: 09-12-2002, 04:02 PM