Can somebody please help me? when i try to display a messagebox using this command. MessageBox.Show("") it gives an error but when i do this MessageBox::Show("") it works. is this a problem with my compiler?
"This tutorial shows how to do a messagebox in C++ using Win32 API !"
No, it shows you how to do it and then some.
For example, "return 0" is not absolutely necessary. The code will compile and run and you do not need to put return 0. Don't lie to people and convince them that it's absolutely necessary.
Also, it is possible to use Window's functions in a console window environment. You can show messages from Windows in a text-based interface as well.
Doamne deci numi vine sa cred ce lume;)) nu stiam ca in romania mai sunt si programatori auzi ma am impresia ca altcineva scrie si altcineva vorbeste sau citesti dupa o foaie peste videoul facut:)) oricum increarca sa bagi si niste referinte nu numai asta....:d
win32API pwns do you know how to code with the winsock.h ans winsock2.h win32networkAPI call's
it's really crazy @ first with all the syntax and everything but after a while it get's fun..also do you know how to do dll injection as in injecting your program into a running process using the kernel32.dll..
your pretty smart kid ! i thought that the only programs that you could do windows aplications in was stuff like visual basic and c# but c++ is great to thanks for the video !
Some stick with it, some use wxDev-C++. wxDev-C++ is the classical one but with a RAD for the wxWidgets framework. And as I've said earlier Code::Blocks is another good alternative. And yes, Code::Blocks supports wxWidgets, but we're kinda going offtopic because this vid is about Win32API.
I'm learning Win32 API right now. VC++ Express driving me crazy. Although my code is %100 correct, i can't compile. I got error that has something with LPWSTR - Char[12].... I can't remember on top of my head...I will google it.
I'm using Dev-C++, but Code::Blocks is pretty good as well (link in second tutorial). And thanks for the compliments, I thought I really sucked because of my voice.
na actually u dnt suck, i couldnt understand only one word lolz. but in the end i understood every thng. do u knw any site were i can learn win32 projects? i already knw console aplications but i have no idea how to use win32 projects its the same thing ur doin. i'm using visual c++
Cati ani ai?
DaLys4s 2 months ago
Can somebody please help me? when i try to display a messagebox using this command. MessageBox.Show("") it gives an error but when i do this MessageBox::Show("") it works. is this a problem with my compiler?
JagexSmd 7 months ago
fwirst wee inclood the lie bwaries wee need
julienmauricemort 8 months ago
"This tutorial shows how to do a messagebox in C++ using Win32 API !"
No, it shows you how to do it and then some.
For example, "return 0" is not absolutely necessary. The code will compile and run and you do not need to put return 0. Don't lie to people and convince them that it's absolutely necessary.
Also, it is possible to use Window's functions in a console window environment. You can show messages from Windows in a text-based interface as well.
Learn the teaching mechanics.
CLANEGGSALADPERSON 9 months ago
Interesant
adrianseverus 9 months ago
DOTA FTW!
5martone 1 year ago
Lol what's with the sudden Basshunter at the end? xD
jared0801 1 year ago
WinAPI is not platform independend so forget it
antisteo 1 year ago
DIn LILLA HORA GÖR MER VIDEO!!!
iPhpMaster 1 year ago 4
wow thanks are you german?
fpsterrorproduction 1 year ago
i thought dota was a finish song, arnt you french
happygamestvfun1 1 year ago
wtf the ending music for?
GhostXoP 1 year ago
What is construct is that WINAPI? How can that possibly be C ?
FreelancePatriot76 1 year ago
how old are you ?
Dice3000 1 year ago
I need help to c++ gui.. how do i build gui to my c++ apps? instead of the black screen? do i still use c++ the same way to code in??
and how do i have my own icon??
m4unot 2 years ago
windows.h is a header... lil' kids know that...
NENAD1NESA 2 years ago
in sfarsit! chiar cand ma temeam ca nu mai exista programatori romani, s-a aratat o minune
pentru o clipa credeam ca toti romanii au renuntat la coding
demoniccurses9 2 years ago
Doamne deci numi vine sa cred ce lume;)) nu stiam ca in romania mai sunt si programatori auzi ma am impresia ca altcineva scrie si altcineva vorbeste sau citesti dupa o foaie peste videoul facut:)) oricum increarca sa bagi si niste referinte nu numai asta....:d
IceyJoke 2 years ago
Sounds like Dexter lol
CPUhacker24 2 years ago 11
Is there any way that you can pass a variable of string type ex.
std::string myString= "Hello";
MessageBox(0, myString, "Caption", MB_OK);
to the lpText parameter of the MessageBox function? Is that possible?
wahehe20 2 years ago
MessageBoxA(NULL,myString.c_str(),"Caption", MB_OK);
should do the trick
maitrelame2 2 years ago
Salut!
Tris2006 2 years ago
shes got a slavic accent.
Like it reminded me of a russian person i knew.
pentru, asa o simpla icoana am scris mult mai multe porcarii, asa ca, imi comvine idea ca e mai, simpla.
Cu ajutorul acesotra poti crea casute cu messaje de eroare de obicei:).
hares295 2 years ago
how old are u ?
valisj 2 years ago
you sound like dexter from cartoon network :P nice, thanks for sharing your knowledge :)
remco138 2 years ago
dotaaaaaaaaa
ArKaNeSSS 2 years ago
Ai un accent interesant. Oricum e ok :).
bogdanp9 2 years ago
LPSTR gratz = "WOW this is nice";
rednoob23 3 years ago
I hate the synonims from windows.h What is char* no longer good?
christy2drag 3 years ago
eee da ce nu vorbesty in romana
rotarika 3 years ago
this only works if you write C or configured GUI to support ascii strings.
by default c++ conciders all strings unicode, thus you must include tchar.h and use the _T function to convert the ascii strings to unicode strings.
or you can compile the file as a C file.
DemonLordChaos 3 years ago
win32API pwns do you know how to code with the winsock.h ans winsock2.h win32networkAPI call's
it's really crazy @ first with all the syntax and everything but after a while it get's fun..also do you know how to do dll injection as in injecting your program into a running process using the kernel32.dll..
binaryphr3k 3 years ago
your pretty smart kid ! i thought that the only programs that you could do windows aplications in was stuff like visual basic and c# but c++ is great to thanks for the video !
casandramar 3 years ago
Some say Dev-C++ is not good any more. Is this true?
SaihatAlhaq 3 years ago
Some stick with it, some use wxDev-C++. wxDev-C++ is the classical one but with a RAD for the wxWidgets framework. And as I've said earlier Code::Blocks is another good alternative. And yes, Code::Blocks supports wxWidgets, but we're kinda going offtopic because this vid is about Win32API.
Win32APICProgrammer 3 years ago
I'm learning Win32 API right now. VC++ Express driving me crazy. Although my code is %100 correct, i can't compile. I got error that has something with LPWSTR - Char[12].... I can't remember on top of my head...I will google it.
THANKS for Reply!
SaihatAlhaq 3 years ago
One : before any text put one of these three : TEXT("text"), (LPTSTR)"text" or L"text".
Or a second solution : Project > Name properties > Configuration properties > General > Character set : Use multi-byte character set.
Use any of those 2 ! Hope it helps !
P.S. have you watched my second tut ?
Win32APICProgrammer 3 years ago
@Win32APICProgrammer when i do this code in C++
then i press CONTROL + F5 and appears this.
--------------------Configuration: Cpp1 - Win32 Debug--------------------
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Cpp1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Cpp1.exe - 2 error(s), 0 warning(s)
and it doesnt works, why??
ramonet27101993 1 year ago
I'm using Dev-C++, but Code::Blocks is pretty good as well (link in second tutorial). And thanks for the compliments, I thought I really sucked because of my voice.
Win32APICProgrammer 3 years ago
na actually u dnt suck, i couldnt understand only one word lolz. but in the end i understood every thng. do u knw any site were i can learn win32 projects? i already knw console aplications but i have no idea how to use win32 projects its the same thing ur doin. i'm using visual c++
benton202 3 years ago
Very good. Good song at the end to.
Nextstopearth 3 years ago
that seems much faster than visual studio! hm, maybe its just me :-/
SaihatAlhaq 3 years ago