C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 5th, 2003, 11:09 PM
ghatzhat ghatzhat is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 361 ghatzhat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 9 m 5 sec
Reputation Power: 7
a few beginner's woes...

hi guys... i'm straying off my usual turf - i'm usually to be found in the "webbier" forums, but round here, i accept that i know nothing.

having got that admission out of the way, i have a few questions -

i've been trying to get some of the example windows programs to work from www.cplusplus.com - i am interested in non-console apps (sorry, but i don't even know what they're supposed to be called). i've been downloading the little zip files, trying out the packaged exe file to see what it does, then deleting the packaged exe and trying to compile it myself. here is where the problems start (and the compiling ends!).

i am using the bloodshed Dev-C++ (4.9.8.0), and i cannot compile these examples - i get a slew of compiler errors/warnings and i don't get an exe file. i simply cannot believe that these examples are all screwed - i am obviously doing something wildly wrong - and i suspect that it is the kind of wrong that a competent C++ programmer feels they've always done right. can anyone shed any light on where i've got lost?

as a bit of background, i've been doing a lot of work with PHP/MySQL (hence me being off my usual stamping ground) and other web languages, but i am the first to admit that while web/db interactivity is very useful to the enterprise, it has major limitations. a client came to us recently with a problem which i'm sure would need intricate knowledge of printers/printer drivers/communication with printer drivers to solve - and of course i'm thinking this isn't the first time i'm going to be faced with problems i can't solve with my current tools, so i need to find out about some "big guns" languages.

as a kind of goal, i'd like to be aiming at writing an app that can communicate directly with MySQL, or maybe through a web service layer, but i can't even get off the ground.

so, if anyone can direct me to some *useful* sources, that'd be great. (if i read another tutorial that tells me that i++ means i=i+1 and that this is why C++ is called C++, i'll lose it!)
__________________
Little more than a playground for the bugs that live beneath us...

Reply With Quote
  #2  
Old June 5th, 2003, 11:21 PM
7stud 7stud is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Feb 2001
Posts: 1,327 7stud User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 44 m 50 sec
Reputation Power: 9
i am interested in non-console apps (sorry, but i don't even know what they're supposed to be called).

If they use windows, their called windows programs. Windows programs are organized much differently than console apps, so the compiler needs to know whether it is looking at a console app or a win32 app. You have to tell the compiler that it's a win32 app with the appropriate settings. I can't give you specifics for your compiler, but there should be some choices along the lines of console app, win32 app, etc. when you create your program.

Last edited by 7stud : June 5th, 2003 at 11:24 PM.

Reply With Quote
  #3  
Old June 10th, 2003, 03:12 AM
GeneDefekt GeneDefekt is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 4 GeneDefekt User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hi do you know if the code your trying to compile is ansi/iso compliant and if so did you turn that on in dev's options? also take a look at the included librarieds that the program usus have you got those libraries included in your lib folder? if not bung them in there and see where that gets you mate.
i use dev quite alot and some of the codes ive tried before just refuse to compile usualy due to a ; not being added or something else trivialy stupid.

good luck on getting your stuff to compile.

Reply With Quote
  #4  
Old June 10th, 2003, 08:34 AM
Onslaught's Avatar
Onslaught Onslaught is offline
/(bb|[^b]{2})/
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2001
Location: Somewhere in the great unknown
Posts: 4,840 Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 2 Days 27 m 47 sec
Reputation Power: 88
Send a message via ICQ to Onslaught
In the future please use a more appropriate subject title. See the sticky thread for more information on how to post a question.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > a few beginner's woes...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway