Hmmm... somebody said that structures are portable, that's why I asked this :)
I know that I can do it very well on bit operations, but I thought that it's more appropriate to make it this way. Isn't there a way to make unions portable?
Hello!
I have a PACKED structure defined on 16 bytes and an array of unsigned char. It would be something like this:
#define ulong unsigned long
typedef struct partition{
ulong active:8;
CSH F;
ulong sysID:8;
CSH L;
ulong start;
ulong size;
}__attribute__((__packed__))partitie;
typedef...
I fixed the bug. The solution was including this code in the hookdll.cpp file
#include "stdafx.h"
#include "afxwin.h" //!! in this order
...
Also I had to delete DllMain() function from the cpp file.
I've got the dll over here
Error C2146: syntax error : missing ';' before identifier 'asd1'
error C2501: 'CString' : missing storage-class or type specifiers
fatal error C1004: unexpected end of file found
These 3 are at the same line...
I've got the project over here. Maybe it would be a...
I created a Win 32 Dynamic-Link Library and set up a DLL file.
The problem appers when i try to declare variables like:
CSTRING var1;
HINSTANCE hinstDLL;
and others...
Does anyone have a solution please?
Thank you!
Well... I slipped that mistake, but the name doesn't matter. The function is ok. I tried to read the flags but i don't know how. If i transform the flags to string (with itoa()) and then display them in a messagebox i get a large number. Strange is that the last digit isn't 0 or 1 (as it should...
I'm trying to install a global hook. If i issue this command :
hHook = SetWindowsHookEx(WH_KEYBOARD, MouseProc, 0,GetCurrentThreadId());
it works fine, but, of course, this isn't a global hook, it's only a local one. Now, this should be a global hook:
hHook = SetWindowsHookEx(WH_KEYBOARD...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.