This tutorial is for the winapi programming. I am learning it now, but whenever i enter the code into my compiler(vc++ 2010), it doesn't work. So, i said to myself why don't i just c&p the code into my compiler and i did, and it still didn't work. Should i use a different compiler.
Did you set your project to a win32 application? It should work on VC++
yes of course i did, i am not that retarded. Well, i am little but i don't know what's wrong with the code, i have vc++ 2010 and it's not working right, i have even c&p the code to make sure i didn't write anything wrong and it still didn't work. IDK WHAT'S WRONG.
We can only help you so much with the information you're giving us..
In other words, post your errors.
well, there's alot. Like when you are using a messagbox u have to put the word TEXT after NULL, that was not in the tutorial and then there are more that don't make sense to me cuz i have just started windows api.
winprog is in C. Add me on MSN hawkx5@live.com and I might be able to help you with some things.
EDIT: ... tomorrow because I have to go to bed in a few.
Well, i though it would work on c++ also because it is just a calling convention.(That's what i was told, no idea what it means.) But if that's the case can somebody post a tutorial that is written in c++ not c for winapi?
_________________________________
I am starting to get really annoyed because i am trying to learn winapi, but all the sources are wrong or most likely i am doing something wrong that i can't figure out. Someone please help. thanks in advance.
I still don't know what errors you're getting, mind just posting them...?
Originally Posted by zhaoyun333
Did you set your project to a win32 application? It should work on VC++
lol nice :P
I think you try to use the unicode api try adding 'A' after your api:
MessageBox(NULL, TEXT"UNICODE", TEXT"UNICODE", NULL);
or:
MessageBoxA(NULL, "SOME TEXT", "SOME MORE TEXT", NULL);
-SCHiM
Originally Posted by schim
I think you try to use the unicode api try adding 'A' after your api:
MessageBox(NULL, TEXT"UNICODE", TEXT"UNICODE", NULL);
or:
MessageBoxA(NULL, "SOME TEXT", "SOME MORE TEXT", NULL);
-SCHiM
Yep, either that or change the character set of your project and it will do that automaticly.
Ok, so does that work for everything, just put an A. Please tell me how to change my character set, or if there is like a button to do it or something.
Originally Posted by 258456
Ok, so does that work for everything, just put an A. Please tell me how to change my character set, or if there is like a button to do it or something.