I'm trying to call a pointer to a class method with the compiler spitting out: "term does not evaluate to a function"
This is basically what I'm trying to implement:
class Thing;
typedef long(Thing::*FUNC)(int, void**);
class Thing {
Thing() { /*code & other junk */ }
long...
dammit, you're right.. i just didn't try to implememt it it any other way
by doing:
while(1) {
sleep(1);
if( *((char*)KEY_ADDRESS) & KEY_ALT ) {
//bla
}
}
it clearly does work, thanks alot ;-)
How do you detect keystrokes from a keyboard in DOS
-WITHOUT- using getch(). I am specifically trying to detect when the ALT Key is depressed, NOT an ALT+* event.
put this in the form's class
public:
BEGIN_MESSAGE_MAP
MESSAGE_HANDLER(WM_DROPFILES, TMessage, DropFile);
END_MESSAGE_MAP(TForm);
this in the form's constructor:
DragAcceptFiles(Handle, True);
replace Handle with that of a control if you like
and a function similar to this...
If you're talking about draging & dropping FILES into the application there is a sample program on Borland's site on the CodeCentral page that works:
http://codecentral.borland.com/codecentral/ccweb.exe/prodcat?prodid=2&catid=4
unfortunately you havet os 'sign up' to download it, but at least...
Is there a way for a program to determine if the NT/2000 workstation it is running on is locked or not? (i don't mean frozen, i mean the ctrl-alt-del then enter on "Lock Computer" method)
Well, if you can read C++, there are examples of how to do it here:
http://community.borland.com/article/0,1410,26040,00.html
I'm sure the equivalent VB code can be written, or it can be put into a C++ DLL which your VB app can call.
you could use the simplest & cheapest method of doing it by using an XOR pattern
#define _PATTERN 0xE7
for(i = 0; i < strlen(szCharString); i++)
szCharString[i] ^= _PATTERN;
this is a VERY simple example, but it works, and you just need to use the same for loop to decrypt it later
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.