473,513 Members | 3,208 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Visual Studio Express 2008 - Target Platform

I've developing on xp64, and from a couple other topics I'm supposed to
change my target platform to X86 if i wanna do some specific 32bit stuff.

However, the option is supposed to be in Project properties - build tab...
but it's not there, where did it go? Do I have to do something specific to
my project for it to show?

Thanks
Jan 4 '08 #1
9 24405
Jono <Jo**@discussions.microsoft.comwrote:
I've developing on xp64, and from a couple other topics I'm supposed to
change my target platform to X86 if i wanna do some specific 32bit stuff.

However, the option is supposed to be in Project properties - build tab...
but it's not there, where did it go? Do I have to do something specific to
my project for it to show?
Hmm... on my box (x86) it's under "Define DEBUG constant" and "Define
TRACE constant" as a "Platform target: " dropdown. What's on your Build
tab?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
Jan 4 '08 #2
You don't see a dropdown box for "platform target" in the first section
(General)? What do you see in that section? What version of Visual Studio
are you using?

RobinS.
GoldMail, Inc.
---------------------------------
"Jono" <Jo**@discussions.microsoft.comwrote in message
news:72**********************************@microsof t.com...
I've developing on xp64, and from a couple other topics I'm supposed to
change my target platform to X86 if i wanna do some specific 32bit stuff.

However, the option is supposed to be in Project properties - build tab...
but it's not there, where did it go? Do I have to do something specific
to
my project for it to show?

Thanks
Jan 4 '08 #3
Here's my build options screen
http://img.photobucket.com/albums/v2...008options.jpg

Here's my about box
http://img.photobucket.com/albums/v210/retrad/about.jpg

I downloaded the VS Offline Install from here
http://www.microsoft.com/express/download/default.aspx

I'm using Windows XP 64bit edition

I installed the Visual C# and DirectX SDK (Nov 07) and am getting a not a
win32 application exception, but there's a post on here from about last week
saying I need to change my target platform option to x86 to do that kinda
stuff however... I can't. The help gives me a command line option to specify
the platform, but then goes on to say that this option is not valid inside
the IDE.

"Jon Skeet [C# MVP]" wrote:
Jono <Jo**@discussions.microsoft.comwrote:
I've developing on xp64, and from a couple other topics I'm supposed to
change my target platform to X86 if i wanna do some specific 32bit stuff.

However, the option is supposed to be in Project properties - build tab...
but it's not there, where did it go? Do I have to do something specific to
my project for it to show?

Hmm... on my box (x86) it's under "Define DEBUG constant" and "Define
TRACE constant" as a "Platform target: " dropdown. What's on your Build
tab?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
Jan 4 '08 #4
Jono <Jo**@discussions.microsoft.comwrote:
Here's my build options screen
http://img.photobucket.com/albums/v2...008options.jpg

Here's my about box
http://img.photobucket.com/albums/v210/retrad/about.jpg

I downloaded the VS Offline Install from here
http://www.microsoft.com/express/download/default.aspx

I'm using Windows XP 64bit edition

I installed the Visual C# and DirectX SDK (Nov 07) and am getting a not a
win32 application exception, but there's a post on here from about last week
saying I need to change my target platform option to x86 to do that kinda
stuff however... I can't. The help gives me a command line option to specify
the platform, but then goes on to say that this option is not valid inside
the IDE.
Hmm. My guess is that it's something which the Express edition doesn't
allow, but that's only a guess.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
Jan 4 '08 #5
oh, i mean the command line parameter is not a valid option, it goes on to
say to use the options screen to change the target platform...

i guess i gotta get a virtual machine loaded somewhere and do my development
on there, which is really annoying

"Jon Skeet [C# MVP]" wrote:
Jono <Jo**@discussions.microsoft.comwrote:
Here's my build options screen
http://img.photobucket.com/albums/v2...008options.jpg

Here's my about box
http://img.photobucket.com/albums/v210/retrad/about.jpg

I downloaded the VS Offline Install from here
http://www.microsoft.com/express/download/default.aspx

I'm using Windows XP 64bit edition

I installed the Visual C# and DirectX SDK (Nov 07) and am getting a not a
win32 application exception, but there's a post on here from about last week
saying I need to change my target platform option to x86 to do that kinda
stuff however... I can't. The help gives me a command line option to specify
the platform, but then goes on to say that this option is not valid inside
the IDE.

