Click here to Skip to main content
15,894,343 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: File Selection Pin
Lampros Giampouras15-May-05 1:05
Lampros Giampouras15-May-05 1:05 
QuestionWhat does this type defination mean? Pin
sacoskun14-May-05 4:34
sacoskun14-May-05 4:34 
AnswerRe: What does this type defination mean? Pin
peterchen14-May-05 23:14
peterchen14-May-05 23:14 
GeneralRe: What does this type defination mean? Pin
sacoskun15-May-05 4:31
sacoskun15-May-05 4:31 
GeneralMS Word Automation Pin
Imtiaz Murtaza14-May-05 2:36
Imtiaz Murtaza14-May-05 2:36 
GeneralClasses Pin
SuperTank14-May-05 1:49
SuperTank14-May-05 1:49 
GeneralRe: Classes Pin
Ravi Bhavnani14-May-05 4:07
professionalRavi Bhavnani14-May-05 4:07 
GeneralRe: Classes Pin
SuperTank14-May-05 11:55
SuperTank14-May-05 11:55 
Is this what u want?

Enemy.h
class Enemy: cSurface<br />
{<br />
public:<br />
	Enemy(LPDIRECTDRAWSURFACE7 lpDest, HINSTANCE hInst, LPDIRECTDRAW7 hDD,<br />
		int destX, int destY, int nWidth, int nHeight, <br />
		COLORREF dwColorKey = -1);<br />
	Enemy();<br />
	~Enemy();<br />
	int PrintDestX(){return DestX;}<br />
	int PrintDestY(){return DestY;}<br />
...<br />
private:<br />
	static int Width, Height, DestX, DestY;<br />
}<br />



Enemy.cpp
int Enemy::Width;<br />
int Enemy::Height;<br />
int Enemy::DestX;<br />
int Enemy::DestY;<br />
<br />
Enemy::Enemy(LPDIRECTDRAWSURFACE7 lpDest, HINSTANCE hInst, LPDIRECTDRAW7 hDD,<br />
			 int destX, int destY, int nWidth, int nHeight,<br />
			 COLORREF dwColorKey)<br />
{<br />
	Alive = true;<br />
<br />
	hInstance	 = hInst;<br />
	surface		 = lpDest;<br />
	lpDD		 = hDD;<br />
	Width		 = nWidth;<br />
	Height		 = nHeight;<br />
	DestX		 = destX;<br />
	DestY		 = destY;<br />
<br />
	this->Create(hDD, nWidth, nHeight, RGB(255, 0, 255));<br />
	this->LoadBitmap(hInst, IDB_ENEMY, 0, 0, 48, 48);<br />
}

GeneralRe: Classes Pin
Bob Stanneveld15-May-05 3:00
Bob Stanneveld15-May-05 3:00 
GeneralRe: Classes Pin
David Crow15-May-05 16:49
David Crow15-May-05 16:49 
GeneralConnect to server &amp; read html page Pin
RamL14-May-05 0:48
RamL14-May-05 0:48 
GeneralRe: Connect to server &amp; read html page Pin
ThatsAlok14-May-05 0:54
ThatsAlok14-May-05 0:54 
GeneralRe: Connect to server &amp; read html page Pin
Ravi Bhavnani14-May-05 4:09
professionalRavi Bhavnani14-May-05 4:09 
GeneralRe: Connect to server &amp; read html page Pin
RamL15-May-05 19:50
RamL15-May-05 19:50 
GeneralAdding User Credentials Pin
ernst.maurer13-May-05 23:40
ernst.maurer13-May-05 23:40 
GeneralMFC Sockets Pin
cberam13-May-05 23:39
cberam13-May-05 23:39 
GeneralRe: MFC Sockets Pin
ThatsAlok14-May-05 0:00
ThatsAlok14-May-05 0:00 
QuestionQ: How to detect and remove unused resource strings? Pin
rbid13-May-05 22:46
rbid13-May-05 22:46 
AnswerRe: Q: How to detect and remove unused resource strings? Pin
Ravi Bhavnani14-May-05 4:12
professionalRavi Bhavnani14-May-05 4:12 
GeneralRe: Q: How to detect and remove unused resource strings? Pin
rbid15-May-05 8:00
rbid15-May-05 8:00 
GeneralRe: Q: How to detect and remove unused resource strings? Pin
Ravi Bhavnani15-May-05 8:03
professionalRavi Bhavnani15-May-05 8:03 
GeneralHelp !! Pin
Sreekanth Muralidharan13-May-05 21:58
Sreekanth Muralidharan13-May-05 21:58 
GeneralRe: Help !! Pin
ThatsAlok13-May-05 23:38
ThatsAlok13-May-05 23:38 
GeneralRe: Help !! Pin
Anonymous15-May-05 17:10
Anonymous15-May-05 17:10 
GeneralRe: Help !! Pin
Sreekanth Muralidharan15-May-05 17:12
Sreekanth Muralidharan15-May-05 17:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.