Creating a GUI on ubuntu for software written in C [closed] - c

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I'm doing a sniffing project and almost done with it. We are now planning to create a GUI for it. We have written the entire network programming project in C language on Ubuntu 10.10 platform. Any idea/tools with tutorials regarding how to create a GUI for these C programs?
Will the language/tool/platform used for creating the GUI affect the C source code?
Thank you

There are different libraries for creating GUI applications in Linux.
There is GTK+, which is the native widget toolkit for GNOME and which has a C API. There is also Qt which has a very good C++ API, and which is also available for Windows, Mac OS X and other platforms.

I would suggest using GTK+ . It was natively written in C so compatibility shouldn't be an issue. I used this to help me learn it when i was messing around with it.

Related

Programming language or library for simple GUI? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
What is a programming language to make program with a GUI. I know there is a way to make a GUI using C in Windows, but I want to program with Linux and make my programs compatible with other OS's as well. Any recommendations?
If all you want to do is make a GUI, why don't you just use HTML?
Alternatively, if you really want it to be a more native app, maybe consider Java.
I know there is a way to make a gui with C in windows but I want to program with Linux
Who told you that you can't write a GUI app in C on Linux...
Also, for whipping up quick GUIs, there's wxPython.
You cannot create a GUI using the standard C library. You can make one with an external library though.
With OpenCV, it is possible to make a GUI, and there is a large community behind the project. You can find lots of code examples and tutorials on their website. In addition, you can use OpenCV for lots of other computer vision related things.
You could also use GTK+ to write a GUI for your program. It is very simple, and easy to use for beginners. It's more focused on graphics though, and if you want another functionality required by an external library, you might not be able to use GTK+.

socket library for MS-DOS (C language) [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I need to write client and server applications for MS-DOS using C language.
I don't want to start from scratch and implement sockets.
Can you advice me library in which socket functionality is implemented and for which exist good manuals and examples.
I already tried mTCP library: I got source files from it, added sources from example file and tried to Compile in Turbo C, but it raises a lot of errors it will be very hard task for me to cope with them.
Try libnet. According to it's web page (http://libnet.sourceforge.net/) it supports DOS systems (djgpp compiler), though I personally haven't tried it on DOS.
There is also WATTCP: http://www.erickengelke.com/wattcp/
Have you tried that?

Looking for embedded project with source code [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I have embedded developement board (LPCXXXX) with me. I would like to do various experiments with that. I am not getting experiment ideas.
Please suggest me some good websites where I will get some good project/experiment ideas. I am looking for embedded system projects with source code in internet.
I am unable to find it.
Please help me where I will get embedded system project with source code (Video tutorial is an added advantage)
:-In tag I have added C because I did not find EmbeddedC tag.
Try Martin Thomas's ARM Projects site for a number of projects specifically for various LPC devices and also other ARM micro-controllers which could easily be adapted for LPC.
That's a rather broad question as you don't give much about what aspects of the embedded project you're looking for. The Kernel? The OS (making it small with things like busybox)?
But one good reference might be the Raspberry Pi project you might have heard about recently. It has it's linux kernel published, along with all the necessary OS components.

graphics in C for learning [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I want to develop some graphical application in C using gcc compiler on Linux.
Which graphics library shall I use to start with? How can I start developing graphics appication on Linux using C?
If you are talking about straight graphics look at:
SDL
GGI (very simple)
If you are talking GUI, QT would certainly be your best bet.
SDL -- http://www.libsdl.org/
Very straightforward to use, and powerful.
If you want pure C (vs C++), there's SDL: SDL, a standard in C library.
If you like C++, there's also SFML: SFML

looking for information on porting Linux apps to windows [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Today I've encountered a very good book : UNIX to Linux® Porting: A Comprehensive Reference
By Alfredo Mendoza, Chakarat Skawratananond, Artis Walker
This reminded me of the thing I always wanted to know. "Porting Linux apps to Windows". I mean porting native Linux apps to native Windows with no platforms involved.
If I can find any good book which explains this topic. I've lot of amazing linux command line tools in mind which needs a windows port.
Please point me to relevant articles/tutorials/books.
PS: please don't tell me to use linux emulation platforms like Cygwin.
Well, MinGW is possibly an API you're looking for, if you don't want to use emulation platforms. It provides compatibility between Unix and Win32 apps, and implements some of the win32 API. I'm using it myself for compiling the ns-3 simulator which is designed to run on *nix systems and Cygwin. You still need precompiler statements in there to access certain Win32 features where needed, or to modify macro / function names for cross-compatability. For instance, Sleep(..) exists but sleep(..) doesn't. There is also no usleep(..). I think this API just makes life easier for the application porter without any downsides.
MSYS & MinGW are two things that are required for porting apps from Linux to Windows.
Alternative way is to use Cygwin. But I don't consider it as 100% porting because it adds dependencies of Cygwin.

Resources