|
In a bit of assembly code I have seen this code:
JB *+3.
Does it mean a scale of 1 and a displacement of 3. Am I correct? What is the Index register and the Base register? How do I find out what they are. According to documentation there can be a number of registers.
I am the handsome one in the crowd.
|
|
|
|
|
Franz Klein wrote:
I am the handsome one in the crowd.
but not the smartest
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|
|
mailMonty wrote:
but not the smartest
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
I am sorry I am not a genius like you are.
But then again seeing that you cannot answer a simple answer I wonder how smart you are?
I am the handsome one in the crowd.
|
|
|
|
|
Franz Klein wrote:
I am sorry I am not a genius like you are
Hain Franz, I am sorry, I am not laughing at you i am just smiling comment written by Mr. Monty!
It's seems it's hurt you, I am sorry for that
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Help!
I have tried everything and checked anything that could cause this insidious message from appearing in the debugger output window.
"First-chance exception in MyTestApp.exe (KERNEL32.DLL): 0xC0000005: Access Violation."
This application is a appwizard generated from VC 6.0 "new" etc. no code modified.(freshly reinstalled by the way)The first clue that there is something wrong is that when I try to add the OS symbols for debugging, I get a message like "the files don't match"
I have Visual Studio 6.0 Professional with SP-5, recently updated to SP-6 to no avail. The workstation is a Windows2000 system with SP4 and 512 M Ram 80 GB HD and 1.7 GHz CPU. This seems to have started recently after many system updates, but don't know if any of these change the operating system RT libraries ?? IE 5.5-->IE 6.0 ??, MS Platform SDK ??
Do I need the DDK as well for Windows 2000 ??
Note that these projects appear to run fine in both release and debug form.
Has anyone experienced this before?
How did you get rid of this problem?
|
|
|
|
|
First chance exceptions are always shown in the output window when ever an exception is generated. If it occurs within a try block, and is caught by a catch block then there is no problem and your program will run fine. If it is not caught your program will crash.
If you want your program to always stop whenever the exception is generated then goto menu "Debug->Exceptions" and set "Access Violation" to "Stop always".
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|
|
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
|
|
|
|