C++ School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a C++ Expert!

Join 300,574 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,194 people online right now. Registration is fast and FREE... Join Now!




what is release mode and how do i get to it and use it

 

what is release mode and how do i get to it and use it

bwjohns4

6 Jan, 2009 - 08:42 PM
Post #1

New D.I.C Head
*

Joined: 2 Jan, 2009
Posts: 14

in visual express 2008. also what's the difference in debug mode and release mode

User is offlineProfile CardPM
+Quote Post


Core

RE: What Is Release Mode And How Do I Get To It And Use It

6 Jan, 2009 - 09:08 PM
Post #2

Den The Developer
Group Icon

Joined: 8 Dec, 2008
Posts: 2,944



Thanked: 214 times
Dream Kudos: 900
Expert In: C#, VB.NET, .NET Framework

My Contributions
In Release mode the application code is being optimized for better performance (therefore, it is somehow not as good for debugging purposes). When in Debug mode, the application code is not optimized and contains some additional debugging information.

Also, in Debug mode, you can define a debug constant, so you can write conditional code that will only be executed while debugging.

I would not recommend distributing the debug version of the application because of the above mentioned reasons.
User is online!Profile CardPM
+Quote Post

bwjohns4

RE: What Is Release Mode And How Do I Get To It And Use It

6 Jan, 2009 - 09:36 PM
Post #3

New D.I.C Head
*

Joined: 2 Jan, 2009
Posts: 14

how do i build it in release mode
User is offlineProfile CardPM
+Quote Post

Core

RE: What Is Release Mode And How Do I Get To It And Use It

6 Jan, 2009 - 09:42 PM
Post #4

Den The Developer
Group Icon

Joined: 8 Dec, 2008
Posts: 2,944



Thanked: 214 times
Dream Kudos: 900
Expert In: C#, VB.NET, .NET Framework

My Contributions
You can switch beetween the Debug and Release modes by using the toolbar:

IPB Image
User is online!Profile CardPM
+Quote Post

bwjohns4

RE: What Is Release Mode And How Do I Get To It And Use It

6 Jan, 2009 - 10:13 PM
Post #5

New D.I.C Head
*

Joined: 2 Jan, 2009
Posts: 14

so i'm in visual c++ express with no resource editor. i did download xn resource editor. now i just don't know exactly what to do. i can make a .res file in it but how do i go about including the .res file in my project. Can I add the .res file to the resources folder. Is an .rc file a compiled .res file? do i have to have a .rc or .res file in the project or both. also how do i get a header to put in the code. very confused!!!

This post has been edited by bwjohns4: 6 Jan, 2009 - 10:22 PM
User is offlineProfile CardPM
+Quote Post

Core

RE: What Is Release Mode And How Do I Get To It And Use It

7 Jan, 2009 - 01:26 PM
Post #6

Den The Developer
Group Icon

Joined: 8 Dec, 2008
Posts: 2,944



Thanked: 214 times
Dream Kudos: 900
Expert In: C#, VB.NET, .NET Framework

My Contributions
You must have a .rc file in your project. There are also third-party tools that allow you to convert you .res file to a .rc file.
User is online!Profile CardPM
+Quote Post

Reply to this topicStart new topic

Time is now: 11/8/09 08:15AM

Live C++ Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month