LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-16-2004, 01:36 AM   #1
dennyvm
LQ Newbie
 
Registered: Jan 2004
Location: India
Distribution: redhat
Posts: 2

Rep: Reputation: 0
Question Can I develop a Graphical Interface in C in a short period of time?


Hello everyone...
Is there anyway to develop a graphical interface in C quickly for a packet sniffer that I'm developing....Could someone please help me out? Also are there ay sites that provide info on the 'exec' ,'system' functions in C other than the man pages...
I thank jtshaw and luxtan for their replies to my first post.
Could u please explain how to create a timestamped file and also how to get its size and other info using C?

Thank u...--->Dennyvm
 
Old 01-16-2004, 03:40 AM   #2
LogicG8
Member
 
Registered: Jun 2003
Location: Long Island, NY
Distribution: Gentoo Unstable (what a misnomer)
Posts: 380

Rep: Reputation: 30
GUIs aren't typically simple or fast develop in.
You can try using a RAD IDE to generate a lot
of boiler plate code for you. KDevelop does a
nice job.

As for file information check out
man fstat
 
Old 03-13-2004, 10:56 PM   #3
L1nuxbug
Member
 
Registered: Feb 2004
Location: Quetta
Distribution: RedHat
Posts: 54

Rep: Reputation: 15
hi dennyvm
.. i am working on the packet sniffer too.. and please can you give me some meterial ragarding ur project ??????
 
Old 03-13-2004, 11:12 PM   #4
Strike
Member
 
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31
Quote:
Originally posted by LogicG8
GUIs aren't typically simple or fast develop in.
You can try using a RAD IDE to generate a lot
of boiler plate code for you. KDevelop does a
nice job.
Ew, code generation. Shame on you for suggesting that

The superior approach is to generate a file that describes the GUI (in GTK, Glade does this, and I guess QT Designer does it for QT), and then to use a library which creates the GUI on the fly based upon that description file. So, for GTK it'd be libglade ... I'm not sure what it is for QT if it's even possible. At any rate, you avoid nasty code generation, which sucks a LOT, and you get the benefit of using a RAD GUI builder.
 
Old 03-15-2004, 06:40 AM   #5
Marius2
Member
 
Registered: Jan 2004
Location: Munich
Distribution: SuSE 9.2, 10.2, 10.3, knoppix
Posts: 276

Rep: Reputation: 31
If you want to do it with a few lines of c code rather than with a RAD, GTK may be the way to go.

http://www.gtk.org/tutorial/

You may also want to take a look at wxWindows if you plan to let your code run under Linux and this MS thing, but AFAIK it's more complicated than GTK (which has a Windows port too if I remember correctly).
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware IP resolution time period problem phoenixx Linux - Distributions 5 05-11-2005 07:36 PM
bit rate drops after period of time The_JinJ Linux - Wireless Networking 5 03-21-2005 01:21 PM
NTP synchronization, slewing for large period of time ? trubi Solaris / OpenSolaris 1 10-18-2004 05:26 AM
Running a program for a specific period of time CaptainHowdy Linux - Software 2 08-22-2004 07:02 PM
Only starting command in a specific time period jeroenvrp Linux - Software 3 07-20-2004 11:18 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration