Could use please include in your request the specific problem(s) you are having?
Type: Posts; User: Traveller
Could use please include in your request the specific problem(s) you are having?
Or to put it another way, namespaces are just another way to define scope. It really is as simple as that.
As for my comment above, in the header file for iostream (the one provided with MS...
thx for the reply but unfortunately in reading up I discovered this:
The NetUserEnum function does not return all system users. It returns only those users who have been added with a call to the...
Hmmm.....I thought the std namespace was already defined in the header file.
I am currently creating a DLL for use with some Office Aps and I need to be able to view usernames of all personnel who have access to the network, aka, access to the list of profiles I guess?
The...
Sorry, I'll try to be more specific. In the program I'm using I utilize the vector class and in some instances my algorithm will return a NULL pointer if it does not intend to generate an object at...
What does the vector class do if you give it a NULL pointer. Does it still add that to the array? And if so you can derive from this class correct?
No, there is nothing wrong with defining a variable with global scope, technically that is. However if it does not need to have global scope don't give it that. My objection was to this general...
Defining global variables when you do not need to will tend to land someone in trouble, not to mention just poor practice. If you are going to collect information for the caller, it is better simply...
int blah(){
int x = 5
return x;
}
int main(){
int y = blah();
cout<<y<<endl;
return(0);
First let me tell you generally how I have set everything up. I have created a general grafx class and derived from that my specific needs such as enemies and weapons, ect. Each of my pics is an...
Right now I am using the atlimage header file with transparentblt. I was wondering what the DirectX equivalent was. Any help would be great.
Sorry, that was me, evidently I'm not cookied anymore.
Well I can't draw to save my life and all those sprites online have this format that I can't seem to read. So out of frustration I wrote this. When you hit enter it takes the current picture...
Thanx for the info, I finally got it after looking around on msdn. I am starting just a general space game, hence the previous posts on scrolling background and screen capture(for the sprite). I...
Isn't that with DirectX?
Allright, so I have my sprite and its on a black(but can be white) background. Now I place my sprite on my scrolling background and , BAM, look a black rectangle outlining my ship with the stars...
Thanx, that explains things. I thought I couldn't program anymore, :D
So, any one have a screen capture program? I've been playing with one but the only thing it displays is a black rectangle. Just really starting to ........ me off, if anyone has one please post, all...
Nevermind, I got it.
Alright, so I can load a bitmap image as a background no problem, now I just can't seem to get the background to scroll. Any ideas?
int length=lstrlen(char *);
hmmm........ C++ board??????? What language are you using for your windows Apps? MFC, WIN32 API, Visual Basic?
By the way you'll get more input if you post in the Windows forum.
int grabinput(){
char c;
c = getch();
switch((int)c){
case 27:
return 2;
case 75:
return 0;
Ok, to put a picture in your backround you need to have a bitmap(obviously) and to load that from a file the code will look like:
HBITMAP backround;
HBRUSH hBrush;
background =...