C Board  

Go Back   C Board > General Programming Boards > C Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 07-20-2008, 05:17 PM   #1
Registered User
 
Join Date: May 2008
Posts: 23
Convirt my C program to a GUI application/Web Application

I have a C source file which takes two image file as its input as command line arg and one image file as output. I have developed the C program on linux now I want to develope a windows application using that c source with two inputs (Type = file) and one output file displayed. What should I do? what to implement? Visual studio 2005 can serve the purpose?
kapil1089thekin is offline   Reply With Quote
Old 07-20-2008, 05:26 PM   #2
Deathray Engineer
 
MacGyver's Avatar
 
Join Date: Mar 2007
Posts: 3,211
You can use Visual Studios to develop a GUI, but you don't need to use that.

As a warning, Windows programming -- and GUI programming in C -- is quite a different ballgame than standard console programming. You might be best off using a GUI library that will make your program more portable.
__________________
MacGyver is offline   Reply With Quote
Old 07-20-2008, 05:29 PM   #3
Registered User
 
Join Date: May 2008
Posts: 23
plz let me know exactly what can i do to make the program more robust/prtable on the Linux platform?--Keeping in mind of the C source text file is developed, I won't like to change the code there.
kapil1089thekin is offline   Reply With Quote
Old 07-20-2008, 05:35 PM   #4
Deathray Engineer
 
MacGyver's Avatar
 
Join Date: Mar 2007
Posts: 3,211
How do you intend to make your program into a GUI program from a console program without changing the source? More than likely you'll have to change something unless you thought exactly how you were going to interface the GUI code and the rest of the code.

You can try using GTK+, or a number of other libraries. Search for one via google or elsewhere that fits your need.
__________________
MacGyver is offline   Reply With Quote
Old 07-20-2008, 08:40 PM   #5
Jack of many languages
 
Join Date: Nov 2007
Location: Katy, Texas
Posts: 1,929
Quote:
Originally Posted by MacGyver View Post
How do you intend to make your program into a GUI program from a console program without changing the source? More than likely you'll have to change something unless you thought exactly how you were going to interface the GUI code and the rest of the code.
If it were me, I would write a front-end GUI wrapper that gathered the input from the user and then called the original program as a command line program. That way, no changes are needed to the original. That could be done simply in Visual Basic.
__________________
Mac and Windows cross platform programmer. Ruby lover.

Memorable Quotes From Recent Posts:

I can't remember.
Dino is offline   Reply With Quote
Old 07-20-2008, 08:42 PM   #6
Deathray Engineer
 
MacGyver's Avatar
 
Join Date: Mar 2007
Posts: 3,211
Yes, as long as the GUI doesn't need to receive information from the console programs, that is fine, and, I suppose, probably what the OP is thinking.
__________________
MacGyver is offline   Reply With Quote
Old 07-21-2008, 01:43 AM   #7
Registered User
 
Join Date: May 2008
Posts: 23
How to make the GUI Wrapper

How to make the GUI Wrapper using Visual Basic?
I have microsoft Visual Studio 2005.
Say my program in c is named as myprogram.c and in linux i compile program as:
./a.out 1st.bmp 2nd.bmp output.bmp
.................................................. .................................................. ...........................

Last edited by kapil1089thekin; 07-21-2008 at 01:46 AM.
kapil1089thekin is offline   Reply With Quote
Reply

Tags
c program, gui, visual

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Windows GUI Application " The system cannot find the file specified" bobbelPoP Windows Programming 18 05-26-2008 11:23 PM
Using C++ for GUI with Database Application bugmenot Windows Programming 7 12-14-2005 08:24 PM
Date program starts DOS's date jrahhali C++ Programming 1 11-24-2003 05:23 PM
How To Convert A Dos-Prompt C++ PRogram Into Win32 Application ? SonicWave Windows Programming 1 09-15-2001 11:03 AM
My program, anyhelp @licomb C Programming 14 08-14-2001 10:04 PM


All times are GMT -6. The time now is 05:15 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22