How can i import a picture in Visual C++ Express Edition,
Because in tutorials it's not obvious how to do that...
Please help!
How can i import a picture in Visual C++ Express Edition,
Because in tutorials it's not obvious how to do that...
Please help!
Can someone please answer???
I want to know how to import a picture in win32...
Well, if you would post your question on the Windows Programming board you MIGHT get an answer.
You could also try to NOT be so vague.
Import a bitmap in the IDE to drag and drop onto a form or import a bitmap at runtime?
Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.
- Mike McShaffry
Well i don't know how it really works.. but i want it to get in the source code.. BEFORE runtime...
sorry that i'm so vague
I've got no idea what you mean, unless you mean you want to load a bitmap while editing a form and drag & drop it on...
Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.
- Mike McShaffry
He means that when he runs his program you get:
http://www.cprogramming.com/cprog.gif <<< this must be an image...
Hi this is a test program from cprogramming.com
Look here is my source code:
I just a picture per monster in my win 32 application..Code:if(action==1) { int lvl, hp, battle, attacke; string mname; lvl = rc; rc = (rand() % (6 - 0 + 1) + 0); int monc; monc = rc; if(monc==1) { lvl=(lvl+10); mname = "dark elf"; attacke = 10; } if(monc==2) { lvl=(lvl+8); mname = "white wolf"; attacke = 13; } if(monc==3) { lvl=(lvl-3); mname = "goblin"; attacke = 7; } if(monc==4) { lvl=(lvl-4); mname = "evil bird"; attacke = 6; } if(monc==0) { lvl=(lvl+1); mname = "thief"; attacke = 3; } if(monc==5) { lvl=(lvl+3); mname = "kremling"; attacke = 7.5; } if(monc==5) { lvl=(lvl-8); mname = "wasp"; attacke = 1; }
Can anyone help?
add the bitmap to the resource file and call LoadBitmap() win32 api function, or maybe call win32 api CreateBitmap(). See MSDN for both functions.