6 Replies - 4932 Views - Last Post: 08 September 2009 - 08:29 AM Rate Topic: -----

#1 nathanpc  Icon User is offline

  • SCIENCE!
  • member icon

Reputation: 112
  • View blog
  • Posts: 1,171
  • Joined: 31-July 09

Using DeleteFile Function

Post icon  Posted 08 September 2009 - 05:50 AM

Hello,
Because of my new and the most of the future projects, i'm needing to learn C and use Windows, but because of this, i don't know how to use the Windows API, then i'm asking for an example of using DeleteFile function.

Thanks,
Nathan Paulino Campos
Is This A Good Question/Topic? 0
  • +

Replies To: Using DeleteFile Function

#2 horace  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 291
  • View blog
  • Posts: 1,900
  • Joined: 25-October 06

Re: Using DeleteFile Function

Posted 08 September 2009 - 05:56 AM

View Postnathanpc, on 8 Sep, 2009 - 11:50 AM, said:

Hello,
Because of my new and the most of the future projects, i'm needing to learn C and use Windows, but because of this, i don't know how to use the Windows API, then i'm asking for an example of using DeleteFile function.

Thanks,
Nathan Paulino Campos

have a look at the MSDN documentation and example on
http://msdn.microsof...h43(VS.71).aspx
Was This Post Helpful? 0
  • +
  • -

#3 nathanpc  Icon User is offline

  • SCIENCE!
  • member icon

Reputation: 112
  • View blog
  • Posts: 1,171
  • Joined: 31-July 09

Re: Using DeleteFile Function

Posted 08 September 2009 - 06:21 AM

I see that and this article: http://msdn.microsof...915(VS.85).aspx, but i didn't understand it and how to use it.

Thanks!
Was This Post Helpful? 0
  • +
  • -

#4 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6066
  • View blog
  • Posts: 23,526
  • Joined: 23-August 08

Re: Using DeleteFile Function

Posted 08 September 2009 - 06:44 AM

You pass in a string containing the full path to the file to be deleted. What's not to understand?? :blink:
Was This Post Helpful? 0
  • +
  • -

#5 nathanpc  Icon User is offline

  • SCIENCE!
  • member icon

Reputation: 112
  • View blog
  • Posts: 1,171
  • Joined: 31-July 09

Re: Using DeleteFile Function

Posted 08 September 2009 - 06:52 AM

Then the lpFileName is the all path to the file that i want to delete?
Was This Post Helpful? 0
  • +
  • -

#6 nathanpc  Icon User is offline

  • SCIENCE!
  • member icon

Reputation: 112
  • View blog
  • Posts: 1,171
  • Joined: 31-July 09

Re: Using DeleteFile Function

Posted 08 September 2009 - 08:09 AM

As i see the answer is yes, but how i can use it, where to put it?

Thanks!
Was This Post Helpful? 0
  • +
  • -

#7 nathanpc  Icon User is offline

  • SCIENCE!
  • member icon

Reputation: 112
  • View blog
  • Posts: 1,171
  • Joined: 31-July 09

Re: Using DeleteFile Function

Posted 08 September 2009 - 08:29 AM

Thanks, now i get it!

Thanks!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1