GUI for Text Steganography C program [closed] - c

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
How to develop a GUI for my program.I have made a c program to encrypt and decrypt any secret text message. I am hiding the message in the spaces between the words.

There are some GUI frameworks for C.
GTK is one of the most used when porting Linux applications
IUP is very lightweight
other listed on Google
However, my preferred solution to to add a rich GUI to C programs in a quick way, is to use Tcl/Tk. You can separate completely your application from the interface, test the C code at your leisure using the command line and concentrate on the GUI as a separate effort.
There are two possible approaches for mixing Tcl/Tk and C:
Create an executable and call it from the Tcl/Tk GUI with [exec ... ]
Create a DLL and call the functions as tcl commands
The first approach is extremely easy but might be unsatisfactory from an esthetic point of view.
The second approach is a little bit more complex and has two variants: create a real tcl module or use [ffidl][4] to call the dll directly. This time, the second is simpler than the former.
Finally, if you need to have a single, self-contained executable you can rely on tclkit which will embed everything you need in a single executable.
P.S. I see from one of you comments that your on Windows. You can create Windows GUI directly in C (here is an old tutorial) but I can ensure you it's a real pain! If you want something more modern you have to switch to C++

To develop your GUI, you could use GTK: https://developer.gnome.org/gtk-tutorial/2.90/ .

Related

How do programs like PhotoShop, Word, etc. run forever and react to the mouse? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
This is a general question, and one that I have yet to find a good solution.
First, some pretext. I'm new to programming and all I have done (mainly anyway) are sequential programs in C.
This leads me to wonder how do big programs such as word, photoshop,visual studio etc. work.
To be less vauge, how do they remain open for one? All the programs I have written are top to bottom, the code runs and then the program terminates. Also What always user to say click save and the file writes or to click font and change the font. Clearly these operations can be performed in any order, infintely many times.
In general I do not see from my limited experiecne how real world applications are made. I want to try and make something "real" or useful, but school has not yet begun to teach me where to start.
Most desktop applications are programmed using a style called event-driven programming. In this setup, the program usually looks (at a very high level) like this:
while (true) {
wait for an event to occur.
react to that event.
}
These "events" tend to be things like mouse clicks, keyboard events, window resizings, etc. Typically, event-driven programs set up windows and attach pieces of code to them so that when an event occurs, the given piece of code can run. Each piece of code that's attached tends to look exactly like what you've seen - it executes from the top to the bottom in a normal fashion. The fact that different events can happen in different orders just means that they run when the user asks them to.
Every language and framework has their own way of handling events, so I'd recommend consulting the documentation for your favorite language / system for more details.
Hope this helps!

GUI user input through C [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I have a project (sort of) where I have to write a C program to take in user inputs and store it into a MySQL database for future retrieval.
Now, I have written the program for console mode.
I.e. it asks the user please enter a name and then the name entered by the user is stored in the database.
But, I have to do it in this way , like when the screen comes it will show
name
|--------|
|--------|<- here the user will enter his name.
|--------|
and, from here the name entered will be stored in a string variable.
I am not sure , but I think it is GUI programming.
I have no knowledge about GUI programming.
Unfortunately, I don't have much time to read a lot.
So, can you please point me to some tutorial or some resources or anything that is specifically aimed at this type of GUI programming.
I want to use the win32 API
If it is ran in the console, it is not GUI programming. If you are emulating GUI programming in the console (with text boxes, etc), it is call TUI (Text User Interface) programming.
On Unix/Linux systems one typically uses the new curses (aka "ncurses") library. On Microsoft systems, I believe the PDCurses library is the closest thing available. Using them you can set up "text" windows which have height and width measured in characters (including text input fields).
If you don't need to simulate a window system in text, then just read and write lines to stdout and stdin.

C Programming and vim [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I have practically no experience with programming outside of ide's (Microsoft Visual Studio, netbeans and eclipse) and I am beginning to learn C programming. I have adequate experience with C++ and Java. I have downloaded gVim 7.3 and am looking for some guidance on how to program in C with vim. I do not even know where to type code with vim! I am completely lost and am looking for instructions to run simple command-line programs such as hello-world (to start). Also, would notepad++ be of any use?
Somebody please show me the world of C programming and Vim
Usually its done like this - you open up a shell window, set your compile enviroment configuration. Then open any files you are working on with gvim to have a C syntax highlighting available, modify them and save. Get back to shell window repeat make command or whatever you need to compile and link application.
The usefull extension for me was ctags, which allows to browse declarations. You dont get the comfort of code completions, intelissence, on-the-fly error messages or list of function parameters, but I didnt miss that much eitherway.

Unix source code- finding my way around [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I'm quite interested in getting "stuck in" to some Unix source code, say Fedora or Ubuntu.
In practical terms, how would one "re-write" some part of the Unix OS. I presume you would need two machines, a dev machine and a tester? Would you need to re-install the OS on each modification of a .c file? How could I edit the file and re-compile it etc?
What resources are there for knowing which parts of a Unix OS/Kernel relate to which C files (I presume there is no C++) and how to find them?
Thanks in advance for help
ps my motivations for doing this are to eventually be able to learn more about the lower-level fundamentals of the Unix OS, so that I could try and get into programming high freq trading systems.
I think it would probably be a good idea to have some kind of virtual machine to experiment with, that way you could do a snapshot apply your changes but still be able to go back without much effort. Also it allows you to simulate communication between PCs in a simple fashion.
First you need to know what you're looking for. You want to download and look at the: linux kernel. Which is the same for Fedora and Ubuntu (and all other GNU Linux distributions). Second, you might want to start with something easy, like downloading the kernel, configuring and compiling it and booting it. Once you do that you can move up from there.

C Linux open source projects [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
Sorry if this has been asked elsewhere. I am a C,Win32 developer and want to learn similar stuff in the linux world. What are the best and easy opensource projects for learning similar stuff on Linux.
Like in C,Win32 world i want to start off with User space and onto advance stuff like internals,device drivers etc. I am interested in Non UI stuff. As i have a day job and work extensively on Windows i would like to see short little projects and contribute to them in free time.
The GNU coreutils are probably as low-level and as "Linux-ey" (that's not really a word, is it?) as it gets in user space. Not always easy-to-read code, but most of those sections are bugfixes of one kind or another. So, you'll learn about some pitfalls of modern unix-like systems on the way. That, and most of the basic unix programming principles.
As most utilities are very small, just trying to rewrite some only with the spec from the manpage should give you insights into Linux (or unix for that matter) no tutorial can offer.
The book Linux Device Drivers is freely available. You can get a good overview of what's going on "under the hood" reading through that book. It also has several examples of "virtual" device drivers that don't interact with actual hardware. Follow the sample code and you can create things like a driver for /dev/null, /dev/random, etc without having to worry about hardware interfaces.
The best advice would be to pick one and stick with it no matter how overwhelming it is, once you get your feet wet in it, enjoy... this is a $64,000 question -
What specific areas of C/Win32 did you enjoy most?
Was it hardware based?
Writing drivers?
No one can answer that nor expect to pick the answer for you, except yourself....
What was it that gave you a "high" in the Win32 C world...
Once you have that answer, then look for that alternative, somewhere, in the Open Source world....and relax, participate in IRC channels, forums, and engage.
You may have to re-learn using make/gcc toolchains and autotools in order to get your feet grounded...if you're comfortable with that... excellent... :)
Some will have their coding style and standards set down in stone... so pick the easy project that you feel you'll get a kick out of, and above all, ENJOY! :D
what are you interested in ?
The nice thing about linux is that the source for almost everything is available.

Resources