|
I don't have the kernel32 or NTDLL debugging symbols installed so tracing is quite difficult and really can't learn much from it anyway. The point is that this code is MS code that is producing the access violations. To clarify where and when it happens, any time a resource is accessed from the GUI, be it a menubutton, dialog box, combo control any thing. The projects I have created show no problems on my system at work with identical OS's and IDE configurations etc.. Further-more these problems are even seen on simple "Hello World" applications created from the app-wizard which is what I was saying earlier. I have normally never seen these apps fail because they have minimal controls and virtually no resource allocation of complex data structures what so ever. Most of MSVC example code works normally as advertised and on working systems do function correctly, but not on my system, they all produce the error messages. I'm still confused!
I don't know what else to try.
thanx
|
|
|
|
|
If this helps:
The debugger always seems to catch the exception inside the kernel32 DLL and call trace points to location 7C597EFB. Not having the symbols installed is a real handicap to debugging. Does anyone recognize this function call? Backing further out of the call stack I see that this MFC function call was made:
BOOL AFXAPI AfxIsValidString(LPCSTR lpsz, int nLength /* = -1 */)
{
if (lpsz == NULL)
return FALSE;
return ::IsBadStringPtrA(lpsz, nLength) == 0;
}
Which of course is inside ValidAdd.cpp
Could there be prepocessor macro that has been changed somewhere in my MFC headers?
I find it highly unlikely that the system library itself has changed, if anything some definitions could have gotten changed within my development environment- but where?
|
|
|
|
|
I created a Chat Application in SDI and now i want that application to run on WEb Browser so that anyone on net can open it and start chatting without downloading the application. Is there any possible way?
|
|
|
|
|
Adeel688 wrote:
Is there any possible way?
Nope
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
There was a MIND article out many years ago that illustrated how to write an MFC SDI/MDI application and encapsulate it as an ActiveX control such that it could be run from a browser.
You should be able to find it by poking around on the MSDN Magazine Web site. If you can't, let me know and I'll see if I can find it.
|
|
|
|
|
I have created ActiveX Microsoft Date and Time Picker Control resource:
DIALOG_1 DIALOG DISCARDABLE 0, 0, 186, 90
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Dialog"
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "OK",IDOK,114,55,50,14
PUSHBUTTON "Cancel",IDCANCEL,20,55,50,14
CONTROL "",IDC_DTPICKER1,"{20DD1B9E-87C4-11D1-8BE3-0000F8754DA1}",
WS_TABSTOP,13,12,67,31
END
But it don'tdisplay when i try activate it:
DialogBox(hinstance,
MAKEINTRESOURCE(DIALOG_1),
hwnd,
DlgProc);
FreeProcInstance(lpproc);
|
|
|
|
|
I am having a wizard page which contain a CListCtrl. During the initilisation of the wizard page, I select one of the raw in the ListCtrl. But when the list control is displayed, the selected item is displayed in GREY color instead of normal blue color. Can somebody help me on this?
Thanks for your time
Mohammed Kutty
|
|
|
|
|
The list control displays the selected item in gray when the control does not have the focus.
Software Zen: delete this;
|
|
|
|
|
As Gary said, it sounds like the control has the style turned on that specifies to always show the selected item even when the control does not have focus. If you don't want that, you can either programmatically turn it off (LVS_SHOWSELALWAYS style) or you can specify it in the dialog editor via the control's Properties page.
|
|
|
|
|
LVS_SHOWSELALWAYS style is turned ON for the list control. I need the selected item tobe highlighted always, even if the control is not focused. Please let me know if there is anyway todo this.
Thanks
Mohammed
|
|
|
|
|
Mohammed Kutty wrote:
I need the selected item tobe highlighted always, even if the control is not focused.
thats what the LVS_SHOWSELALWAYS style takes care of simply when list control looses focus the selected item turns grey .(like any windows caption color does, when it looses focus)
"Go as far as you can see,and when you get there youll see further" - Unknown
|
|
|
|
|
It is selected. The grey indicates that the item is selected, but that the control does not have focus. If the selected item was always blue, it would be confusing as the user wouldn't know if the control had focus or not.
However, if you're adamant about the item always showing up in blue, then you'll need to create an owner-drawn control where you're code is responsible for manually drawing the items. Just search this site for:
"list view owner draw"[^]
|
|
|
|
|
This unusual selection highlight is one of our customer requirement. Anyway As you suggested I tried the OWNER DRAW way and it works.
Thanks To Tom, Giorgi and Gary
Mohammed
|
|
|
|
|
Glad to hear it worked out, Mohammed.
|
|
|
|
|
I would suggest doing it the "custom draw" way instead. All you have to do is set a color then. With owner draw, you have to draw the entire thing if I remember correctly.
--
An eye for an eye will only make the world blind.
|
|
|
|
|
Custom Draw = listen to NM_CUSTOMDRAW (or something like that)
--
An eye for an eye will only make the world blind.
|
|
|
|
|
That's true and in my VC++.NET Bible I actually cover custom drawn controls as opposed to owner drawn controls. However, I figured that he'd find more owner-drawn code and more easly be able to plug that into his project.
|
|
|
|
|
Hai..
How to Access the child Control value. I have a dialog box, Font dialog Box. Which is having some controls with the class name bosa_sdm_Microsoft word.Each control having child control with the name RichEdit20W. When the selection changed in the control, class name Bosa_sdm_Microsoft Word , The value in the child control, RichEdit20W, is also changing.Now i want to acess the child control value.
Thanking you,
E.veera Raghavendra.
e.veera raghavendra
|
|
|
|
|
Try GetWindow() API to retrieve child window
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
Please forgive, my English level is badly.
How does a simple TOOLBAR weave to write?
I want to know the meaning of each step.
Thanks for your help very much, thanks!I would always be on-line to wait for your answer.
I come from China, is a plait distance raw recruit.Please forgive, my English level is badly.
|
|
|
|
|
|
Very thankful ThatsAlok!
I come from China, is a plait distance raw recruit.
|
|
|
|
|
|
I have a program that I have access to the code for. This program runs over a period of time and memory slowly goes up. This could be because of a memory leak or memory just bad memory management. Is there a way to let the program run for a while and then try to dump the memory to see how it is being used. What is the best way and quickest way of detecting where the memory is being used but not being freed? I know in programming Lotus Domino from the C API you can put a few parameters in the notes.ini after viewing a memory dump and determine exactly where a memory leak is occurring. Is there a way to do this in a C++ application or even tools that just run along side a program that monitors the leaking program.
Thanks
|
|
|
|
|
If you can run a debug build, you can use the CRT memory dump system to help track down memory leaks. Lookup _CrtMemDumpStatistics or one of the other _Crt memory routines.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|