Welcome to Dream.In.Code
Become a C++ Expert!

Join 137,228 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,905 people online right now. Registration is fast and FREE... Join Now!




Newbie needs help

 
Reply to this topicStart new topic

Newbie needs help, graphics and cin

exppc
12 Apr, 2002 - 03:54 AM
Post #1

New D.I.C Head
*

Joined: 12 Apr, 2002
Posts: 3

Hi there! I've got two problems. The first is that when using simple command line code (ie cin >> temp;), the user then has to press return. Is there a way that i can write the code so that they don't have to do this. Also, I have written a program for calculating musical delay values. It works nicely as a dos based program, but i would like to give it some graphics. All it needs to have are boxes for the user to type in to and using the MFC / API seems a bit excessive. Is there a way round it, or does anyone know of any good papers on this? I am using vc++6.0, and the MSDN libraries are useless on all of this!
User is offlineProfile CardPM
+Quote Post

malkiri
RE: Newbie Needs Help
12 Apr, 2002 - 05:53 AM
Post #2

D.I.C Regular
Group Icon

Joined: 29 Mar, 2001
Posts: 364



Thanked: 1 times
Dream Kudos: 4
My Contributions
Hi :)
I don't know about your first question, but I'm sure someone does.
As far as porting the program to Windows, I don't know of any way to get around the Windows API, unless there's some other wrapper API out there that might make it easier on you. I personally prefer the actual API to MFC, but that's just me. I added some links below to some Win32 API programming tutorials that I found useful.

http://sunlightd.virtualave.net/Windows/
http://macbase.cg.nu/win.htm (this one's a little confusing, but there's some info on getting some of the more annoying controls to work)
http://winprog.org/tutorial/

There are many more out there, especially if you choose MFC over the plain API. Don't forget about the MSDN library...it actually has quite a bit of good info, if you know what you're looking for.
Good luck!

User is offlineProfile CardPM
+Quote Post

tomrel
RE: Newbie Needs Help
13 Apr, 2002 - 01:49 PM
Post #3

D.I.C Head
**

Joined: 27 Aug, 2001
Posts: 171

as for the first part i would take a look in to the getch function. personally i never really used it but its worth looking in to.
User is offlineProfile CardPM
+Quote Post

RonaldSnoeck
RE: Newbie Needs Help
7 Sep, 2007 - 01:00 AM
Post #4

New D.I.C Head
*

Joined: 7 Sep, 2007
Posts: 1


My Contributions
QUOTE(malkiri @ 12 Apr, 2002 - 06:53 AM) *

Hi smile.gif
http://macbase.cg.nu/win.htm (this one's a little confusing, but there's some info on getting some of the more annoying controls to work)


The correct url is:
http://www.ronaldsnoeck.com/win.htm

thanks,
Ronald
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/4/08 02:56PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month