|
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
|
|
|
|
|
|
Hi everyone,
I have a need where I have to move a button programatically.
I am trying to use the SendMessage(handleOfButton, WM_MOVE, 50, 50) function, but it does not seem to work. I have a feeling it only works on top level windows or dialogs. Is there a way to move a button programatically. What message should I use?
Cheers,
-K
-- modified at 15:19 Wednesday 26th October, 2005
|
|
|
|
|
Keith Vitali wrote: I am trying to use the SendMessage(handleOfButton, WM_MOVE, 50, 50) function, but it does not seem to work.
Probably because it's a message that the framework sends after a window has been moved. Try MoveWindow() or SetWindowPos() .
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Hi,
Is it possible in anyway to load a file into memory and then run it
from there? I am working on a file compressor
(www.nemokprod.go.ro/nb.htm) that can compress and encrypt and save
multiple files as an exe file that can then run the compressed files
after unpacking them to a temp folder. The problem is that I have to
unpack the files to the hard-disk and then run them from there, making
them vulnerable to user that may try to get the original (unprotected)
files.
So the user shouldn't have access to the file operations in the
background. So I need to keep the original unpacked files hidden from
the user, until after they are opened by the unpacker and then deleted.
So users should have no kind of access to the files (should not see
them, open them, should not be able to modify or copy them) but the
unpacker should be able to run them. (that is why I think that the
memory is the best solution)
So is there any way to protect them, like unpacking them directly to
memory and then run them from there? Something like a virtual disk in
memory?
Thanks.
Nemok
|
|
|
|
|
This has been asked many times before but an answer is still 'unknown.' If you unpacked the files to disk, could you not use an obscure name like a GUID rather than something like mysecretfile.exe?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Yes but using a FileMonitor like the one from SysInternals it is very easy to find out what files is the app working with.
Nemok
|
|
|
|
|
True, but if the name were not obvious, would the person know what to do with it even if they managed to make a copy of it?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|