Thanks
I ended up using CreateBitmap with raw array pixel data. As you wrote, LoadImage is better used for loading a bitmap from a file.
CreateBitmap function (Windows)
Type: Posts; User: Tux0r
Thanks
I ended up using CreateBitmap with raw array pixel data. As you wrote, LoadImage is better used for loading a bitmap from a file.
CreateBitmap function (Windows)
Hi I want to blit an image bitmap1.bmp using a code snippet I found online. I've tried with both windows 7 and windows 8.1
As I've understood it, GDI is still supported on these operating systems....
Nooooooooooooooooooooooooooooooooooooooooo
(....)
ooooooooooooooooooooooooooo! :-(
From now on I'm going to dynamically allocate my bools
no this
char *lol=malloc(2);
free(lol);
You um don't actually rotate objects in OpenGL you rotate your projection matrix...
Sorry, but you are going to have to be more specific.
As in your previous thread http://cboard.cprogramming.com/cplusplus-programming/117535-download-files.html the answer would still be wget. If you wan't really basic stuff look into sockets.
8192k warning
Ok that hasn't got anything to do with assert. To solve that problem look at the post above.
I don't see any assert, so this can't be the relevant code.
:eek:
Anyway get an updated header
http://www.opengl.org/registry/api/glxext.h
or
http://www.opengl.org/registry/api/gl3.h
depending on what you are using.
I don't see why to argue about this but oh well. I was just giving OP an advice that is not directly related to the original question (remember to use std::ios::binary when using read and write if...
lol, you say I am wrong then you state what I just said?
I believe it is the view UNIX has, everything is a file, every file is binary (no such thing as text), thus you automatically get the fstream treated as binary.
Ok then you could try say xxd object.o for starters ;)
Yes.
Sadly gcc isn't strict about namespace std on C headers even with the C++ style inclusion. :(
Try it out yourself then.
Sorry but, rofl.
I use GCC everywhere with a good text-editor like gedit, but VS can be OK if you set it up to standard C++, I don't know why you would use it though when there's better alternatives.
The only thing to really remember is to use std::ios:binary when you are doing read and write if you want code that works on Windows
And I take it this is homework?
GUI is not something you write in 5 lines.
Here are some ways to go
GTK+ - About
Products — Qt - A cross-platform application and UI framework
As for what can be written in C++,...