• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 630
  • Last Modified:

CreateFile on network path

This is what I am doing.

1. Open file using CreateFile API call, with parameter so that no other process can access this file and with delete parameter so that when file is closed then it is deleted automatically.

2. Then I read file data.

3. Then I close file handle.

Everything works fine if I use this application for local system, but if I use it for network then both system crashed down.

Please help me why both systems crashed down.
0
lkjhgfdsa
Asked:
lkjhgfdsa
1 Solution
 
jhanceCommented:
lkjhgfdsa,

I'd really like to help here but you have demonstrated the very inconsiderate habit of leaving your questions unresolved.  None of the experts here appreciate having their efforts ignored like this.

I hope you'll spend some time right now and resolve these questions.  Some are quite old.

Experts, please refrain from commenting here until  lkjhgfdsa resolve these questions:

http://www.experts-exchange.com/mfc/Q_20275927.html
http://www.experts-exchange.com/mfc/Q_20275894.html
http://www.experts-exchange.com/mfc/Q_20253728.html
http://www.experts-exchange.com/mfc/Q_20252202.html
http://www.experts-exchange.com/mfc/Q_20219795.html
http://www.experts-exchange.com/mfc/Q_20167772.html
http://www.experts-exchange.com/mfc/Q_20098170.html
http://www.experts-exchange.com/flash/Q_20275873.html
0
 
lkjhgfdsaAuthor Commented:
Many of these questions are still unresolved. I have accepted some of these question's answers. You can check these :-).

Now please help me for this problem.
0
 
jhanceCommented:
In most cases questions remain unresolved because experts have asked you to provide more information but you did not do so.  Please provide any additional information needed.

In other cases the user just doesn't like the answer.  Tough!  Not all problems have simple solutions.

Finally, in a very few cases, there just is nobody who knows anything.  In this case you should post a 0 pt. question in the Community Support and ask a moderator to delete the question for you.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
lkjhgfdsaAuthor Commented:
But what about my this question???
0
 
himmyaCommented:
hi,
   do one thing first create the connection between the remote machine and then try .. i think this will help u ... just see the documentation of following API's

WNetAddConnection2(...)
WNetCancelConnection2(...)

etc...

rgds,
himmya.
0
 
SpideyModCommented:
PAQ'd and points NOT refunded.

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now