Win32 API -- C or C++

Just starting out? Need help? Post your questions and find answers here.
Zamboni
New User
New User
Posts: 4
Joined: Thu Dec 18, 2003 7:26 pm

Win32 API -- C or C++

Post by Zamboni »

I see that you can expand PB using the Win32 API. Does the Win32 API require knowledge of C++ or is C sufficent? Sorry for such a basic question. Just do not want to waste my time on C++ if it is not necessary.
Thanks in advance for the advice.
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

C will suit you better for learning the WinAPI and for translating code to PB. C++ doesn't really help any more than C because PB doesn't really support the OOP abilities that C++ offers.
--Kale

Image
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

well u dont need any knowlegde on either of them for basic use of win32 api.
Zamboni
New User
New User
Posts: 4
Joined: Thu Dec 18, 2003 7:26 pm

Post by Zamboni »

Wow! Thanks for the quick replies. Now back to studying. Thanks again.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Win32 API -- C or C++

Post by PB »

> Does the Win32 API require knowledge of C++ or is C sufficent?

Neither. I never used the API before PureBasic and learnt it from scratch,
both from examples in these forums and from other sources (mainly Visual
Basic sites). As a side-effect, learning the API with PureBasic has made it
easier for me to read and understand C source codes now. :)
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

well u dont need any knowlegde on either of them for basic use of win32 api.
Ooops! Yes i forgot to mention, as thefool wrote you don't need any prior C knowledge to start using and learning the WinAPI from within PB. On the other hand though Learning the basics of C from a good beginners book will help you out a little more and solve many confusing things you may encounter.
As a side-effect, learning the API with PureBasic has made it
easier for me to read and understand C source codes now.
Yes, me too! :)

This is a link you may find useful for begining with the WinAPI:
viewtopic.php?t=10046
--Kale

Image
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

sure it helps to have basic c knowledge.
Post Reply