4 Replies - 414 Views - Last Post: 11 March 2013 - 05:18 AM Rate Topic: -----

#1 codingweek  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 05-March 13

Where can i find "WinBase.h".

Posted 10 March 2013 - 11:07 PM

I am using turbo c++ 4.5, and intend to read and write file using win32 API. I've applied CreateFile(), but it shows an error:"Call to undefined function".I think i need Winbase.h file.
Is This A Good Question/Topic? 0
  • +

Replies To: Where can i find "WinBase.h".

#2 Limecore  Icon User is offline

  • D.I.C Head

Reputation: 18
  • View blog
  • Posts: 91
  • Joined: 28-November 12

Re: Where can i find "WinBase.h".

Posted 10 March 2013 - 11:10 PM

At the top of the code write
#define Winbase.h
The compiler should be able to find it for you
Was This Post Helpful? 0
  • +
  • -

#3 codingweek  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 05-March 13

Re: Where can i find "WinBase.h".

Posted 10 March 2013 - 11:36 PM

It shows.
"Error NEW.CPP 6: Define directive needs an identifier"
however, i think its time to change my compiler :(!):
Was This Post Helpful? 0
  • +
  • -

#4 IngeniousHax  Icon User is offline

  • |>|20-514<|{3|2

Reputation: 78
  • View blog
  • Posts: 1,358
  • Joined: 28-March 09

Re: Where can i find "WinBase.h".

Posted 11 March 2013 - 12:18 AM

Why not try a more up to date IDE? if on a *nix machine, use G++, generally preinstalled, and if on windows, try something more modern like Eclipse, Visual Studio or Code::Blocks

Or: winbase.h

This post has been edited by IngeniousHax: 11 March 2013 - 12:19 AM

Was This Post Helpful? 0
  • +
  • -

#5 Skydiver  Icon User is online

  • Code herder
  • member icon

Reputation: 3650
  • View blog
  • Posts: 11,419
  • Joined: 05-May 12

Re: Where can i find "WinBase.h".

Posted 11 March 2013 - 05:18 AM

You shouldn't include winbase.h directly. Include Windows.h which will include winbase.h indirectly.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1