When I try to do that I get the following error:
Changes to 64-bit applications are not allowed.
When I try to do that I get the following error:
Changes to 64-bit applications are not allowed.
Oh btw, I found the following:
If you are debugging a 64-bit application and want to use Edit and Continue, you must change the target platform and compile the application as a 32-bit application. You can change this setting by opening the Project Properties and going to the Compile page. On that page, click Advanced Compile Options and change the Target CPU setting to x86 in the Advanced Compiler Settings dialog box. Link
But I dont see the Target CPU setting...
Apparently it does as it also shows as a 64bit application in task manager when I run it..
Strange, I am getting conflicting information.. MS says it does..
However, that error message clearly says otherwise..
Can you create a new 64bit application from scratch?
for what it's worth, devenv.exe is 32-bit. and targetting x86 makes it's 32-bit program anyway.
@Darren,
I think your missing the point, SilverViper is trying to work on a 64bit app.. You should still be able to compile 64bit code within the devenv..
@SilverViper
I'll check this out when I am home where I have access to VS2008.
It doesn't have to be a 64bit program, actually, I rather prefer it to be 32bit anyway since it is more like a utility and it should work on 32bit systems.
Also, I'm running Vista at 64bit. Maybe that has something to do with it?
@Rob Cooper: Now I think of it, I never had the chance of selecting either a 64bit or a 32bit application when creating the solution/project/application... And according to your link "64-Bit Debugging (X64)" is possible with MS VB2008 express edition.
Please see my first comment on this question, it's not there... Somehow... I can select Target framework though (2.0, 3.0 and 3.5), not that I see any use of that for this particular problem...
You could try:
In Visual Basic 2008 Express Edition: Build menu > Configuration Manager...
Change Active solution platform: to "...", choose "x86", save the new platform.
Now the "x86" option is available in the Compile settings.
You may need to enable "Show advanced build configurations" first, in Tools > Options > Projects and Solutions > General
(from this post on MSDN forums)
@Wilka: That option wasn't available until I selected Tools > Options > Projects and Solutions > General and check "Show advanced build configurations". Though I found this hint from your MSDN link. So if you edit your comment, I can make it the accepted answer...
Thanks everybody!
It's sucky that the answer is to the question
How do I enable Edit and Continue on a 64-bit application?
is
You can't.
it works thank you so much
If you are debugging a 64-bit application and want to use Edit and Continue, you must change the target platform and compile the application as a 32-bit application. You can change this setting by opening the Project Properties and going to the Compile page. On that page, click Advanced Compile Options and change the Target CPU setting to x86 in the Advanced Compiler Settings dialog box.