|
The easiest way would be to compare the generated assembly code, if they are different after the optimizer (disabled in debug) has done its work.
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
Hello y'all
In my application, I have tons of messages in the debug window that say
First-chance exception in BurCalc.exe (KERNEL32.DLL): 0xC0000005: Access Violation.
Can anybody give me a hind how I have to check out this issue. I'm regularely using CString and CMaps... is this a source of troubles? But I'm using it also in other applications without any problems...
Any help?
Regards,
Daniel
|
|
|
|
|
Pointer problem?
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
If you are using VC6,
goto the debug menu, select the Exceptions option.
Find Access Violation in the list. Click Stop Always.
Now when the violation occurs, the debugger will stop in the offending code. This should help you track down the problem.
Michael
But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
|
|
|
|
|
Michael P Butler wrote:
If you are using VC6,
goto the debug menu, select the Exceptions option.
Find Access Violation in the list. Click Stop Always.
Hi, i would also like to enable this feature, however, i cant find the "debug" menu or the "Exceptions" item you mention.
Could you be more specific on how to enable this feature?
Thanks!
|
|
|
|
|
Ernesto D. wrote:
Could you be more specific on how to enable this feature?
Sorry, the debug menu doesn't usual appear unless you are debugging your app.
If you run your app by press F11, the app will stop at the first line. You should then see your debug menu. Set the option and hit F5 and you can start to find the problem.
Hope this helps,
Michael
But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
|
|
|
|
|
|
Im looking for a good tutorial on importing text files, rearraging the data, then writing it to a new file. Anyone know a good one???
thanks
|
|
|
|
|
Use CFile objects in MFC to read character-data from the text file. Save this data into an array/matrix of characters. Then do your rearranging, whatever that is. After that, write it into a new file using a new CFile object again.
See the documentation of CFile for examples.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
i need to download the msdn
but i cant find it
where i get exact downloadable link of msdn library
pls help
thanx
regards
rajesh
|
|
|
|
|
I dont know why would any one spend hell lot of time downloading the msdn when you can view it online, as far as i know there is no option to download MSDN, Try getting hold of MSDN 2004 cds.
I Touched Osama Bin Ladens Bushy Beard
|
|
|
|
|
|
Is there any way to do that? Tried to PlaySound() -method, did not seem to work. Thank you.
|
|
|
|
|
I already found the way in Multimedia section, sorry for bothering.
|
|
|
|
|
Hi All,
I was trying to detect a File Open/save Dialog box event of any generic windows application using windows hook. I got a very good suggestion from this forum of installing a WH_CBT hook and check the classname of every window created , if it matches the FileOpen Dialog's classname do my stuff.
This actually works very nicely but now I have a slightly different problem.
I need to use WH_GETMESSAGE hook for mouse/keyboard events detection as well. So I am trying to get away with installing just a WH_GETMESSAGE for HCBT_ACTIVATE event. I actually do get this event just like I get one if I had installed a WH_CBT hook. However I do not get a pointer to the HWND like a get from the wParam parameter if I had installed a WH_CBT.
I checked both the ((Message)lParam)->wParam as well as wParam but I do not get the valid HWND pointer.
Need help. Thanks in advance.
Regards,
Zahid
Regards,
Zahid
|
|
|
|
|
How can debug a dll in a runtime?
I have a command line program which uses a dll and i would like to debug the dll during run-time. how can i do that.
Shenthil
|
|
|
|
|
In your DLL project
Specify your Debug - Executable for debug session. (the executable which uses the DLL)
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
Alternatively, in the EXE project, go to Project > Settings > Debug tab > Additional DLLs category. Add any DLLs to be debugged along with the project here.
A third way, IIRC, is to add both projects to the same workspace.
|
|
|
|
|
|
Thanks. I am working on it. Also, do u know how to turn off disassemble while debugging.
|
|
|
|
|
Hi
I am trying to use the ATL class 'CRegKey'. I want to use the member function
'EnumKey()' which is described at the website.
If i look into the header file myself, that member function and some others aren't included.
Am i working with an old version of the ATLBASE.H? Can i upgrade this file and get all features of CRegKey?
I have Windows2000, Visual Studio 6.
Any ideas?
Greetings
Jens
|
|
|
|
|
Anonymous wrote:
Am i working with an old version of the ATLBASE.H? Can i upgrade this file and get all features of CRegKey?
I have Windows2000, Visual Studio 6.
It looks like the function is only available with the ATL that comes with VS.NET and VS 2003. Even the latest platform SDK doesn't have it.
Michael
But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
|
|
|
|
|
Hello,
what I would like to do is to display a logo (jpg or bmp) in a static control on a dialog.
This logo will always have the same size and will be stored in a file logo.jpg or logo.bmp located on user station, it will be loaded in the dialog at initialization time (no bitmap stored in the ressources).
This will allow me to be more flexible and to customize the dialog for each user station.
I will just give each user a different file logo.jpg or logo.bmp.
Thanks in advance for any information
Regards
DD
|
|
|
|
|
CStatic::SetBitmap() (or send an STM_SETIMAGE message) and LoadImage with LR_LOADFROMFILE parameter (for BMPs). JPGs you can load with OleLoadPicturePath() and obtain hBmp through IPicture::get_Handle. You can also use IPicture::Render() to draw loaded image.
|
|
|
|
|
In MFC I have a populated combobox. Now I want the second item to be selected be the first item to be visible. SetTopIndex() is the functionality I require but it only seems to work for ComboBox with Type: Simple???
When the droplist is shown I just want to nudge the scrollbar up one. Can I get a handle to the vertical scrollbar in the drop list, if so how?
Sort is turned off, VC6 sp5.
Any help would be greatly appreciated. ps. take it easy im a newbie.
|
|
|
|