www.digitalmars.com         C & C++   DMDScript  

c++.windows.32-bits - New to Mars C, Can't use some Win Functions

reply Cjmovie <Cjmovie_member pathlink.com> writes:
Hi! I'm new to mars C, and I must say it DOES compile very fast. Before I used
Dev-C++ for Win32 programs, but even though I still have worked with it long,
it's great!

But, I must get to the point. I'm going by a Dummies Book For widnows 95
programming, but Mars C++ doesn't seem to support a few functions I need:

GetStockObject();
TextOut();

Could somebody tell me what to do about this?

Thanks!
Cjmovie

I know how to.....
..Write programs in C ...Write programs in C++
..Write programs in Basic ...Write programs in Pascal
..Write Websites in HTML ...Write Websites in Javascript
..Debug and Optimize Code ...Never finish a project?
Apr 08 2004
next sibling parent "Phill" <phill pacific.net.au> writes:
"Cjmovie" <Cjmovie_member pathlink.com> wrote in message
news:c54eu1$2fg0$1 digitaldaemon.com...
 Hi! I'm new to mars C, and I must say it DOES compile very fast. Before I
used
 Dev-C++ for Win32 programs, but even though I still have worked with it
long,
 it's great!

 But, I must get to the point. I'm going by a Dummies Book For widnows 95
 programming, but Mars C++ doesn't seem to support a few functions I need:

 GetStockObject();
 TextOut();

 Could somebody tell me what to do about this?

 Thanks!
 Cjmovie

 I know how to.....
 ..Write programs in C ...Write programs in C++
 ..Write programs in Basic ...Write programs in Pascal
 ..Write Websites in HTML ...Write Websites in Javascript
 ..Debug and Optimize Code ...Never finish a project?
Well I dont know as much as you by the looks of it. But you can use both of these functions with DMC++, there is a TextOut(HDC hdc, int nXStart, int nYStart, LPCTSTR lpString, int cbString ); in gdi32.lib. Or if you are using MFC you can use: CDC::TextOut(int x, int y, const CString& str []) There is also include <wingdi.h> HGDIOBJ GetStockObject( int fnObject // type of stock object ); Its also in gdi32.lib If you have the CD there is a very good help section and also tutorials that come with the CD. Its well worth the price. Phill. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.648 / Virus Database: 415 - Release Date: 3/31/2004
Apr 08 2004
prev sibling parent reply Jan Knepper <jan smartsoft.us> writes:
Cjmovie wrote:
 Hi! I'm new to mars C, and I must say it DOES compile very fast. Before I used
 Dev-C++ for Win32 programs, but even though I still have worked with it long,
 it's great!
 
 But, I must get to the point. I'm going by a Dummies Book For widnows 95
 programming, but Mars C++ doesn't seem to support a few functions I need:
 
 GetStockObject();
 TextOut();
 
 Could somebody tell me what to do about this?
Yeah! Include the proper .LIB file in your project. GDI32.LIB -- ManiaC++ Jan Knepper But as for me and my household, we shall use Mozilla... www.mozilla.org
Apr 08 2004
parent reply Cjmovie <Cjmovie_member pathlink.com> writes:
Thanks, now it's working!

But now I have two other problems :(.
The book also requires some type of AppWizard to generate new projects, and it
also requires one of those visual window-editors, where you click and place
buttons and other things. Any way to get something like that?
Apr 10 2004
next sibling parent reply "Walter" <walter digitalmars.com> writes:
"Cjmovie" <Cjmovie_member pathlink.com> wrote in message
news:c59740$rq5$1 digitaldaemon.com...
 Thanks, now it's working!

 But now I have two other problems :(.
 The book also requires some type of AppWizard to generate new projects,
and it
 also requires one of those visual window-editors, where you click and
place
 buttons and other things. Any way to get something like that?
The IDDE comes with things like that. See www.digitalmars.com/ugr/ugr.html.
Apr 10 2004
parent reply Cjmovie <Cjmovie_member pathlink.com> writes:
In article <c59coq$143a$2 digitaldaemon.com>, Walter says...
"Cjmovie" <Cjmovie_member pathlink.com> wrote in message
news:c59740$rq5$1 digitaldaemon.com...
 Thanks, now it's working!

 But now I have two other problems :(.
 The book also requires some type of AppWizard to generate new projects,
and it
 also requires one of those visual window-editors, where you click and
place
 buttons and other things. Any way to get something like that?
The IDDE comes with things like that. See www.digitalmars.com/ugr/ugr.html.
OK. But first, are there any free ones, since you have to buy the cd to get the idde for digital mars?
Apr 11 2004
parent "Walter" <walter digitalmars.com> writes:
"Cjmovie" <Cjmovie_member pathlink.com> wrote in message
news:c5cjsp$2rp7$1 digitaldaemon.com...
The IDDE comes with things like that. See
www.digitalmars.com/ugr/ugr.html.
 OK. But first, are there any free ones, since you have to buy the cd to
get the
 idde for digital mars?
The CD is extremely reasonably priced at $25. There's also a ton of stuff on it besides just the IDDE that's of value to the serious programmer.
Apr 12 2004
prev sibling parent Jan Knepper <jan smartsoft.us> writes:
Honestly...
I do consider AppWizard the wrong way of building an application. The 
IDDE has features like that, but I never use them as I rather know into 
detail what code I write/generate does.

You can do whatever any AppWizard does with a simple text editor, 
although initially that is going to take longer. The benefit however 
will be that you know much better what you are doing.

The IDDE is great for dealing with projects, building, etc though.

Good luck!
Jan



Cjmovie wrote:
 Thanks, now it's working!
 
 But now I have two other problems :(.
 The book also requires some type of AppWizard to generate new projects, and it
 also requires one of those visual window-editors, where you click and place
 buttons and other things. Any way to get something like that?
 
 
-- ManiaC++ Jan Knepper But as for me and my household, we shall use Mozilla... www.mozilla.org
Apr 10 2004