I am writing a Japanese language quiz program and I don't want to require people to install the East Asian language pack for Windows XP. I am using GDI+ for drawing text. I tried downloading a free Unicode font and using that to draw text. I tested it on my computer (with East asian pack installed) and it displayed the Japanese charac...
I have to stop windows from going into sleep when my program is running.
And I don't only want to prevent the sleep-timer, I also want to cancel the sleep-event if I press the sleep-button or in any other way actively tell the computer to sleep. Therefore SetThreadExecutionState is not enough.
Or...I don't actually have to prevent the ...
Is there any framework available for implementing keyboard shortcuts in a .NET2.0 windows application? Also what are the best practices which should be taken care of while doing this?
...
I tried to find many times but cannot find.
Can somebody help me?
Thank you in advance
...
This is intended to be a lightweight generic solution, although the problem is currently with a IIS CGI application that needs to log the timeline of events (second resolution) for troible shooting a situation where a later request ends up in the MySQL database BEFORE the earlier request!
So it boils down to a logging debug statements i...
I am trying to port a packet sniffer from Linux to windows and am having trouble finding an appropriate API to the Ethernet device on Windows. I don't want to use WinPcap because I don't want to have to install WinPcap on the target machines. Is there an alternative which I can use which still provides a relatively easy interface. If it'...
Windows Vista Business with SP1
I have two NICs in my Vista Business SP1 machine - one NIC is connected to our corporate network, the other NIC is connected to a private network. Both networks are using DHCP, with the private network obtaining it's address from a LinkSys WRT54G (not being used as a router - just a switch with DHCP).
Th...
I'm writing c++ code that I need to run on both windows and linux and I'm looking for a function call that will return the ip address of the box the app is running on. Is there such one?
...
I'm looking for a way to get the current "load" (as in Unix: The number of processes which are waiting for the CPU/data) on Windows. Is that possible at all?
Background: By default, Windows will tell you how much the CPU is utilized or the network traffic, RAM used, etc. From a performance point of view, this is useless. I don't care th...
I am looking to move an existing WordPress installation to a custom platform comprised of a .net based blog as well as other new functionality/modules on the site running under IIS6/Win2k3. There are several thousand posts in the existing WordPress site that have been migrated to the new database structure, however, I'd like to preserve...
Have a quick project I need to put together for windows that can have no external references or dependencies; the stalwarts like C are obvious but if you are a .NET developer and need to build something like this very quick what language/tool would you use?
EDIT: Ultimately I want to be able to take JUST the exe produced by the compiler...
How do you encode a png image into base64 using python on Windows?
iconfile = open("icon.png")
icondata = iconfile.read()
icondata = base64.b64encode(icondata)
The above works fine in Linux and OSX, but on Windows it will encode the first few characters then cut short. Why is this?
...
EDIT: I've offered a bounty, since I doubt I'll be getting any answers otherwise.
Lately I've been working with listviews and I've decided to add an icon for each item indicating whether it's input or output. The icons add fine, but they're not transparent:
As can be seen, the icons are clearly not transparent. I'm currently doing so...
Is there a way to write a script on windows to automatically run a Java GUI and place a file name in the text box? I don't have access to the source code of this GUI, so need an external tool to be able to automate this process. I would appreciate any recommendations for free tools or scripts which I can use.
...
Scenario.
3rd party admins want to administer systems with PS remoting/direct login of clients and servers behind NAT gateways.
The systems are SBS 2003 or W2K3. all are behind NAT firwalls with varying RFC1918 subnets and no site to site VPNs (although a solution would likely require this.)
Each site has its own unrelated AD setup.
...
I'm hunting for a mail sending program which can be used with command line arguments.
Ive tried jaber's sendmail . Its really neat, but its unfortunately broken for SSL auth.
Any alternatives ?
(Oh yeah, I dont want to use perl :P)
...
I developed a device driver for a USB 1.1 device onr Windows 2000 and later with Windows Driver Model (WDM).
My problem is the pretty bad Tx performance when using 64byte bulk transfers. Depending on the used USB Host Controller the maximum packet throughput is either 1000 packets (UHCI) or 2000 packets (OHCI) per seconds. I've develope...
Why aren't they const?
I believe that's flawed API design. Or am I missing something?
UINT GetWidth();
UINT GetHeight();
...
vs.
UINT GetWidth() const;
UINT GetHeight() const;
...
...
Dear All,
It's possible to use TRACE macro as printf like function (variable argument list) . If it supports this facility, then why it's necessary to have TRACE0, TRACE1 and TRACE2 macros except they're imposing restrictions on number of arguments. Again, I'd like to know if there are any advantages on restricting number of arguments f...
Im working on a parser here that opens a file, reads it and prints data in another file.
The input file is determined from sys.argv[1] to both handle commandline opening and drag and drop (in windows). However, when drag and dropping a file, it gives me
ioerror 13: Permission denied
Looking at what sys.argv contained, I did the follo...