|
Thanks Steve,
But do you think the release code has any risk or issues if we remove the runtime checking code?
regards,
George
|
|
|
|
|
The check are only meant for debugging purposes. Hopefully by the time you release the product you've fixed the bugs.
Steve
|
|
|
|
|
Thanks Steve,
I got the point.
1. In beginning phase, we use debug version binary which contains more information to debug when there is issues like stack overrun. Such debug information is injected only in debug binary by compiler;
2. When we fixed all bugs in debug version, then we should use release version for deployment.
Are them your points?
regards,
George
|
|
|
|
|
That's pretty much it.
Steve
|
|
|
|
|
Cool, Steve. I also tested the PDB for release and debug are different.
regards,
George
|
|
|
|
|
Naturally. Given that the code is different and that a PDB is like a map of the contents of the application this is to be expected.
Steve
|
|
|
|
|
Thanks Steve,
It is my mistake to think we can not debug and set breakpoint for release binary. For the source code which is optimized out, we can see it in Visual Studio, set breakpoint, but never stops on them in release mode, but stops on debug mode. Correct?
regards,
George
|
|
|
|
|
In general you can set breakpoints in release builds just fine. If code is optimised out then it's never called so a breakpoint in such code will not be hit in release of debug builds.
Steve
|
|
|
|
|
Thanks Steve!
Question answered.
regards,
George
|
|
|
|
|
Setpadding() is just to set the space around each tab's icon and label. But now I want to set the space between tabs. I tried to resize each tab rect in DrawItem(). But a problem appears that OnLButtonDown() will not respond when I click near the right edge of the last tab. It seems that CTabCtrl still remain it's original rect to receive message.
Can you help me? Thanks!
|
|
|
|
|
Hi Experts,
How can I use IShellFolder to create tree like explorer?
|
|
|
|
|
|
Hi All,
I have done the dialog based application in MFC.I Have 5 dialog boxes. IDD_ANALYZER_DIALOG is my main dialog but i dont want this dialog as main dialog. I need another dialog as a main dialog.
Thanks & Regards,
Anitha
|
|
|
|
|
Make the change in the InitInstance() of your application.
#include "MyNewDlg.h"
CMyNewDlg dlg;
...
|
|
|
|
|
Look in the InitInstance of your application class (C...App with ... being the name of your project). The main window is created there, so you can replace it with the one you would like.
|
|
|
|
|
I have a bitmap that has an alpha channel for the background.
I tried using AlphaBlend, but the background was't displayed transparent.
The background was white.
This is the code that I'm using:
<br />
BLENDFUNCTION blendF; <br />
blendF.BlendOp = AC_SRC_OVER;<br />
blendF.BlendFlags = 0;<br />
blendF.SourceConstantAlpha = 255;<br />
blendF.AlphaFormat = AC_SRC_ALPHA;<br />
<br />
POINT p; p.x=p.y=23; DPtoLP(hdcMem, &p, 1); <br />
AlphaBlend(lpdis->hDC, <br />
x, y, bm.bmWidth, bm.bmHeight, <br />
hdcMem,<br />
0, 0, <br />
p.x,p.y, <br />
blendF); <br />
Am I doing something wrong?
danginkgo
|
|
|
|
|
danginkgo wrote: blendF.SourceConstantAlpha = 255;
I think problem is value 255 which is opaque
0 value is complete transparent
Try to specify some other value in range 0-255.
I hope it helps.
Regards,
Sandip.
|
|
|
|
|
I tried other values but it did't display the way I need.
I want only the background to be complete transparent.
The rest of the image must be opaque.
danginkgo
|
|
|
|
|
You are not doing anything to background so how it will be transparent.
This function will only affect the way source bitmap is combined with destination (background).
and if you don't want background why are you drawing it??
Regards,
Sandip.
|
|
|
|
|
Ok,
How can I draw the bitmap without the background?
danginkgo
|
|
|
|
|
danginkgo wrote: How can I draw the bitmap without the background?
What do you mean?
From your post understood following
1. There is a background
2. There is a bitmap which you need to draw on that background isn't it??
Can you explain what are you doing exactly??
Regards,
Sandip.
|
|
|
|
|
OK,
For example,
I want to display the bitmap on a red background.
The bitmap image has also a background ( a black pen on a gray background ).
I want the bitmap background to be transparent, so the image (black pen)will apear on red background.
danginkgo
|
|
|
|
|
Then you have to go for option given by Paresh i.e. TrasparentBlt.
Regards,
Sandip.
|
|
|
|
|
OK, thanks
danginkgo
|
|
|
|
|