Sign in to follow this  
MARS_999

MSVC++ .net 2005 express and collapsible blocks

Recommended Posts

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this