Jump to content
  • Advertisement
Sign in to follow this  
MARS_999

MSVC++ .net 2005 express and collapsible blocks

This topic is 4263 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Where are the collapsible blocks for statements like switch and other keywords? I only have the ability to collapse function blocks... Thanks

Share this post


Link to post
Share on other sites
Advertisement
try:

#region put_a_region_name_here

//your code goes in here that you want to collapse

#endregion

Share this post


Link to post
Share on other sites
Sorry that didn't work.

One other question about MSVC++ .net 2005 Express edition. I am not sure but am thinking that the code you develope with it will not run on another computer? I tried to run a .exe file on my Gf's computer to see if I can figure out a bug I have and it will not even launch?

Thanks

Share this post


Link to post
Share on other sites
Quote:
Original post by Moe

#region put_a_region_name_here

//your code goes in here that you want to collapse

#endregion
Quote:
Original post by MARS_999

Sorry that didn't work.

In the VC++ editor these are pragma directives:

#pragma region RegionName

//...

#pragma endregion







Share this post


Link to post
Share on other sites
Thanks I guess I missed that, but why do I have to do that when I was using my 2003 version it did this automatically? Does the retail version of 2005 do this for you still? Thanks

Share this post


Link to post
Share on other sites
It's turned off by default in 2005:
Tools -> Options -> Text Editor -> C/C++ -> Formatting -> Automatic outlining of statement blocks.

Share this post


Link to post
Share on other sites
Tools >> Options >> Text Editor >> C/C++ >> Formatting >> Automatic Outlining of Statement Blocks

As for why your program will not run on your girlfriend's machine, it is probably because you used the DLL version of the runtime library, and the DLLs are not on your girlfriend's computer. I believe Microsoft has a package that you can redistribute with your program that will install the DLLs, or you could use the static version of the runtime library by changing the settings under Project >> MyProject Properties >> Configuration Properties >> C/C++ >> Code Generation >> Runtime Library. The /MTd option will link to the static debug library (which you should use for your Debug configuration), and the /MT option will use the non-debug version of the library (for your Release configuration).

Edit: I was a little slow. But I hope I helped with your second problem.

Share this post


Link to post
Share on other sites
My other question I didn't get an answer for, is the issue where I build an app on my system with the Express compiler and I try to run it on another computer it gives an error message right away saying

application failed to start due to incorrect application configuration? Reinstall app.

I am on Vista and using Express 2005 VC++ and try to run it on a XP machine and this happens.

Any ideas?
Thanks

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!