Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1055861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:37:45+00:00 2026-05-16T17:37:45+00:00

I need to do file operations in WinCE in a Windows mobile 6 project

  • 0

I need to do file operations in WinCE in a Windows mobile 6 project in visual studio 2008.

For opening a file i did like below.

    HANDLE  hFile = CreateFile(__TEXT("\\1.txt"), GENERIC_READ ,
             FILE_SHARE_READ, NULL, OPEN_EXISTING, 
             FILE_ATTRIBUTE_NORMAL, NULL);

But hFile is coming as 0xffffffff. File open failed.
File exists in d:\

I tried paths like d:\\1.txt , 1.txt
But none of them are working.

Filename path should be relative to which directory ?

Kindly help me.

EDIT: The problem is it is trying to search the path in WinCE emulator.
But my file is present in System harddisk d:\
So i am unable to access files present in my computer when using WinCE.
Now the question changes to, How to copy files in Computer to Emulator ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T17:37:46+00:00Added an answer on May 16, 2026 at 5:37 pm

    My guess is that your file is not there.

    In order to share a folder from your harddisk with the emulator, go to your emulator menu:
    “File -> Configure … -> General -> Shared folder:”. This folder will be seen as “Storage Card”.

    Lets say you map d:\wm, then you put 1.txt in d:\wm, afterwards the file path for ::CreateFile becomes: L”\\storage card\\1.txt”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A lot of files will be stored in the DB and I need file
I just need a file (picture, pdf or other type file for printing) of
I have a fixed-length data file need to persistence into database. I use a
I have a pdf file.I need to find all the hyperlinks available in that
I have a crystal report file I need make a tiny edit in. It
I have a file I need to rename to that of an existing file.
I have a client who is in need of a file based encryption /
I have a ListView containing file names. These file names need to be draggable
I'm going through a lot of files and on each file I need to
I need to attach a file with mailx but at the moment I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.