Need simple sample of use FileMap RRS feed

  • Question

  • Perhaps it will be use next functions:
    - CreateFileMappingFromApp
    - MapViewOfFile
    - etc
    Wednesday, May 15, 2013 9:22 AM

All replies

  • Hi,

    I found the sample codes in Desktop. You can try to use this in C++/CX, and replace some APIs which not supported in Windows Store.

    Best regards,

    Jesse Jiang
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, May 16, 2013 3:01 AM
  • Thank you, Jesse!
    But I have own sample for desctop apps. It's clear. It's good worked.
    But I can't understand how refactored my desctop code to WinRT code. This is main problem. So, some simple sample should help me ))) 
    Thursday, May 16, 2013 7:18 AM
  • As Jesse says, it will be essentially the same except that you'll call CreateFileMappingFromApp and MapViewOfFileFromApp instead of CreateFileMapping and MapViewOfFile. If you're having trouble refactoring your desktop code then it is likely a deeper problem then just calling the wrong API.

    If you are having trouble with this I'd recommend posting the code that isn't working for you (ideally in a minimal project) and an explanation of where and how it isn't working.


    Friday, May 17, 2013 12:48 AM