Jump to content
Sign in to follow this  
aXXo

Button, Menu, Picturebox

Recommended Posts

selama ne aku buat study coding guna appz cam dos je..so mcm mana nak buat pure application yg ada form, ada button, ada menu, ada picture box, ada text box etc..aku kurang faham ler ttg mfc neh? boleh terangkan ke? bagi contoh supaya aku lebih memahaminya!

cth :

void main(){

cout << "forum.putera.com";

}

klu nak apply button press & keluar perkataan tu kat text box mcm mana?

tolong ajar?

aku sangat suka vb sbb semuanya direct..akan tetapi disebabkannya slow aku switch belajar c++!

so brp2 yg pro tu ajar2 ler yee

Edited by aXXo

Share this post


Link to post
Share on other sites

so ko nak start guna API, ek?...

(aku assume ko guna VC++ 6.0)...sama cam ko nak wat VB tu jugak...bole create controls masa design time atao run time...lebih kurang je...

aku sangat suka vb sbb semuanya direct..akan tetapi disebabkannya slow aku switch belajar c++!

aku kurang faham ler ttg mfc neh?

kalu ko guna MFC, sebenarnya lebih kurang je ko guna VB (berdasarkan ke-slow-an yg ko cakap tu)...

so, aku rasa, elok ko try guna pure win32 API tanpa MFC utk kelajuan kuda padi anda :D...sbb kalu guna MFC n ko da power VB, aku suggest ko stick to VB je...n, cam VB, MFC just utk platform windows..

beberapa hint utk win32 API tanpa MFC:

a) ko kena #include <windows.h> ...

B ) entry point dia bkn lg main()...tp int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow)

c) ko akan bermain ngan byk mesej2 dr windows dan app ko...so musti ada windows procedure (i.e: LRESULT CALLBACK WindowProcedure (HWND hwnd, unsigned int message, WPARAM wParam, LPARAM lParam))

d) tu yg paling basic kena ada...dan selebihnya, panjang sgt kalu nk citer :D..

elok ko buat satu simple application dulu (tutorial byk kat internet)...dan kalu x paham, bole la tanya kat sini...sbb kalu nak citer pasai ni...1000 page pon x abih :D..so, elok dispecifickan...huhu

Edited by betik

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...