Announcement: Be excellent to each other.


Caravel Forum : Caravel Boards : Development : A question about programming
1
Page 2 of 2
New Topic New Poll Post Reply
Poster Message
schep
Level: Smitemaster
Avatar
Rank Points: 863
Registered: 03-01-2005
IP: Logged
icon Re: A question about programming (0)  
So which compiler are you trying to use? cl.exe is Microsoft's compiler (the equivalent of g++.exe). The last time I used Qt on Windows, I was using it with MSVC. The Qt install/configure thing should build the libraries you want with no problems. In addition to Makefiles, qmake.exe is capable of making *.dsp (and probably *.vcproj by now) files which can be loaded into the MSVC++ visual editor. That might work out easier. I could almost never get nmake.exe do what I wanted.
10-07-2007 at 10:58 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
Kwakstur
Level: Smiter
Avatar
Rank Points: 384
Registered: 05-05-2006
IP: Logged
icon Re: A question about programming (0)  
quote:
schep wrote:
So which compiler are you trying to use?
Do you mean what I'm trying to compile Qt with? In that case, qconfigure is trying to compile Qt with cl.

If you mean what I'm trying to compile my own programs with, well, that would depend. I have to do qconfigure first, and I guess what I compile with will depend on which works first, g++ or msvc2005.

____________________________
Also known as ExpHP everywhere else.

[Last edited by Kwakstur at 10-08-2007 05:00 AM]
10-08-2007 at 12:08 AM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
Kwakstur
Level: Smiter
Avatar
Rank Points: 384
Registered: 05-05-2006
IP: Logged
icon Re: A question about programming (0)  
Sigh. qconfigure automatically turned off processing of project files (or so it seems), so once it worked, I still couldn't do anything. So I decided to start back from the beginning. I downloaded the new Qt 4.3.2, and then ran configure - not qconfigure - set to win32-msvc2005. But it took 5 hours building crap when I used nmake after that (not to mention I had to copy and paste several library and header files into 20 different directories because some Makefiles in Qt lacked a common libpath or include path).

So my free space just dropped from 2.64 GB to 0.43 GB. I would say that's a problem. Also, when I use qmake to build a .vcproj, the resulting project claims it can't find certain .DLLs . . . ones whose paths are in the libpath variable, as well the fact that they aren't listed in the dependencies.

Help in either problem (wasted space or b0rken vcproj) would be appreciated.

EDIT: Interesting development in the Qt size story. I just found that I have 2.28GB free right now. But the Qt folder is still 2GB large. So at some point when I didn't touch the computer this week, it freed up 1.75 GB just by sitting there. I don't have any idea at all what was deleted, but it seems like one problem is gone.

As for the library problem, I have found this while investigating: A few things I do to the dlls bring up an error saying that they are not for win32. That doesn't make much sense, though . . . I did configure Qt for win32-msvc2005.

____________________________
Also known as ExpHP everywhere else.

[Last edited by Kwakstur at 10-20-2007 09:08 PM]
10-20-2007 at 06:31 AM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
Kwakstur
Level: Smiter
Avatar
Rank Points: 384
Registered: 05-05-2006
IP: Logged
icon Re: A question about programming (0)  
I'm now trying C#. And I have two simple questions about programming Windows Applications in it.

1. Is there a way to just put text in a window?
2. How would you suggest I draw to a window (or to the screen)?

My current solutions are rather humorous results of being resourceful. What I'm doing right now is just assigning the Text properties (which are the labels) of Controls like Buttons and/or Group Boxes, and I plan to have Picture Boxes with changing Target images.

____________________________
Also known as ExpHP everywhere else.
10-27-2007 at 07:06 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
Pekka
Level: Master Delver
Rank Points: 277
Registered: 09-19-2007
IP: Logged
icon Re: A question about programming (+2)  
quote:
Kwakstur wrote:
I'm now trying C#. And I have two simple questions about programming Windows Applications in it.

1. Is there a way to just put text in a window?
2. How would you suggest I draw to a window (or to the screen)?




Well, if you're using C#, you could start out with the .NET platform's System.Drawing namespace. See if you can find a good tutorial for it on the web. It looks like there are a couple of them around.

The way to display text depends on what you want the user of your program to be able to do with it. There is no one correct answer. You can, if you want, use System.Drawing classes to display text in various fonts, sizes etc.

If you're just starting out on programming, I suggest you to practice with on-line programming puzzle collections. Two good ones are:

http://www.projecteuler.net/
http://www.spoj.pl/

The first one is particularly good because you can see other people's answers in the forums after you've come up with your own.
11-01-2007 at 06:19 PM
View Profile Show all user's posts This architect's holds Quote Reply
Kwakstur
Level: Smiter
Avatar
Rank Points: 384
Registered: 05-05-2006
IP: Logged
icon Re: A question about programming (0)  
Wow, I'm glad to see one post here that isn't mine. I think people just got bored and started to ignore me.

I've been on the MSDN forums checking on stuff. I've actually been making programs using the methods I described. Those awful picture boxes led me to discover as and foreach. Somebody on MSDN suggested XNA (XNA's Not Acronymed). I downloaded the required stuff yesterday and will look through the documentation once dad stops screwing around with my computer.

Actually, this one thing has been bugging me (wow, I really know how to perpetuate a topic to no end): What is .NET? I'm always hearing people say that this or that is .NET, but I see no distinguishing traits between it and other code.

____________________________
Also known as ExpHP everywhere else.
11-04-2007 at 08:53 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
Dolan42
Level: Master Delver
Avatar
Rank Points: 195
Registered: 04-14-2006
IP: Logged
icon Re: A question about programming (0)  
quote:
Kwakstur wrote:
Actually, this one thing has been bugging me (wow, I really know how to perpetuate a topic to no end): What is .NET? I'm always hearing people say that this or that is .NET, but I see no distinguishing traits between it and other code.
http://en.wikipedia.org/wiki/.NET_Framework

____________________________
-D
"To understand recursion you must first understand recursion."
11-04-2007 at 09:14 PM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
Mattcrampy
Level: Smitemaster
Avatar
Rank Points: 2388
Registered: 05-29-2003
IP: Logged
icon Re: A question about programming (0)  
.Net's the series of libraries C# uses. (The System namespace, essentially.) There's three reasons why it's got a brand name:

1) It's a Microsoft product.
2) It's a cross-language library, so you can use the same library in VB, C++ or C#. As most C-derived languages are very similar, this really flattens to learning curve.
3) It requires an external library that people have to download. There might be a way around this, adding the libraries you use as part of the distributable.

I really like C#, it's a good language despite the .Net Framework requirement for anyone who uses the program.

____________________________
What do you call an elephant at the North Pole?
Click here to view the secret text

11-06-2007 at 11:55 AM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
halyavin
Level: Delver
Rank Points: 52
Registered: 02-20-2006
IP: Logged
icon Re: A question about programming (+1)  
11-08-2007 at 12:13 PM
View Profile Send Private Message to User Show all user's posts ICQ Status Quote Reply
1
Page 2 of 2
New Topic New Poll Post Reply
Caravel Forum : Caravel Boards : Development : A question about programming
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.