|
Whoooo! You need to figure out what the question is before you ask it.
INTP
The answer is 42. But what is the question?
|
|
|
|
|
what do you mean?
dizzzzy
|
|
|
|
|
I mean that your fist question did not realy explane what the problem is. I would need more to give a reasonable answer.
Oh, by the way, why are you doing this:
object* object_ptr = new some_derived_object_class(some_parameter);
Insted of this:
some_derived_objec_class object(some_parameter);
INTP
Every thing is relative...
|
|
|
|
|
first of all thanks for your time.i find a answer in my first question.
can you help me with these 3 above?
can i add two numbers and store the result without loading the operands into the cpu?
can a computer tell to the disk drive to move a standard block of bytes (say 512) into memory without the CPU handling each byte individually?
can i define 1024 registers?
dizzzzy
|
|
|
|
|
sorry
i just saw your response
about the 3) Don't be rediculus!
(Although, that makes me wonder if it might be possible on a supper computer)
can you be more specific why we could not?
thanks again
dizzzzy
|
|
|
|
|
You're welcome!
INTP
Every thing is relative...
|
|
|
|
|
can you be more specific why we could not define 1024 registres?
dizzzzy
|
|
|
|
|
because registers are a physical part of the CPU. You cant add or remove them with software
|
|
|
|
|
Thanks! I was starting to become dizzzzzzzzzzzzzy myself.
INTP
Every thing is relative...
|
|
|
|
|
About your second question:
AFAIK, most (all?) I/O-operations to a disk device is done by DMA, which stands for Direct Memory Access. This means that the CPU isn't involved, at least when it comes to move the data.
The amount of data to be written or read (at the lowest level) is exactly ONE disk sector (normally 512 bytes).
|
|
|
|
|
Disk operations are normally handled via DMAs. This allows the CPU to not get involved with physically moving the data from one place to another.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Hello
I'm writing a Win32 application using Visual C++. I want to create a button control that appears as coloured text only, with no button graphics or borders, but I want the text to depress as a button does when clicked. I have seen this kind of button in other applications.
I have created a bitmap button, but cant hide the button graphics/border. I have also placed a bitmap picture over an owner draw button, but the bitmap picture obviously wont depress.
I would appreciate any suggestions.
Thanks
John
|
|
|
|
|
I imagine you need to owner draw, which means you also need to handle the drawing of the depressed button.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Yes I imagined that too. Maybe I should have rephrased my question to ask - how to owner draw a bitmap button so that only the bitmap shows.
Thanks
John
|
|
|
|
|
I"d have assumed the erase background message is what draws the borders, have you tried suppressing/replacing that ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Whaaat! The erase backgound message is used to erase the backgound nothing else.
Although it you are feeling creative, you can use it for other things.
INTP
Every thing is relative...
|
|
|
|
|
I am not sure that is entirely true. The owner draw part is, but it gives you a pointer to lpDrawItemStruct (which is a pointer to a DRAWITEMSTRUCT). DRAWITEMSTRUCT gives you the HDC, which you can use to set the text color to use (when drawing). Then you should be able to call the default handler to handle the actual drawing.
INTP
Every thing is relative...
|
|
|
|
|
|
good afternoon, all
I tried to debug this app who has memory leak. when I place the "@ERR,hr" on the watch window - which works same as "int test = GetLastError();", I got this meassage "0x000000b7 Cannot create a file when that file already exists", when the app is over this line:
BillMaster = new billmstr;
if I clicked F5 or F10 it will let me keep going on debug, but what exactly is this messages mean? billmaster is already exists? thanks.
|
|
|
|
|
The message means you're trying to create a file on disk, when that file already exists. You can set your streams to overwrite files, perhaps that's what you need to do ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi,
I'm developing an ActiveX control to be displayed in a webpage, and the webpage will solely be used within an intranet of my client's company. However, I'm having slight problems getting my control (which is written in MFC) to initialize itself. When the control is being used on a webpage hosted non-locally, the function DoPropExchange never gets called, the control window is never created etc. However, when I register the control manually, and view the same webpage - this time stored on my local machine - these problems do not apply. The only difference is that before these functions are called, a message appears saying "An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction?". If I say yes to this question, everything works fine. I would REALLY like to know if there are some settings within Internet Explorer that somewhere specify "prompt the user about unsafe activex controls: Disable-Enable-Prompt", and I would assume that for my local machine this setting is set to "Prompt", but on the internet it is set to "Disabled". So, would anyone know which setting this is and where to find it?
Best regards,
Daníel
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
Nevermind, I just added the page to the Trusted sites section, and then it works as expected...
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
how to check if a PC is connecing to the internet programmaticaly by VC application?
includeh10
|
|
|
|
|
How about this?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
none of them works.
my VC6 doesn't have the "best function" IsNetworkAlive().
includeh10
|
|
|
|