LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-06-2009, 01:48 AM   #1
sowmya
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
convert windows vc++ code in to kdevelop


hi
i am newer of linux...
my thread is i have vc++ code in windows...now we convert code in linux.but i donot know conversions..i am see google...to convert vc++ project in to kdevelop..but i am newer,so i am not understand pls help me any one of u

Last edited by sowmya; 03-08-2009 at 07:53 AM.
 
Old 03-06-2009, 07:20 PM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,074

Rep: Reputation: 387Reputation: 387Reputation: 387Reputation: 387
If what you want to convert is the "project" as in "the file which tells vs what source files are part of your application", I think you will need to do it manually.

If you are talking about "porting" the application to run on linux, then there's no straight answer, since we know nothing at all about your application. If the application uses standard C++ code, it should just compile fine with few or no modification. If you use vc specific stuff, directx or any other win-only marvel, then you need to rewrite some parts of it, or maybe start from scratch. It just depends on what do you meant, and how your application is written.

If it was written with portability in mind you will have a much easier time.
 
Old 03-06-2009, 07:36 PM   #3
T74marcell
Member
 
Registered: Mar 2009
Posts: 102

Rep: Reputation: 18
The difficulty level of moving the code from Windows to Linux depends on the complexity of the code. If it has a lot of Windows GUI, then it can become a pain in the ...
I am not aware of any free tool that can guarantee a 100% perfect result - there is always some amount of fiddling the source code.

Instead of moving towards KDE-coding you could also consider transferring to some toolkit like FLTK, FoxToolkit or wxWindows. These kits provide code wrappers for GUI stuff that can compile on both Windows, Linux and even Macs. You still have to convert your code, but if that's done, then you will have to maintain only one code branch (hopefully). That should make it easier in the future.

Of course, KDE also runs on Windows, but I don't know anyone who bought QT's Windows version just to build software on that platform as well (obviously, I do not know all persons on this planet :-)

Arch Linux

Last edited by T74marcell; 03-14-2009 at 02:04 AM.
 
Old 03-07-2009, 06:46 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,074

Rep: Reputation: 387Reputation: 387Reputation: 387Reputation: 387
There's also winelib, for the lazy (that doesn't mean that you aren't going to have to work a lot though).
 
Old 03-08-2009, 07:58 AM   #5
sowmya
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Original Poster
Rep: Reputation: 0
we convert vc++ project....its a scantool that means to scan the all the local area networks...this coding we use socket programming....i think...is it possible to converting linux or not...how to procede convertions...

Last edited by sowmya; 03-08-2009 at 08:00 AM.
 
Old 03-08-2009, 06:52 PM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,074

Rep: Reputation: 387Reputation: 387Reputation: 387Reputation: 387
As said, it might not be trivial. You should start trying to compile it with g++ and continue from there. The errors will tell you what the missing parts are.

I assume that it uses a GUI in Windows, you will have to reprogram from scratch that part using a graphical toolkit for linux. Usually gtk, qt, fltk, or a similar thing.

Or, as suggested previously, use winelib. In any case this can't be done with a magic wand, you are going to put effort into it if you want to succeed.

Last edited by i92guboj; 03-08-2009 at 06:54 PM.
 
  


Reply

Tags
help


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
pls convert this windows code into linux code nagendrar Programming 6 06-03-2008 08:00 AM
KDevelop Code completion lukeroseberry Linux - Desktop 0 06-19-2007 12:50 PM
code completion in kdevelop (C++) ManuPeng Linux - Desktop 1 01-28-2007 02:07 AM
convert a qt designer code in linux to run in windows shaj4848 LinuxQuestions.org Member Success Stories 0 07-27-2005 02:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration