View Full Version : Visual C++
regna_anger
23-07-03, 10:28 PM
a'kum n aloha....
kawe nok tanyer sket psl visual c++ .... slamer nie aku
blajo c++ .... program pakai console unix n borland je ...
camner nak masukkan dlm visual c++ ???
boleh tak program data struture cam linked list , push pop ape lagi arrr node structure programming tue attach kat visual c++ nie ??? ...kalu ado sapo2 tau bole tak mintak tolong?? :)
C++ is still C++, regardless of the compiler.
It should work fine without modification from console Unix and Borland to VC++ if you're not using OS-specific functions.
As for linked lists and stuff, why not? It's still the same old C++
-= Obi-Wan =-
regna_anger
27-07-03, 02:39 PM
tq mr obi wan .... tapi camner pulak yek nak buat satu program exe ? aku dah baca dier punyer tutorial tapi serabut arr ... maksud soalan aku disini nak jadikan dier satu proigram windows ... exe punyer ... bole double kilik n function cam program vb ...???
Travis_L9
27-07-03, 08:44 PM
Kalau nak function macam vb like drag button,form dan lain2 leh guna C#. Tapi kalau nak guna Visual C++ utk funtion camtu leh leh gunakan MFC(Microsoft foundation Class).
kalau nak masukkan dalam vc++, first of all kena tau environment cemana nak guna vc++ tu, this is because it is an IDE application. so nak run sesuatu program yang ditulis dan sudah 'save'kan sebagai .c atau .cpp file, apa2 pun kita kena create a new project. Bila sudah namakan dan savekan project tu, baru boleh create a .c or .cpp file. Option yang kita gunakan is 'win32 console application' and choose 'create a blank project'. Ni untuk option kalau nak run satu .cpp file (seperti dalam borland). Kalau nak masukkan linked list, click kat workspace (tau lkan workspace kat mana-> go to view->workspace) tu, kat 'ClassView' tab, right click nama class yang paling atas sekali, and choose 'add new class', the header file will be done automatically for u.
so kalau nak buat windows exe tu, macam travis cakap pakai MFC is the best, option for this masa kita create a new project, we choose MFC, kalau tak, kita boleh pilih gak 'win32 application'. Actually it's good to get a book on vc++. Buku yang saya suka pakai is 'Sams Teach Yourself VC++ in 21 Days'. If you're interested I am always willing to help. tapi tak terrer la... :)
Zephyrous
15-08-03, 04:51 PM
http://www.winprog.org/tutorial/
this page will explain your question..
tapi banyak cara untuk buat windows program..
contohnya dengan menggunakan MFC, VCL, etc
tapi semua tu adalah layer bagi Win32 API..
oleh itu, lebih baik belajar programming windows
pakai generic ip dulu..lepas ni boleh laa explore
guna layered API
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.