OK. Thanks. So far so good, but the function PdhAddCounter needs localized strings, thus in Germany you need german strings, in france you need french strings, etc. Damn, I'm not that language professional and the recently added function PdhAddEnglishCounter is not available on XP systems... ( I love those guys in Redmond...).
Is there a way to find out the localized corresponding language strings?
I am trying to develop IE toolbar in MFC using COM. On win7, the required dll (i.e. SelectorObjectAPI.dll) is present in %program files%\Microsoft\Internet Explorer Developer Toolbar\. But I am it is not there in XP SP3. I reinstalled IE 8 and result was same. Both m/c has IE 08.
So if Developer Toolbar is not an option, what else can I do. I need to create a toolbar for IE in C++ (specifically MFC + COM)
I have come across some samples but those samples need their (ready made) helper code to be included.
It's is learning adventure for me, so I would like to do every thing myself... Looking for any tutorial.
I create an owner draw btn with the styles WS_VISIBLE | WS_CHILD | BS_OWNERDRAW, and I try to use WM_DRAWITEM to deal with different button actions:
if lpDrawItemStruct->itemAction == ODA_DRAWENTIRE, I Draw a normal state button picture, when mouse clicks on the button, I draw a sink style picture. but the wm_drawitem message seems not responsible for mouse hover action. Someone could give a solution?
AFAIK there is no algorithm for "reverse CRC", other than the brute-force approach you are already taking. So what remains to be done is choosing a fast implementation. One can speed up CRC calculations a lot by using a table-based scheme. Here [^]is one.
BTW: there are a lot of CRC schemes, each resulting in a different CRC value for a given set of data!
You may do some reverse engineering to get String from CRC. Although that's not feasible. CRC produce unique set of bytes for any data (in your case it is string). As you mentioned correctly, it may not be Unique. The process is slow unless you know how to optimize it.
One more method is to use MD5 or SHA1. Although the whole purpose of MD5 is to authenticate the data (and it uses Hash function - which may take extra clock cycles), it can also be used smartly to replace CRC. There is a exhaustive list of error-correcting algorithm which I am not mentioning here. Pick any of those according to the importance of the transfered data.
(CRC converts data => Checksums so the only way we can get data be CRC is by trial and error)
What's the major purpose for the "Customize the toolbox"? As far as I know I can put text in the toolbox to facilitate some coding, is it possible to put a "Color picker"(Color dialog box as in photoshop) in the toolbox?
My software need to use MMC control and run on Windows7.
but when I try to register MCI32.ocx by bat file that include the code "@echo off regsvr32 MCI32.ocx" I've got some error
"The module "MCI32" was loaded but the call to DllRegisterServer failed with error code 0x8002801c"
I have used in Windows XP and never seen this problem before.
This is regarding privilege to access Registry. The error code "0x8002801c" (Error accessing the OLE registry) says that you don't have write permission to the registry. You may have to run the bat file with high privilege, to do so run the bat file by right clicking on file and selecting 'Run as administrator' option.