Kevin said:
This group is for discussion of the C++ language, which does not include
the quirks of particular implementations.
Opening a file in C++ is done with the fstream classes from <fstream> or
the fopen function from <cstdio>. The type of the file is not relevant,
though the mode (text or binary) may affect your program's view of the
file.
-Kevin
I dont think the answer given was appropriate for the user. If the OP
is asking a question like this in the C++ group, it shows a likely level
of understanding. The OP is not likely to understand your reply,
especially since the actual goal is probably to display the graphic.
To the OP :
You should try a microsoft based newsgroup, and explain what you want to
do with the gif file. Do you want to load the image, and run
translation operations on it, or do you simply want to display it? Do
you want to do the reading of the file yourself, or do you want a
library to do it? If you want to display it, you need to have an API
(Application Programming Interface) call to open and store the file, a
call to translate it into your target's display requirements, and a call
to display it. These calls may be multiple, and are specific to the
environment you are programming. In a good environment, it should not
be difficult to do. Since this group talks about the C++ language, many
if not most of us do not use Visual Studio.
The C++ group deals with the language itself, and no other outside
libraries. Since C++ has file IO capabilities, you could theoretically
do everything I talked about above using c++, but I doubt you want that,
because you are talking about millions of lines of code... it has likely
been done for you already.
Brian