oki here they comes:
// framework.c
/////////////////
//// Headers ////
/////////////////
#include <windows.h>
#include "const.h"
Type: Posts; User: black
oki here they comes:
// framework.c
/////////////////
//// Headers ////
/////////////////
#include <windows.h>
#include "const.h"
well i dont show any piece of code here because they are not only 20 lines or something, if you like i can post it later. i just wanna ask if anyone suffered this weired thing before, everything...
Hi everyone,
just a simple windows question. i'm making my first windows game with C and everything seems to be ok, but when i run the game i found the game window rejected paiting anything after...
from command line arguments, say if i start server like this:
serversocket.c 12345
it means server may start with local address and listen at port 12345;
and client side may type a command as...
weird. it is not correct even we count null chars. i sent a message "hello" which lengths should be 5(or 6 if a null char considered) but actually server got a string with 7 chars, and if we send...
hi all~
i made a simple socket test and it worked. but it is weired that the message changes both from client to server and from server to client. for example i send a message "hi" to server and...
operators like >> dont help caz i'm developing a simple window program. the string may be used in functions like MessageBox so that is why i'm seeking for a simple function which can convert int into...
wor too many steps for debugging. are there any functions can be used ?
hi all~
i'm newbie to C++ string type and get confused when trying to convert an int into string, i just want my cute messagebox to popup mouse positions, here is my code:
MessageBox(NULL,...
one more thing, is there any efficiency difference btween CreateMenu and .rc resources ? i think program size may be smaller by CreateMenu way but less efficiency when running, anyway i dont proof it.
tks man ! i love CreateMenu lol ;)
hi all~
i've created a simple window and now have a few questions about menu:
1. my book told me to build a menu we need create certain menu class and corresponding header files first, but how...
tks guys i've made a cute window now, but met some problems when facing messages. here is my callback function to deal with messages:
LRESULT CALLBACK WndProc(HWND hwnd, UINT iMsg, WPARAM...
hi all~
i'm newbie to windows and GUI programming and just start reading "Windows Programming" but something confused me on createing a window. here are my questions:
1. all samples in the book...
tks Dave_Sinkula,
in fact the code is composed of these two lines:
#define KEYS *(volatile u16*) 0x4000130
#define keyPressed(key) (~KEYS & key)
as u said it is relative to keys...
tks man, i searched it within "the c++ programing language" and also found it is rarely used. what this cute macro really confused me is:
1 it has two *, which means pointer to pointer ?
2 ...
howdy~
here is a macro which i dunno what it means:
#define KEYS *(volatile u16*) 0x4000130
i'd appreciate if anyone could explain it abit(especially volatile keyword), tks.
gosh there is a long long way to go, and during which are filled up traps ;)
howdy~
i bought a book named "Visual C++.Net" issued by Microsoft, but i found it is abit hard for newbie like me, my goal is to learn a little on windows programming with C++, i'd appreciate ur...
simply checking the grammer, i think C# and Java are more alike than C or C++.
my book has arrived ! i got it last night and hasnt read it yet. i may be busying in doing it the next a few days, Cheers.
anyway thanx all of your guys.
thanx man i got it, but another problem, what if we prefer that read-only member not to be static(ie. constant) but dynamic one ? for example we may implements a LoadComponents class to load external...
it is wonderful but i can not understand it utterly can you explain in more details ? thanx !
hi all~
i wanna know how to make some members to be read-only ones in class implementation, maybe simple question ?
oh really thanx for mentioning that prog-bman, and now, any comments on that book ? please share your opinion before i get it.