|
Hi,
Whats the difference between release and debug mode.
Debug mode is enough for debugging and to build the project.THen why release mode is there?
I never use tht mode?Any tutorial about that?
|
|
|
|
|
You can't debug in the release mode.
Debug mode:
This is helpful when you want to know where is a fault in your code that is causing a crash or malfunction.
The assert macros work in the debug mode not in the release mode.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Release mode removes the dependencies and shrinks the size of the application.
Debug mode is for tracing the application.
so prefer the release builds only while deploying the application.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
You can get the brieh Description Here[^]
Cheers
"Peace of mind through Technology"
|
|
|
|
|
|
Another point is that it's illegal to sell applications that are in debug mode because they uses debug dll's also. These dll's are from microsoft and you are not allowed to distribute the debug version.
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
I find this question may be for the 100th time . Debug as it's name suggests , comes with all macros that helps you to debug your application, (ie ASSERT, TRACE ). So with all these, your .exe's size would be naturally bigger. And when you check for dependencies, you'll see it's refering to the dlls that ends with "d".. like MFC42D.dll, MSVCRTD.dll ect. But when you make your application in Release mode, it is fully optimized. Compare the size of both the .exes you'll know.
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
|
|
|
|
|
u can debug in release mode!...
just a matter of changing the settings....just check teh Generate debug info flag!....
|
|
|
|
|
one more difference that don't seem to be told here yet :
compile both debug and release mode and compare the sizes of the new .exe... seeing a difference ? (the debug version should be much bigger because it contains debug infos, the comments of your code have not been erased neither)...
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
this is crap.
it's just as if you delete this in a contructor, and initialize your object state in the destructor.
it's not what release mode is made for, so don't use it for debug !!!
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
thanks for all your comments i tried to run the undermentioned code.
::ShellExecute(NULL, (LPCWSTR)"open", (LPCWSTR)"iexplore.exe", NULL, NULL, SW_SHOWNORMAL);
it didnt work as i thought it would. secondly, it seems that it is meant for html file. whereas i am trying to do it for mp3s
please help
|
|
|
|
|
iLL eFFect wrote: whereas i am trying to do it for mp3s
So you can specify the appropriate executable for your MP3's file.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
::ShellExecute(NULL, "open", (LPCWSTR)"//Your exe here//", NULL, NULL, SW_SHOWNORMAL);
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I think the third argument of ShellExecute should be the path to your MP3 file, and not the path to executable.
In addition, instead of (LPCWSTR)"text" you should use _T("text") .
|
|
|
|
|
hi
this wat i tried:
::ShellExecute(NULL, (LPCWSTR)"open", (LPCWSTR)"c:\\airplane.jpg", NULL, NULL, SW_SHOWNORMAL);
1. somehow VS gives me error if i "open" is not associated with (LPCWSTR)
2. c:\\airplane.jpg this image did not launch
|
|
|
|
|
You have to mention the application's exe path over there :
::ShellExecute(NULL, "open", "Path to your exe", NULL, NULL, SW_SHOWNORMAL);
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
my basic idea is to launch the file in its default application, without me actually knowing it that is. so my program will actually will run anything after it launches its default application.
|
|
|
|
|
|
ShellExecute (NULL,"open","C:\\Program Files\\Winamp\\winamp.exe","D:\\Anshuman\\Songs\\abc.mp3",NULL,SW_NORMAL);
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
in this case i can only launch mp3s... or sond files. but wat incase winamp is not insatlled. or the u want to launch .doc... then wat?
wat i see as a solution is to look in registry as to wat is the default applcation is for the type of file and then launch that application(that too after searching for its path in registry) with the file name as parameter.
is there a simpler method?
|
|
|
|
|
then in this case you would have to take the path of the exe in the string and the path of the file.
Pass it in the ShellExecute function based on the extension of the file
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
thats the whole point is... how to get the path of the application....
any suggestions?
-- modified at 7:42 Tuesday 13th June, 2006
|
|
|
|
|
I think you do not need the path to executable. Just specify the path of your file, which can be MP3, JPG and so on:
ShellExecute( NULL, _T("open"), _T("c:\\myfile.mp3"), NULL, NULL, SW_SHOWNORMAL);
The system will open the default application associated with MP3 files.
|
|
|
|
|
definitely not. (
simply "open" the .mp3 file, that's all you have to do to get the default application
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
ShellExecute (NULL,"open",NULL,"c:\song1.mp3",NULL,SW_NORMAL);
Did you suggest to do this as above.
// It didn't work. No winamp or media player showing instead the folder containing the project is opened.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|