From: Johan L. <jo...@Da...> - 2004-04-22 18:31:15
|
At 20:15 2004-04-22, Jez White wrote: >The exception is GetKeyboardState. There are various possibilities for >implementation - but it would depend on how people are using it. I actually >use this function myself (to test if the CTRL key and other keys are pressed >at the same time). Any thoughts on an interface? The easy solution would be >to return a reference to the array (like now) - but there might be a better >suited "Perl solution"? For me that works fine. I don't know of any other people using it, so... :) Some other way to do it would be to return a hash ref, but I don't quite see the point. /J >If your wondering why I'm going to add these functions, I've found that the >runtime memory size of one of my exe's reduces by just under one meg if I >remove all dependency to AdHoc. I can imagine it's the line my $rsSetBrushOrgEx = new Win32::API("gdi32", "SetBrushOrgEx", "NNNP", "I") or die(); which loads the gdi32 dll. Try and remove it from your copy and see if it helps. If it does, I can change it to create a singleton object on the first invocation so it won't affect you if you don't use it. /J -------- ------ ---- --- -- -- -- - - - - - Johan Lindström Sourcerer @ Boss Casinos jo...@Da... Latest bookmark: "Laziness, Lizards and Monks" http://www.perlmonks.org/index.pl?node_id=247497 dmoz (1 of 10): /Computers/Programming/Internet/CGI/ 40 |