473,498 Members | 1,807 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Visual Studio is a platform Independent??

I am new to vc++. Whether Visual Studio is a platform independent?

Is there any chance of using my application created by vc in MAC or
Linux.

udhay

Mar 27 '07 #1
12 5422
Udhay wrote:
I am new to vc++. Whether Visual Studio is a platform independent?
Nope.
Is there any chance of using my application created by vc in MAC or
Linux.
Not unless you use wine for linux.

Regards,
Stuart
Mar 27 '07 #2
"Udhay" <ud*********@gmail.comwrote in message
news:11**********************@n59g2000hsh.googlegr oups.com...
:I am new to vc++. Whether Visual Studio is a platform independent?
:
: Is there any chance of using my application created by vc in MAC or
: Linux.

You cannot use Visual Studio to compile applications for other
desktop platforms.
If you write your source code carefully, and only use standard
C++ and cross-platform libraries, the code that you write
with Visual Studio can be compiled and used on another platform.

-Ivan
--
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form
Mar 27 '07 #3
On Mar 27, 12:34 pm, "Udhay" <udhyakum...@gmail.comwrote:
Is there any chance of using my application created by vc in MAC or
Linux.
If you are looking for a platform independent C++ frame work, Qt is a
good option

-Sunil

Mar 27 '07 #4
On Mar 27, 1:54 pm, "Sunil Thaha" <sunil.th...@gmail.comwrote:
On Mar 27, 12:34 pm, "Udhay" <udhyakum...@gmail.comwrote:
Is there any chance of using my application created by vc in MAC or
Linux.

If you are looking for a platform independent C++ frame work, Qt is a
good option

-Sunil
to built interoperable apps for linux, mac and win, you can use qt
library that provides rich gui, database access,
xml read/write and whatnot. you will hovewer need to recompile for
linux and mac from outside vc, but the code is
like 100% reusable for those three platforms.

Mar 27 '07 #5
On Mar 27, 11:30 pm, pawel.ku...@gmail.com wrote:
On Mar 27, 1:54 pm, "Sunil Thaha" <sunil.th...@gmail.comwrote:
On Mar 27, 12:34 pm, "Udhay" <udhyakum...@gmail.comwrote:
Is there any chance of using my application created by vc in MAC or
Linux.
If you are looking for a platform independent C++ frame work, Qt is a
good option
-Sunil

to built interoperable apps for linux, mac and win, you can use qt
library that provides rich gui, database access,
xml read/write and whatnot. you will hovewer need to recompile for
linux and mac from outside vc, but the code is
like 100% reusable for those three platforms.
An alternative to Qt is wxWidgets (www.widgets.org), which is free of
charge even for commercial applications.


Mar 28 '07 #6
On Mar 28, 11:53 am, "pretus" <vinicius.lobo...@gmail.comwrote:
On Mar 27, 11:30 pm, pawel.ku...@gmail.com wrote:
On Mar 27, 1:54 pm, "Sunil Thaha" <sunil.th...@gmail.comwrote:
On Mar 27, 12:34 pm, "Udhay" <udhyakum...@gmail.comwrote:
Is there any chance of using my application created by vc in MAC or
Linux.
If you are looking for a platform independent C++ frame work, Qt is a
good option
-Sunil
to built interoperable apps for linux, mac and win, you can use qt
library that provides rich gui, database access,
xml read/write and whatnot. you will hovewer need to recompile for
linux and mac from outside vc, but the code is
like 100% reusable for those three platforms.

An alternative to Qt is wxWidgets (www.widgets.org), which is free of
charge even for commercial applications.
I mean www.wxwidgets.org, sorry.

/Vinicius

Mar 28 '07 #7

"Sunil Thaha" <su*********@gmail.comschrieb im Newsbeitrag
news:11**********************@n59g2000hsh.googlegr oups.com...
On Mar 27, 12:34 pm, "Udhay" <udhyakum...@gmail.comwrote:
>Is there any chance of using my application created by vc in MAC or
Linux.

If you are looking for a platform independent C++ frame work, Qt is
a
good option
If you prefer a LGPL solutino, that is C++ only, but features the
exact same, gtkmm is the way.
Mar 28 '07 #8
Dnia Tue, 27 Mar 2007 10:02:11 +0200, Ivan Vecerina napisa³(a):
You cannot use Visual Studio to compile applications for other
desktop platforms.
If you write your source code carefully, and only use standard
C++ and cross-platform libraries, the code that you write
with Visual Studio can be compiled and used on another platform.
But what about C++ runtime and C++ implementation? What about
executable formats? Portable libraries isn't enough. Is VS linker
able to produce executables for Linux? [ELF] Is it able to use
other runtime C++ implementations than "MSVCRT & Co."?

