|
Hi Naveen
Thanks for your response!
I think that DebugBreak() is what I need.
Do you know some other function like this to insert break point in the code?
I'm really interested in it, with particual attention (if existing) to DATA breakpoint ( the one triggered when a value change at a certain address ).
|
|
|
|
|
manustone wrote: Do you know some other function
No, except the one that i already told __asm int 3;
manustone wrote: breakpoint ( the one triggered when a value change at a certain address ).
sorry.I dont know any such functions and i dont think there is any.
nave
|
|
|
|
|
Many thanks Naveen
Have a nice day
Manu
|
|
|
|
|
Also you can consider conditional compilation using #ifdef/#endif/#define preprocessor macros, instead of finding tricks and hacks to use breakpoint at runtime.
|
|
|
|
|
Hi Link2006
I think that what I need is ( suggested by others developer) to use DebugBreak() in my code. I think that also combining DebugBreak with conditional compile allow me to create some special condition when to call DebugBreak().
Did you mean this way or simply create #ifdef #endif with a breakpoint in the middle?
|
|
|
|
|
Runtime and release build is not equivalent.
|
|
|
|
|
I am trying to compile some cpp files which have 2 byte chars (something like C:\日本\myfile.cpp) in its path but I am unable to compile it with VS 2005. Is there any way to compile it ?
You must be thinking why I need 2 byte chars in folder name ? Actually there is some crash in application at launch time if folder have 2 byte chars, I want to debug the same. Please help if some one know the way to debug it with VS 2005.
Manish Agarwal
manish.k.agarwal @ gmail DOT com
|
|
|
|
|
What is the exact error you are getting? I just tried the same and go the following
BSCMAKE: error BK1506 : cannot open file '.\Debug\????.sbr': No such file or directory
|
|
|
|
|
That's VC6 output, isn't it?
--
This episode performed entirely by sock puppets
|
|
|
|
|
It sounds like the compiler is still using byte-oriented character sets in this area. It might work if you were trying to compile with a Japanese version of Windows.
You could try compiling in the normal location, then adding a post-build step to copy the final executable (and its .pdb file) to the location that is causing the problem. Then, in Project Properties, Configuration Properties, Debugging, set the 'Command' to be the path you need the program to run from. Or, simply set the Output Directory (in Configuration Properties, General) to be the path that has the problem, although the linker might struggle with this.
|
|
|
|
|
I have found that exculding the creation of a sbr file for that single file works, but it hampers debugging. I also tried replacing the BSCMAKE.exe with that from VC6, but it complained too much. It looks like the filename is saved as a utf8 encoded string within the .sbr which is correct.
|
|
|
|
|
I want to load all images from a folder. I can used CFineFile to search all the files in the folder. But the CImage.Load function does not read the directory function, so I have to change the current working directory before loading the image.
|
|
|
|
|
either use full path name by merging the directory name with the filename, or you can use BOOL SetCurrentDirectory( LPCTSTR lpPathName); to change the current working folder
the first method is preferable.
Mohammad
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
Do you need to GetCurrentDirectory and SetCurrentDirectory or you need to FindFirstFile for read files
|
|
|
|
|
I did check all the functions yesterday but I just couldn't find the SetCurrentDirectory. Anyway, it works today. Thank you all guys.
|
|
|
|
|
SetCurrentDirectory might be confusing to the user. Consider using PathCombine to get an absolute, rather than relative, path.
|
|
|
|
|
|
why am i getin error when declaring control variables through ddx
|
|
|
|
|
arshadkc wrote: why am i getin error when declaring control variables through ddx
what error?
How are you going along with the declaration of variables?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Error is Memory could not be read
I'm tryin to declare variable for a button through class wizard
|
|
|
|
|
You get this error on all your projects or in this project
|
|
|
|
|
ya most time i am getin this error in my other projects also
but when i'm not declaring variable through ddx i am not getin error here
|
|
|
|
|
show off a piece of the code you wrote...
|
|
|
|
|
In debug mode i am getin error as unhandled exception and accec violation at statement
lResult = pWnd->WindowProc(nMsg, wParam, lParam);
in funtion AfxCallWndProc
|
|
|
|
|
What error (e.g., compiler, linker, exception, assertion)? What does the DDX statement look like? Is the variable present in the class' definition?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|