Thread: Createfile function...I am so lost...

  1. #16
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Originally posted by Unregistered
    Fordy,
    I know that. I am missing something very basic here. That is what I have in param 2 needs to get into my variables. Can I just do a strcpy of what's in param 2 to each one of my variables or something like that?
    Fred
    Yeah....personally I would use the CopyMemory() API...ala

    Code:
    ReadFile(hFile, lpMyBuffer, dwAmountToRead, &dwAmountActuallyRead, NULL);
    
    CopyMemory((PVOID)lpMyDestinationArray, lpMyBuffer, dwAmountActuallyRead);
    Not tested...but the above should be allong the lines you need

  2. #17
    Unregistered
    Guest

    Wink

    Fordy, thank you! I'll see what I can get accomplished with this function.
    Fred

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Post your games here...
    By Hammer in forum Game Programming
    Replies: 132
    Last Post: 02-28-2013, 09:29 AM
  2. Replies: 4
    Last Post: 05-13-2011, 08:28 AM
  3. Beginner Needs help in Dev-C++
    By Korrupt Lawz in forum C++ Programming
    Replies: 20
    Last Post: 09-28-2010, 01:17 AM
  4. Problem with Visual C++ Object-Oriented Programming Book.
    By GameGenie in forum C++ Programming
    Replies: 9
    Last Post: 08-29-2005, 11:21 PM
  5. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM