Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Win32 API

Status
Not open for further replies.

brizzo172

Technical User
Feb 22, 2005
3
CA
Hey all

Ok here's the deal, i've programmed using visual C++ before but only for console apps, now i want to use to win32 api. Now i'm not not too experienced with programming in general (know basics but couldn't wirte tetris or anything) anyways i've been spending all day trying to figure stuff out. now my question is, can anyone give me any tips about writing win32 apps (maybe a little peice of sample code that outputs something to the screen or something) If I am totally lost then just tell me I'm screwed and go no about your business!
My big problem is that my C++ knowledge is limited to the int main() and functions stuff .. i just don't see how this stuff is even close to that .. is it? or is it totally different C++???

thanks
 
i started doin win32API programming and it became a big headache. You'll have ALOT of lines of code just to make the window application with no features, just a plane window with borders. If you want to get into making windows programs with interface i would suggest buying(yes i said buying) VC++.NET or if you want to still use VC++ 6.0 that works too. i bought .net version because i heard it had more features blah blah..but you can create a windows program with 6.0 and it creates you a basic window..If you want to get into making the programs id learn C++, i used to be totally against C++ and was strictly C, but after i started learnin it, i figured it wasn't as bad as wut ppl were making it out to be. Don't listen to everyone else about which language is good and bad, everyone has their own opinion, so id suggest start learning C++ and if u dunt like it move on to something else. ASM programming is still an awesome skill to have. But anways some ppl still prefer to code the whole thing themselves and thats their choice, as others like to have the interface that'll create the structure for them(like me) :) good luck
 
Hey
I have VC++.net
and it writes the code for me so i can compile and open a window, but the window has nothing in it
my question is how does one write code to put stuff into the window?
I tried to write the regular stuff about c++ i know like cout<<"blah";
but that didn't work at all .. is there a different syntax if you are writing c++ into win32 API?

And I'm not totally hopeless with C++ i've taken a course in it and i can write the code ( basically) but this stuff boggles my mind!!!!
 
ahh...ok then all u need to do is learn up on C++ read some tutorials and help files...no there isn't a different syntex but you wont be using all the code you used when making a console application..pretty much you need to create code for user input..like for example if you were creating a text box and you wanted to retrieve the text after they click a button or sumfin then u would use the textBox->Text in your buttonclick function or wutever the trigger is for it. Sorry if im not explaining this clearly, but read up on C++ and do a search on google for Windows and C++ programming. I know is a good place to read up.
 
I was in a similar situation a few years ago, I knew how to program, but not how to program in Windows, so I got the book "Sam's Teach Yourself Visual C++ 6 in 21 Days", which is intended for people in that situation: it teaches only how to use the various Windows intricacies, such as Windows, buttons, dialog based or document based programs, etc. There probably is a .NET edition or equivalent.

I hope this helps,

Vincent

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top