|
Me too downloaded the same and no problem found...Better u download it again
nave
|
|
|
|
|
I downloaded it 30000 times...
maybe I didn't add the ststic resource to the resources?
I just drawn it with the toolbox..
SnaidiS(Semion)
|
|
|
|
|
I tried it on another computer and it works well!
Thank you all for your help, I guess it was a problem in my computer ir in the Visual CPP .
and again-thankyou!
SnaidiS(Semion)
|
|
|
|
|
Hi all,
How to Use GetAsyncKeyState(..) Api, Please provide a snippet of code. And what is the Difference between GetKeyState(...) and GetAsyncKeyState(...)
uday.
|
|
|
|
|
See
<br />
SHORT nState = GetAsyncKeyState(VK_TAB);<br />
BOOL bTab = (nState & 0x9000);<br />
if(bTab)<br />
MessageBox("A");<br />
whitesky
|
|
|
|
|
hi WhiteSky,
I want to know which key i have entered. In the above example you supplied 0x9000 for tab Control.
Tab-Control --> 0x9000.
Shift-Control ---> ?
Ctrl-Control --->
I want to know Shift-Control,Ctrl-Control Keys.
please help me out.
uday.
|
|
|
|
|
Their is no need to know the hex values of the corssponding keys :-
U can use the VK_ and the second one is the corssponding Hex value.
VK_SHIFT 10 SHIFT key <br />
VK_CONTROL 11 CTRL key
Regards,
FarPointer
Blog:FARPOINTER
|
|
|
|
|
See Virtual-Key Codes in GetAsyncKeyState
whitesky
|
|
|
|
|
Hi,
The key status returned from GetKeyState function changes as a specified thread reads key messages from its message queue. The status does not reflect the interrupt-level state associated with the hardware. Use the GetAsyncKeyState function to retrieve that information.
"Dream bigger...Do bigger...Expect smaller"
aji
|
|
|
|
|
I have a problem. I have some USB flash media and i want to use it to store some key data for my software. The data are encrypted. In order to protect the media from direct copying i want to include Vendor ID, Product ID and serial number into the encryption key.
How to obtain VID, PID and serial?
I've tried two approaches:
1. Issue IOCTL_STORAGE_QUERY_PROPERTY on the drive in order to obtain STORAGE_DEVICE_DESCRIPTOR. It looked like these parameters are present in this structure. However looks like this works correctly only for SCSI. For IDE devices VendorID field is empty (NULL), ProductID field contains drive model string obtained via Identify command, SerialNo field is also empty. For USB drive the things are even worse: Vendor = "USB", Product = "Flash disk" and no serial number.
I've tried IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER, but on my flash drives it simply doesn't work. The documentation says it works only WinXP SP1 and only if the media is SCM-1 (Security content management)-compilant. That's all, approach no. 1 stopped here.
2. Traverse through a USB devices tree exactly in the same way as USBView does. Everything is okay, i see IDs and serials, but now i need to find out a drive letter under which the flash device is mounted from the hub name and port number? IOCTL_USB_GET_NODE_CONNECTION_NAME gives empty string on non-hubs. IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME works and gives me some ID, but what to do with it then?
Please help me.
|
|
|
|
|
Hello,
could someone help me to solve this problem
i have four regions and i need t make a window consisting of two rectangles pixels width one inside another , like
<p><br />
_______________<br />
| A |<br />
| ----------- |<br />
| |B ---- | |<br />
| | | C | | |<br />
| | ---- | |<br />
| |_________| |<br />
----------------<br />
</p>
A - first recangle
B - A hole in the window
C - is a second rectangle
it also must be a D - area inside C but it is to complicated to show it here
i use this code:
[CODE:]
h = CreateWindow("Highliter","", WS_VISIBLE, 10, 10, 200, 200, NULL, NULL, hInstance,NULL);
HRGN r3 = CreateRectRgn(0,0, 0, 0);
HRGN r4 = CreateRectRgn(0,0, 0, 0);
HRGN r1 = CreateRectRgn(0,0, 200, 200);
HRGN r2 = CreateRectRgn(12,12,198,198);
CombineRgn(r1,r1,r2,RGN_XOR);
int res = CombineRgn(r3,r3,r1,RGN_OR);
SetWindowRgn(h,r3,true);
MessageBox(NULL,"After First Region","",MB_OK);
r1 = CreateRectRgn(20,20, 150, 150);
r2= CreateRectRgn(25,25,130,130);
CombineRgn(r1,r1,r2,RGN_XOR);
res = CombineRgn(r4,r3,r1,RGN_OR);
SetWindowRgn(h,r4,true);
MessageBox(NULL,"After Second Region","",MB_OK);
[/CODE]
res returned second time is ERROR, i dont understand why?
-- modified at 3:32 Wednesday 12th July, 2006
|
|
|
|
|
|
the CombineRgn return predefined constant ERROR, but the GetLastError tells no error, so i think maybe CombinRgn doesn't set last error.
|
|
|
|
|
whats return value :
<br />
<br />
whitesky
|
|
|
|
|
can you please make me understand about multithreading.
|
|
|
|
|
|
|
I am using .NET framework 1.1 (Visual studio 2003.NET) and I have written some codes in VC and VC++. I want to add some XML tags to make documentation out of it. But it only supports XML tags for C#. As far as know Visual Studio 2005 (.NET framework 2) supports XML tags for VC, but I can not switch to it. I want to know if there are some tools that help me to make some documents with .chm extension out of the XML tags I have written or not?(in C#.NET I have written these tags and then I made the XML file out of them and by using NDOC, I have created files in .chm extension. Is there any way to make such documentation out of VC and VC++.NET?)
Thanks in advance
|
|
|
|
|
You can use CppDoc to generate your docs. I don't remember if it had support for chm but i'm sure you can convert it from html
Always do your best
|
|
|
|
|
Hi,
The ::SHGetSpecialFolderPath() function is available as part of Internet Explorer 4.0. I would like to emulate this function, on systems with an earlier version of Internet Explorer. Typically, I need my software to run on plain vanilla Windows NT 4.0.
I would like to know if it's possible to emulate this function using ::SHGetSpecialFolderLocation() which is available on my target platform?
The problem is :
::SHGetSpecialFolderLocation(CSIDL_APPDATA) returns an ITEMIDLIST that contains something like "Document and Settings" on my XP box, instead of something more like I would expect, something like "C:\Document and Settings\UserName\Application Data".
Should I revert to using an environment variable? Is there a better solution?
Thanks for your help.
--
Maxime Labelle
maxime.labelle@freesurf.fr
|
|
|
|
|
Use SHGetSpecialFolderPath () instead of SHGetSpecialFolderLocation(). The former retrieves the path as characters where as, the latter retrieves the path as PIDL.
Jubin Chawda
braindrain1@rediffmail.com
-----------------------------
Come online at:-
fitiyal@yahoo.com
|
|
|
|
|
|
Do you have the following registry key?
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
If so, wouldn't a wrapper around SHGetS... that always returned a proper path, regardless of IE4 being present or not (w/o IE4, using the above mentioned registry key)?
|
|
|
|
|
I've got the specified registry key, but it does not contain an entry for the corresponding CSIDL_APPDATA...
Is there another way?
Thanks
--
Maxime Labelle
maxime.labelle@freesurf.fr
|
|
|
|
|
I uses SHBrowseForFolder on workstations so I need to call SHGetPathFromIDList (way down in the code...). Is that one available to you?
namespace {
int CALLBACK BrowseCallbackProc(HWND hwnd, UINT uMsg, LPARAM , LPARAM lpData) {
if(uMsg == BFFM_INITIALIZED) {
if(lpData) {
SendMessage(hwnd, BFFM_SETSELECTION, 1, lpData);
}
}
return 0;
}
}
extern "C" int PickDir(const HWND hwnd, const char* pszSource, char* pszNew){
TCHAR display_name[_MAX_PATH] = _T("");
if(pszSource) strcpy(display_name, pszSource);
HLOCAL hl(0);
BROWSEINFO bi;
memset(&bi, 0x00, sizeof(bi));
bi.hwndOwner = hwnd;
bi.pszDisplayName = display_name;
bi.lpszTitle = _T("Välj bibliotek");
bi.ulFlags = BIF_BROWSEINCLUDEFILES + BIF_EDITBOX + BIF_RETURNONLYFSDIRS + BIF_NEWDIALOGSTYLE + BIF_UAHINT;
if(pszSource && *pszSource) {
bi.lpfn = BrowseCallbackProc;
bi.lParam = (LPARAM)(hl = LocalAlloc(LPTR, strlen(pszSource) + 1));
CopyMemory(hl, pszSource, strlen(pszSource) + 1);
}
LPITEMIDLIST pidl(SHBrowseForFolder(&bi));
if(hl) {
LocalFree(hl);
}
if(pidl) {
if(SHGetPathFromIDList(pidl, display_name)) {
strcpy(pszNew, display_name);
return TRUE;
}
}
return FALSE;
}
-- modified at 4:26 Wednesday 12th July, 2006
|
|
|
|
|