windows

How to implement an image or pdf viewer?

Hello, for learning purposes I would like to know how to implement an image (and/or) pdf viewer on my own. I'm interested in the general approach to implement such a thing. I already read about the different formats on the net (tiff/pdf) so I found out that these files have a special format which describes where I have to look for a h...

How to retrieve the HD vendor/serial using Windows API

I'm talking about the physical disk drive, not volume/partition/logical drive. So that usually-suggested GetVolumeInformation function is not applicable in my case. To be exact: I'm working directly with the disk which has not been partitioned yet. I open a handle to it via CreateFile function: hDisk = CreateFile( _T("\\\\.\\PHYSIC...

Calling .NET from Perl

I have a Perl script and needed to call a method that's in a .NET assembly. I found this technique but it's quite involved for a one-off Perl script so I didn't use it. I ended up writing a trivial .NET console app as a wrapper for the call I need and have my Perl script communicate with the wrapper, using Console.In / Console.Out / IP...

how to have multiple web site with one URL?

Hi there, I have 2 web projects, with one URL:www.theurl.com, which is directed to the ISA server, behind this server have a web server, (windows 2003). I have a Default web site, and another web site which I want to add. (website2). when the user click the url,directly goes to my first web site, how can I have forexapmle: www.theurl....

subversion and symlinks on windows for wordpress development

Hi, I'd like to use the method described here to use subversion for Wordpress development: http://www.aaronwhitman.com/2010/01/subversion-repository-with-wordpress-external/ Does anyone know of linkd.exe will do the job for the symlinking part? thanks! ...

Regarding Windows Programming Using C++

There are many functions available in Windows API for usage, is there any book which would act as a comprehensive reference for the APIs available in windows? I mean the books i have been reading give a basic idea of there usage. I would need something comprehensive, like we have The Standard C library by Plauger. I need something like...

Perform Task Just Before Windows Lockout

Hey All, I'm wondering if there is a way to intercept that a Windows session is about to be locked and essentially provide a pop-up just before. We've got an intranet punch in/out facility, and many people forget to punch in or out before leaving for lunch or for the day. Essentially I'm looking for a way to give the users the option t...

Why does IE8 fail to window.open() when viewing local HTML files (and how to fix it)?

Due to orders, I must test some pages from a local file system running Windows XP and IE8. Firefox and other browsers can view the documents and javascript for opening new windows works. However, with IE8, I get new window filled with some default error message, "Internet Explorer cannot display the webpage". Anyhow the first "launche...

help with LibSVM input data

Hi, I am using the LibSVM tool for my support vector classification implementation:- The first line in my input data file looks as so:- +1 15752:47 6279:45 475:40 5231:30 515:29 7529:28 11623:24 274:24 15431:21 7342:20 4819:20 7598:18 8853:17 11134:16 501:16 911:15 4656:15 5875:14 10725:13 7334:13 13762:13 8295:12 9314:12 317:12 10641...

Are there reasons why DLL redirection won't work other than the presence of a manifest?

We have a legacy VB6 application that uses Crystal Reports XI to generate printed reports. We've found through experience that the Crystal Reports print engine crashes if it picks up the wrong version of usp10.dll (the Windows Uniscribe library). One customer is consistently having printing issues on their Windows 7 machines (running W...

Software to receive printjobs and forward them to printers in a LAN

I want to create a software which windows will detect it as a installed printer driver and list that software under "Devices and Printers" Just like the ImagePrinter sowftware, you can access it through following link. http://sourceforge.net/projects/imageprinter/ when this Image Printer is installed on a computer, windows lists it un...

session0 isolation in Windows 2008/windows7

I have a C++ application which used Mutex, Events,Semaphores for synchronization. While hosted in windows 2008 server/Windows 7, this application is not starting from a remote client. I used telnet client to connect remotely to this application and saw that telnet server is running under session 0 and therefore it is trying to start my a...

Windows C++ Should I use WinHttp library or XmlHttp from MSXML?

A rather simple question. Should I use the WinHttp library to make a web service request in my C++ programs or should I use the IXmlHttpRequest interface in the msxml library to send web service requests? Obviously the WinHttp library provides a lot more fine control compared to the IXmlHttpRequest library. But the XmlHttpRequest object ...

How do I disable default Tkinter key commands?

I'd like to implement my own key command. However when I do, it does both what I tell it and the default command. How do I disable the default command, so that my command is the only one that runs? This is on Windows 7, BTW. ...

PONG Response to PING - Simple IRC Bot

I am writing a simple IRC Bot in C++. I am having issues, however, parsing "PING" properly. I cannot seem to extract the "PING" string from the output. I have a sample program setup (statically) with the same setup as my IRC bot and I can parse the string, but it does not seem to write properly when I actually apply the method to the bot...

How do I open an Explorer window in a given directory from cmd.exe?

I see how to launch many other programs from a batch file, but I can't find a command like open on Mac OS X. Does such a tool exist on Windows? Powershell, or a Windows API call from an executable would also work. ...

How do you create an application with a unique GUI like Valve's Steam?

Valve's game manager application, Steam, has a very unique user interface, with custom buttons and windows. How would you create a Win32 application that has such a look? ...

Conversion from unsigned int to float

warning C4244: '=' : conversion from 'unsigned int' to 'float', possible loss of data Shouldn't a float be able to handle any value from an int? unsigned int: 0 to 4,294,967,295 float 3.4E +/- 38 (7 digits) Wiki: The advantage of floating-point representation over fixed-point (and integer) representation is that it ...

Codepage 850 works, 65001 fails! There is NO response to "call foo.cmd". internal commands work fine.

The question basically explains the problem. I'm using Windows XP Pro Service Pack 3 ComSpec=C:\WINDOWS\system32\cmd.exe I launched the console via Start... Run-dialog... cmd.exe Here is a "view" of my console: The command, then the output (and my // comments) C:\> chcp 850 Active code page: 850 // output is as expected C:\> echo @c...

Is it possible to use output redirections from a cmd file using start?

I want to have a cmd file with something like: :one start /wait (blabla1.exe -q -m 1>blabla1.log 2>&1) :two start /wait (blabla2.exe -q -m 1>blabla2.log 2>&1) where I want the output of the blabla application not the output of the start command. Is it even possible to have the redirections "local" inside the start command? Do I...