Hmm. My guess is that it's something which the Express edition doesn't
allow, but that's only a guess.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
Jan 4 '08 #6
Jono <Jo**@discussions.microsoft.comwrote:
oh, i mean the command line parameter is not a valid option, it goes on to
say to use the options screen to change the target platform...

i guess i gotta get a virtual machine loaded somewhere and do my development
on there, which is really annoying
You may be able to put it in the project (.csproj) file, even if you
can't access it in the UI.

For instance, find a section like the one below, and include the
<PlatformTargetelement (which won't currently be there, I suspect):

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' ==
'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>

I *hope* this would work...

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
Jan 4 '08 #7


"Jon Skeet [C# MVP]" wrote:
You may be able to put it in the project (.csproj) file, even if you
can't access it in the UI.

For instance, find a section like the one below, and include the
<PlatformTargetelement (which won't currently be there, I suspect):

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' ==
'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>

I *hope* this would work...

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
Thanks Jon, worked like a charm
Jan 4 '08 #8
Hello Jono,
I've developing on xp64, and from a couple other topics I'm supposed
to change my target platform to X86 if i wanna do some specific 32bit
stuff.

However, the option is supposed to be in Project properties - build
tab... but it's not there, where did it go? Do I have to do something
specific to my project for it to show?

Thanks
Juno;

AFAIK, you cannot target 64bit with the express editions, so there is no
need for an option for x86.

Karl
Jan 8 '08 #9
"Karl Mitschke" <km*******@somestate.govwrote in message
news:70**************************@msnews.microsoft .com...
Hello Jono,
>I've developing on xp64, and from a couple other topics I'm supposed
to change my target platform to X86 if i wanna do some specific 32bit
stuff.

However, the option is supposed to be in Project properties - build
tab... but it's not there, where did it go? Do I have to do something
specific to my project for it to show?

Thanks

Juno;

AFAIK, you cannot target 64bit with the express editions, so there is no
need for an option for x86.

Karl

Unfortunately, the default target for a C# project is MSIL (AnyCPU) , which
means it will run as 64-bit on a 64-bit OS.
This is particularly bad, as you can't load a 32-bit DLL in a 64-bit
process, which is what the OP is trying to do.
Choosing MSIL as default target was a big mistake, the default target
should have been X86, which is valid for +99% of the systems targeting the
CLR.

Willy.

Jan 8 '08 #10

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

Similar topics

2
387
by: Bootstrap Bill | last post by:
A new Google group has been formed for the purpose of discussing the new Visual Studio Express products. http://groups-beta.google.com/group/Visual-Studio-Express The products are currently in...
2
1236
by: R.H. | last post by:
I only have a dialup connection and I was wondering if someone knows where I can buy the CD or DVD with the new Visual Studio Express versions. I would download them, but it would take weeks at...
0
1143
by: olrt | last post by:
Hello, I installed 4 monthes ago Visual C# Express,VB.NET Express and Web Developer Express. I followed the classic install from the Internet installation procedure. I would like to know if...
1
2155
by: sundarvenkata | last post by:
Is multi-targeting possible using Visual Studio Express? If not, do I have any other options to target a 1.1 framework using Visual Studio Express? Thanks for your help, Sundar
3
3094
by: =?Utf-8?B?Rmxhc2hwcm8=?= | last post by:
i have googled this question but cannot find an answer. i'm running windows vista and i'm using Visual Basic Express 2008. i know the build event button SHOULD be in under the compile tag but i...
0
1141
by: Nicopilami | last post by:
Hi, i'm using Visual Studio WebDevelopper 2008 express all the day, and i would like to install some add in i've found, to write and manage javascript scripts more easily :...
3
3936
MrPickle
by: MrPickle | last post by:
I am having trouble compiling with Visual Studio Express 2008 on Vista-64bit. I read that I must configure VS to compile for 64-bit but I did not have this option because that option is only...
15
3748
by: chicane | last post by:
I am using VS2008 and I trying to use the Range Validator for the following: I have a text box that a user will input a date into for an appointment - the date entered must be at least 7 days...
0
1239
by: usmanhalalit | last post by:
Hi. I need a free reporting tool for Visual Studio Express Edition 2008. I need an alternative of Crystal Report or Active Report which is easy to use and integrated with application. Any ideas?...
0
7254
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
7153
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
7432
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...
1
7094
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5677
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3230
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
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1585
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.