Added: 3 years ago
From: Win32APICProgrammer
Views: 15,090
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (44)

Sign In or Sign Up now to post a comment!
  • Cati ani ai?

  • 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?

  • fwirst wee inclood the lie bwaries wee need

  • "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.

  • Interesant

  • DOTA FTW!

  • Lol what's with the sudden Basshunter at the end? xD

  • WinAPI is not platform independend so forget it

  • DIn LILLA HORA GÖR MER VIDEO!!!

  • wow thanks are you german?

  • i thought dota was a finish song, arnt you french

  • wtf the ending music for?

  • What is construct is that WINAPI? How can that possibly be C ?

  • how old are you ?

  • 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??

  • windows.h is a header... lil' kids know that...

  • 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

  • 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

  • Sounds like Dexter lol

  • 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?

  • MessageBoxA(NULL,myString.c_st­r(),"Caption", MB_OK);

    should do the trick

  • Salut!

  • 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:).

  • how old are u ?

  • you sound like dexter from cartoon network :P nice, thanks for sharing your knowledge :)

  • dotaaaaaaaaa

  • Ai un accent interesant. Oricum e ok :).

  • LPSTR gratz = "WOW this is nice";

  • I hate the synonims from windows.h What is char* no longer good?

  • eee da ce nu vorbesty in romana

  • 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.

  • 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 say Dev-C++ is not good any more. Is this true?

  • 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.

    THANKS for Reply!

  • 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 when i do this code in C++

    then i press CONTROL + F5 and appears this.

    --------------------Configurat­ion: 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??

  • 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++

  • Very good. Good song at the end to.

  • that seems much faster than visual studio! hm, maybe its just me :-/

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more