windows

Error in try catch while converting VC6 to VS2008

When I opened a VC6 project in VS2008 and tried building it , initially I got the error: fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory error C2259: 'CException' : cannot instantiate abstract class error BK1506 : cannot open file '.\Debug\SClientDlg.sbr': No such file or directory ...

Not able to get JSL.exe executed in windows 2003 Premium.....

Hi All, I have an application which is using jsl.exe....in WIndows-2003-premium when I am trying to execute this through cmd from the path where this file is located, getting error .... C:\opt\cavisson\monitors\sys>jsl.exe -install The system cannot execute the specified program. While java path is set . ...

Batch script to get website ip address?

I'm trying to put together a batch file, that will ping a website, and assign its ip to a variable - I've searched around, but haven't really been able to put something together. Can anyone shove me in the right direction. Tim. ...

MSI Package hangs-up when calculating disk space

In my team we prepared an msi installer package for our application. Package is made in WIX contains custom UI, call custom actions from C# library and almost everything works fine except one thing: calculating required disk space. On this stage whole installer hangs up from time to time, especially when client testing it :( We have the ...

WPF Set Owner on Window created on own dedicated UI thread

Hi All I have the following code, which runs a WPF window on it's own dedicated UI thread: // Create the dedicated UI thread for AddEditPair window Thread addEditPairThread = new Thread(() => { // Initialise the add edit pair window addEditPair = new AddEditPair(this); addEditPair.PairRecordAdded += new EventHandler<PairRec...

Make a SVN working folder identical to repository version

I basically want to do an SVN export as part of a scripted build process, but without having to get the entire repo from scratch every time, which is slow and eats bandwidth... not to mention will make testing the script a pain in the backside if it does this everytime we tweak something or spot a typo in the scripts. Is there an obviou...

How does AppDomain initialise in a navite application which hosts .NET components.

Hi Folks, We have some .NET classes exposed as COM components. A customer has a service which utilises these COM components from a multithreaded C++ application. Things generally work fine but in some cases we are seeing issues queuing requests onto the System.Threading.Threadpool in this environment. Basically when we go to queue a user...

How to get the LBA ranges, given a file?

Given a file, how can I get the LBA ranges corresponding to the file? Can FSCTL_GET_RETRIEVAL_POINTERS do the job? ...

Net Runtime Bug : .NET Runtime 2.0 Error - Event Id: 1000 Crashed my program. What caused this?

Hi, I have a new program which has been running 24/7 for over 2 weeks now but last night it crash/went down with no Fatal log exception in my log4net file ...the process appears to have been killed by someting .... and when I looked in the Windows Event Viewer Application log it contained an error for the programs process saying '.NET R...

Windows 7 programing OSD browse drives

I would like to make a program for windows 7. i would like this program to let me browse local and network drives using OSD and just arrow keys, RETURN KEY and maybe BACKSPACE KEY to go back one level. I don`t know where to start.i need some guidelines. What programming language do i have to study and what to study about? i think i need ...

Retrieve Printer's Duplex setting when using PPD Driver

I have a Windows printer configured using a PPD based driver (see Wikipedia). The PPD file defines Duplex as being supported and the duplex setting can be changed via the Printer's Printing Preferences (right click on the printer and choose properties). I have confirmed the setting works by printing a two page document. The problem I h...

Why did the date and number formats change when I moved my Perl program from Linux to Windows?

I am moving some scripts from a Linux box to a Windows box, but now any numbers or dates printed have lost their formatting (ie, numbers were rounded to 2 decimal places and dates as June 1 2010..). I am quite new to Perl and cannot work out where they got their formatting from in the first place as there doesn't appear to be anything ...

Accessing a key in windows registry LOCAL_MACHINE

Ive made a key in HKEY_LOCAL_MACHINE\Software\MyAppName (with regedit (ive rebootet)), but when i try to list them all out "MyAppName" does not show... :( any clues? rkey = Registry.LocalMachine.OpenSubKey("Software"); foreach (string subkey in rkey.GetSubKeyNames()) { WriteToLogFile("subkey: " + subkey); } ...

AF_UNIX in windows

Hi, I have an application that I wish to use over windows. I am using AF_UNIX family un windows. I wish to know that AF_UNIX family is available in windows. If not then is there any alternate to AF_UNIX ? Thanks Arpit ...

Small Windows alternative to Crypto++ for decoding RSA?

Crypto++ is huge (compiled) and I would like to find an alternative to decode a RSA encoded block. I'm looking for a solution for Windows. ...

Working with registry values

This time i'm tring to work with registry values and so i'm using the following code Private Function RegKeyExists(ByVal hKey As Long, ByVal sKeyPath As String) As Boolean Dim lResult As Long Dim hSubkey As Long lResult = RegOpenKeyEx(hKey, sKeyPath, 0, KEY_EXECUTE, hSubkey) ' Determine if handle is valid ...

XAMPP/Eclipse Debugging PHP - Not Hitting Break Point

I'm trying to set up a simple PHP debugging environment on a Windows box at work and have been following various suggestions and tutorials online for using XAMPP, Eclipse, and XDebug. php_info() tells me that XDebug is set up and ready to go, and the only thing I had to change in the Apache setup in XAMPP was the port (it's now set to 8...

Wake up from standby/hibernate programmatically in Windows in python?

I'm thinking of making an alarm clock that can wake up some systems (depending on motherboard model) from hibernation/standby modes at a certain pre-determined time. I've seen similar software do this, I think in VB. I can't seem to find any documentation anywhere on how to do this in Python. Does anyone have any hints? If it's not possi...

What is the difference in windows socket (winsock.dll) implementation between Windows XP and Windows 2k3?

Background: I have an URL with a valid host and port, and invalid path. Opening up a java.net.Socket on XP with a timeout of 0 (no timeout) fails immediately. The same code hangs indefinitely on W2k3. Question: Where can I find documentation explaining the difference in winsock implementation and/or registry settings between XP and ...

Issue with Facebook Like button in Windows Firefox

Hello all, I've got a facebook like button ( iFrame edition ) that is overlaid on top of a full browser Flash application. The like button is hooked up to like separate images within the application, and when each new images is shown, the like button is refreshed with data using ExternalInterface. The like button fades in and out for e...