I think better for OP is to use GCC, because of its port for
Windows platform [MinGW and Win32 binutils]. Even on Linux
it's impossible to use one compiler front-end to generate code
for Windows - one have to have separate binutils, compiler
front-end and rutime library for Windows to generate Windows
executables on Linux [it's called "cross-compiling"].

I doubt MSVS could cross-compile for other platforms than Windows.

--
SasQ
Mar 28 '07 #9
Is there any chance of using my application created by vc in MAC or
Linux.
You might be able to port "managed C++" applications using Mono. Mono
implements the .NET framework on Linux and Mac.

--
EventStudio 4.0 - http://www.EventHelix.com/EventStudio
Model in Plain Text; Generate Sequence Diagrams in PDF/Word

Mar 29 '07 #10
On Mar 28, 8:09 pm, SasQ <s...@go2.plwrote:
Dnia Tue, 27 Mar 2007 10:02:11 +0200, Ivan Vecerina napisa³(a):
You cannot use Visual Studio to compile applications for other
desktop platforms.
If you write your source code carefully, and only use standard
C++ and cross-platform libraries, the code that you write
with Visual Studio can be compiled and used on another platform.
But what about C++ runtime and C++ implementation?
What about them? I have a lot of C++ code which works under
Solaris (Sparc), Linux (PC) and Windows (PC). Including some
complete "applications". As Ivan said, if you use only standard
components and cross-platform libraries, there's no reason why
it won't work. (I actually develop mostly under Unix, and port
to Windows, but there's no reason why the other direction won't
work just as well.)
What about
executable formats?
What about them? C++ almost always compiles to directly
executable code, which is platform specific. He'll obviously
have to recompile with a native compiler for each platform.
Portable libraries isn't enough. Is VS linker
able to produce executables for Linux? [ELF] Is it able to use
other runtime C++ implementations than "MSVCRT & Co."?
Ivan clearly said that you have to rebuild your application for
each platform. You don't use VC++ to build for Linux, any more
than you'd use g++ to build a native application for Windows.
(In the case of g++, you can, of course, but VC++ works much
better on that platform.)
I think better for OP is to use GCC, because of its port for
Windows platform [MinGW and Win32 binutils].
My experience is that it is less well integrated into the
Windows environment, and that it is better to use VC++ under
Windows, g++ under Linux, and often, the native C++ compiler
under other Unices (although g++ sometimes has the edge there).

I would take a hard look at the build environment. I don't
think that a Visual Studios project is directly exportable, and
I'm not sure if their makefiles are compatible with anything
else. I find makefile compatibility to be a serious problem,
and I do install GNU make everywhere, originally for portability
reasons, but I've gradually come to use its more complex
features to create a complete build system. Similarly, I've
never written a real application where there wasn't some
automatically generated code, generally using AWK, so I'll also
install a Unix look-alike toolkit (MSys, or possibly UWin).
Even on Linux
it's impossible to use one compiler front-end to generate code
for Windows
G++ uses the same front-end for all of its platforms.
- one have to have separate binutils, compiler
front-end and rutime library for Windows to generate Windows
executables on Linux [it's called "cross-compiling"].
I doubt MSVS could cross-compile for other platforms than Windows.
Visual Studios isn't sold as a cross-compiler.

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

Mar 29 '07 #11
Is there any chance of using my application created by vc in MAC or
Linux.
I have been succesfully developing cross-platform applications for a
number of years (Linux/Windows and on good days Mac) using the
following tools and libraries:

Compiler: g++ / Visual Studio
Build system: Custom on linux & Mac / Visual Studio standard solution
for Win32
Source Control: Subversion
User Interface: FLTK (http://www.fltk.org/)
3d/2d graphics: OpenGL (www.opengl.org, www.nvidia.com, www.ati.com)
OpenGL extentions interface: Glew (http://glew.sourceforge.net/) /
Glee (http://elf-stone.com/glee.php)
Light weight Opengl API Interface(fltk also provides an Opengl
Context): GLUT (http://www.xmission.com/~nate/glut.html)
Threading : pthreads / pthreasWin32 (http://sourceware.org/pthreads-
win32/)
Dynamic Loading, runtime loading of shared objects/Dll's : libtools
http://www.gnu.org/software/libtool/manual.html & a custom libtools
for win32

You may also want to investigate other options such as cygwin(http://
cygwin.com/) and mingw(http://www.mingw.org/). Both provide Unix like
environments under Windows. Cygwin is heavy and full featured, mingw
is more light weight.

Good luck

Marc

Mar 29 '07 #12
"SasQ" <sa***@go2.plwrote in message
news:pa****************************@go2.pl...
: I doubt MSVS could cross-compile for other platforms than Windows.

I'm pretty sure that the Microsoft XBox (1 & 360) development
environment is based on Visual Studio.

MSVS can use pluggable compilers, just as any other environment -- but
of course with a limited, Microsoft-driven selection.

--
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form

Mar 29 '07 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
6147
by: Martin Bless | last post by:
The good news: Along with Python-2.4 comes really good news to Windows users. Yes, you now CAN build extension modules yourself using the SAME C++ compiler and linker Python is built with...
1
1728
by: Craig Skrabacz | last post by:
I originally had VB.Net standard installed on my computer. I have subsequently installed Visual Studio .Net 2002 on my computer. I have not uninstalled VB.Net. When I look in my Add/Remove...
63
5821
by: Jerome | last post by:
Hi, I'm a bit confused ... when would I rather write an database application using MS Access and Visual Basic and when (and why) would I rather write it using Visual Studio .Net? Is it as easy...
11
6801
by: olle | last post by:
Hi everyone. I am an Access developer having worked with Access-dev. projects for many years on Sql server databases and Access. For the internet I have been using traditional asp. But now I have...
32
1776
by: noid droid | last post by:
Hi. I've not used C# yet but just ran across a premonition from 2 years ago saying that C# would render C++ obsolete by this time. Has it? Have most corporate developers migrated to C#? Is...
3
2623
by: Allan | last post by:
I work for a company that has UDB 8.1 which is currently used to access DB2 databases on Z/OS mainframe and also distributed DB2 databases on Unix platform. We are moving some of the application...
3
1670
by: robin9876 | last post by:
Is it possible to install Visual Studio 2003 and 2005 on the same pc?
123
4180
by: Lane Straatman | last post by:
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <complex.h> /* double complex z1, z2, z3; bool flag; z1 = .4 + .7I; z2 = cpow(z1, 2.0); z3 = z1 * z1;
0
6645
by: marathoner | last post by:
I am currently migrating my Visual C++ 6.0 applications to Visual Studio 2005. I am getting compiler errors involving the VS2005's platform SDK. When I removed directory references to that SDK,...
0
7124
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6998
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7163
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7200
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7375
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4904
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4586
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3090
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.