Forum: Coder's Corner Lounge
May 11th, 2008, 4:27 PM
|
|
Replies: 12
Views: 264
|
Forum: C++
May 8th, 2008, 12:36 AM
|
|
Replies: 6
Views: 162
|
Forum: C++
Apr 22nd, 2008, 1:51 AM
|
|
Replies: 2
Views: 125
Re: Network Monitoring Application
Seeing as you have not been taught anything about sockets this seems a little much for a first year computer project. If I were to do this I would try using libpcap (http://www.tcpdump.org/). It...
|
Forum: C++
Apr 14th, 2008, 4:48 PM
|
|
Replies: 10
Views: 398
Re: Question about GUIs
I am pretty sure photoshop proper is *not* written in QT. The only thing I can find about like that a photoshop derived product (http://trolltech.com/customers/coolapps/adobe) was written with QT. ...
|
Forum: Python
Apr 14th, 2008, 1:45 AM
|
|
Replies: 5
Views: 255
Re: 'C'oo'P'eration!
In the project linked in my sig, we interface tens of thousands of C++ with thousands of lines of python. We have very deep interactions, include passing python functions into a C++ based event...
|
Forum: C++
Mar 27th, 2008, 9:10 AM
|
|
Replies: 13
Views: 321
|
Forum: Coder's Corner Lounge
Mar 13th, 2008, 2:36 PM
|
|
Replies: 8
Views: 157
Re: enterprise application development
Can someone tell me what "enterprise development" is? It seems like its just a buzzword for large scale, distributed and reliable software applications/systems.
|
Forum: C++
Mar 12th, 2008, 1:24 AM
|
|
Replies: 17
Views: 506
Re: Console Game Development
Did you look at the pdcurses link posted above? Its basically a console GUI library that works on Windows. It should have most if not all of what you need.
|
Forum: Coder's Corner Lounge
Mar 12th, 2008, 1:21 AM
|
|
Replies: 21
Views: 429
Re: iPhone SDK
I really think Android is cool, but the iPhone SDK already has a device that been on the Market for a year and has millions of users. It will take at least 1.5 years for Android to reach that kind...
|
Forum: Coder's Corner Lounge
Mar 12th, 2008, 1:19 AM
|
|
Replies: 21
Views: 429
Re: iPhone SDK
Framework Restrictions: Its pretty simple, you can't install programs on the iPhone that run code, or load modules of code which are downloaded separately. So you could make a version of firefox for...
|
Forum: Python
Mar 9th, 2008, 5:10 PM
|
|
Replies: 5
Views: 204
Re: Set application Icon wxPython
I am pretty sure those last two lines can be written like this as well (notice the self.SetIcon()):
favicon = wx.Icon('favicon.ico', wx.BITMAP_TYPE_ICO, 16, 16)
...
|
Forum: C
Mar 7th, 2008, 12:45 AM
|
|
Replies: 16
Views: 490
Re: Simple BSD Sockets Problem
All telnet does is give you a direct TCP connection to the given server on the given port. You can then type out which characters you want to send and hit enter. It then reads back whatever it gets...
|
Forum: C
Mar 3rd, 2008, 9:00 PM
|
|
Replies: 16
Views: 490
Re: Simple BSD Sockets Problem
You should really make a dumb server which just prints whatever it is sent so that you at least know what are you sending is correct.
|
Forum: C
Mar 3rd, 2008, 8:59 PM
|
|
Replies: 16
Views: 490
Re: Simple BSD Sockets Problem
From what I understand telnet is a program that lets you connect to another server on a given port, and then send and receive plan text over a TCP connection. Since the IRC protocol is plain text...
|
Forum: C
Mar 3rd, 2008, 7:16 AM
|
|
Replies: 16
Views: 490
Re: Simple BSD Sockets Problem
Yes you should be checking the return of *every* socket call. I usually use wrapper function which do it for me.
I found the IRC spec (http://www.irchelp.org/irchelp/rfc/rfc.html) and I am not sure...
|
Forum: C++
Mar 3rd, 2008, 7:06 AM
|
|
Replies: 3
Views: 145
Re: PDF to JPEG
I would find a PDF rendering engine like Poppler (http://poppler.freedesktop.org/), and render internally to a buffer (like raw RGB bytes). Then you could use libjpeg (http://www.ijg.org/) to write...
|
Forum: C
Mar 1st, 2008, 7:51 PM
|
|
Replies: 16
Views: 490
Re: Simple BSD Sockets Problem
Where is your server code?
Well you aren't check the return of "gethostbyname" which could very well be NULL. That would be a quick crash. You also don't zero out you sockaddr_in structure before...
|
Forum: C++
Feb 23rd, 2008, 11:16 PM
|
|
Replies: 3
Views: 205
Re: Accessing C++ class in Visual Basic
If you are using VB.NET you can wrap you C++ class using SWIG (http://www.swig.org). Here is tutorial (http://www.swig.org/tutorial.html), you want the C# example. Even though it says C#, anything...
|
Forum: Show Off Your Open Source Projects
Feb 23rd, 2008, 2:25 PM
|
|
Replies: 7
Views: 630
Re: Mimesis
This borders on *not* being open source. You have to download a closed source application to get at the source code and its one which only works on Windows and Mac.
My advice: Create a source...
|
Forum: C
Feb 21st, 2008, 10:00 PM
|
|
Replies: 17
Views: 604
Re: Hashing In C
Well nobody is perfect and a line of code you don't have to write is a line of code you don't have to debug.
|
Forum: C++
Feb 21st, 2008, 9:58 PM
|
|
Replies: 6
Views: 170
Re: Shared Objects in Linux
I am not sure on this but if you are only using functions from SPEThread and they are all shared libraries, you should just be able to link SPEThread in. If they are static libraries there is no way...
|
Forum: C
Feb 21st, 2008, 3:06 AM
|
|
Replies: 17
Views: 604
Re: Hashing In C
This uses the fastest possible associative data structure: an array. That is all you need in this case because you are only dealing with numbers. It could use more memory than the map depending on...
|
Forum: Python
Feb 20th, 2008, 12:44 AM
|
|
Replies: 6
Views: 253
|
Forum: Python
Feb 18th, 2008, 11:31 PM
|
|
Replies: 6
Views: 253
Re: Downloading Tkinter and Wxpython
What platform are you? tkinter has come standard with python for many versions so which ever you are on you will have it. As for wxPython you want a download from here:...
|
Forum: C++
Feb 18th, 2008, 11:27 PM
|
|
Replies: 9
Views: 253
Re: determing whitespace to center text
Well the problem can't really be pixel width because my gnome terminal open right beside the firefox I am currently using, has fixed widths fonts. The issue is that I can decide for it to be 80...
|
Forum: C++
Feb 18th, 2008, 9:16 AM
|
|
Replies: 9
Views: 253
Re: determing whitespace to center text
He is a linux user talking about "consoles". Which means he writing a terminal program. If you are writing a terminal program and wish to make a decent text bested interface, using something like...
|
Forum: C++
Feb 17th, 2008, 5:09 PM
|
|
Replies: 9
Views: 253
Re: determing whitespace to center text
I think you want to use something like ncurses (http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/). Don't try to reinvent the console GUI, they did that like 20 years ago ;).
|
Forum: C++
Feb 15th, 2008, 8:41 AM
|
|
Replies: 3
Views: 154
Re: Building a simple XML Parser
If that's all you wanted: TinyXML (http://www.grinninglizard.com/tinyxml/) is your best bet for a quick solution. It is a DOM (http://en.wikipedia.org/wiki/Document_Object_Model) based parser, so it...
|
Forum: C++
Feb 11th, 2008, 3:59 PM
|
|
Replies: 3
Views: 154
Re: Building a simple XML Parser
I would be a good book on parsing. One way to do that is to check out some good universities and see which book they use for their classes which cover the subject. (Sorry I don't know one of the top...
|
Forum: C++
Feb 11th, 2008, 9:38 AM
|
|
Replies: 15
Views: 323
Re: Pointer to member function
This is also possible with Boost.Bind + Boost.Function (http://www.boost.org/libs/bind/bind.html#with_boost_function). Example:
class button
{
public:
boost::function<void> onClick;
};
class...
|
Forum: Python
Feb 10th, 2008, 1:15 AM
|
|
Replies: 1
Views: 158
Re: Python on unix
You should watch security there: 744 is probably a better permission set. That means only you can read,write and run it while everyone else can just read it. You don't want other users to overwrite...
|
Forum: C++
Feb 7th, 2008, 7:24 AM
|
|
Replies: 2
Views: 182
Re: Cameras -
Control? If you want to read images from a webcam you can use OpenCV (http://sourceforge.net/projects/opencvlibrary/).
|
Forum: C++
Feb 1st, 2008, 3:20 PM
|
|
Replies: 1
Views: 101
Real Time Stream Video Library
Does anyone know of an open source, cross platform (Linux, Mac OS X, Windows) real time streaming video library?
What I am looking for is something that will allow me to take a video source I am...
|
Forum: Visual Basic .NET
Jan 30th, 2008, 9:37 PM
|
|
Replies: 7
Views: 293
|
Forum: Python
Jan 25th, 2008, 12:01 AM
|
|
Replies: 4
Views: 263
Re: Games you don't download
I not a Microsoft person, but Silverlight 2.0 will support IronPython (http://www.voidspace.org.uk/ironpython/silverlight/introduction.shtml) so you will be able to run python in your web brower. It...
|
Forum: C++
Jan 19th, 2008, 10:29 PM
|
|
Replies: 4
Views: 159
Re: C++ File Input/Output Assistance Please
You need to come up with your own file format. You can write and read int, doubles, and std::strings from the file. Don't have time to give a code example but a typical format is:
[Section]
Key =...
|
Forum: C++
Jan 15th, 2008, 10:02 PM
|
|
Replies: 22
Views: 633
Re: c++ vs. java
No, Java was designed to be used (http://ei.cs.vt.edu/book/chap1/java_hist.html) on a wide variety of consumer devices and appliances. That is the driving force for all of its features, the JVM...
|
Forum: C++
Jan 14th, 2008, 5:50 PM
|
|
Replies: 22
Views: 633
Re: c++ vs. java
Java and C++ are very comparable. I suggest you use google to look up some more thorough information. In general, Java is a less powerful (in both speed an expressiveness) language but easier to...
|
Forum: C++
Jan 13th, 2008, 9:35 PM
|
|
Replies: 8
Views: 187
Re: USB Port Output
You want to use a microcontroller which can you program to respond to your commands. These commands can be interpreted by the microcontroller to trigger your circuit. I recommend the BASIC Stamp...
|
Forum: C
Jan 8th, 2008, 2:38 AM
|
|
Replies: 16
Views: 407
|