Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

FERNANDO-BRASIL

ANSI C++

This topic is 6014 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Thank you Null and Void!! But I have a question now!

Does the page you told is about ANSI or C++ Standard Library?

Because it looks very strange that ANSI C++ have only 5 includes:
stdio.h, stdlib.h, string.h, time.h and math.h??


Thank you!

Share this post


Link to post
Share on other sites
Huuumm!! I didn''t know that!!!!!

I posted this topic because I''m searching a function ANSI-compatible for reading a directory in C++ (Like FindFirst in delphi of OpenDir in PHP and Turbo C++).


Do you know a function for VisualC++ 6 ANSI-compatible that do that stuff?

Thank you again!!!

Share this post


Link to post
Share on other sites
no ANSI C function. however, VC++ does have a "_findfirst" function. the leading "_" usually means the function is non ANSI.

anyway, hope this helps.

To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.

Share this post


Link to post
Share on other sites
Thank you jenova!

I''ll use this function!!! I''ve already searched for this and as you said, I only encountered _findfirst (NON-ANSI)..

Thanks for all your reply guys!! I really enjoyed!

Share this post


Link to post
Share on other sites
If you''re going to use non-ANSI functions at least use functions that are part of some standard. The "_findfirst" function (and other such functions) is only going to work in MSVC. If you use the Win32 API then it will at least work in all compilers with the Win32 API (anything that compiles for Windows will). [Self Plug] If you want to look at some example code go to libhfs.sourceforge.net. There''s tons of file system related code in there for both Windows and POSIX platforms.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!