windows

Creating a wine static executable?

Hi, I have some windows command line applications, in binary form (I do not have the source code) which I use frequently. Sometimes I need to run them in Linux machines, and it works perfectly under wine (wine is not an emulator). The problem I'm facing now is that I need to work on a cluster which has not wine installed on it. I wonder...

function to return the windows installed drive ?

i would like to know the function which returns the drive where the windows has been installed. for example if we run a program with following code in windows which is installed in "C:\" temp_char = getWindowsInstalledDrive(); should return "C:\". please point me to that function if you know. it should be a C/C++ function. Thanks...

PHP header problem (no, not that problem)

I have quite a strange problem with PHP and Apache on my local testing server. For some reason it keeps stopping sending headers to the browser (I am pretty sure that is the problem anyway). It's not a case of the old 'output already sent' as it was working fine, had the problem, went away after I reinstalled Apache and is now back aga...

Visual C++: What is a dynamically linked .lib file?

I noticed the following about a library I use: Library is compiled to .lib file. My code needs to be compiled as Multi-threaded (Debug) DLL to link to this library. I open the .sln (solution) file of the library (it is open source) and see the following in its Project properties: Runtime Library option is set to Multi-threaded (Deb...

How to get product code and its registry value from an exe?

Hi, I have an exe of a product. I need to know the product code as well the location of it in the registry. Is there a way to find it out. Regards, Priya.R ...

How to run .exe binary of a remote server on the remote server from a c++ application in windows platform

What are the ways to run .exe binary of a remote server on the remote server from a c++ application in windows platform?? ...

How do I get the selected text from the focused window using native Win32 API?

My app. will be running on the system try monitoring for a hotkey; when the user selects some text in any window and presses a hotkey, how do I obtain the selected text, when I get the WM_HOTKEY message? To capture the text on to the clipboard, I tried sending Ctrl + C using keybd_event() and SendInput() to the active window (GetActiveW...

Upload a folder by FTP

FTP doesn't support the notion of transferring entire directories. much less the option to /MIRror them a la Robocopy. Given a local folder C:\MyFolder and an FTP destination ftp://example.com/home/MyFolder, I'm looking for some solid code to transfer the contents of the local folder. If the destination exists, the contents of the lo...

Calling a submit() within an inline frame returns an object error on Windows 7 only. XP and Vista fine. IE8.

We have an application that we use an inline frame to submit data to a Notes server. A document.forms[0].submit(0) call is done in the frame, however, on Windows 7 IE8 machines, it results an object error. Our XP and Vista machines with IE8 work fine. Does Windows 7 work differently than XP and Vista even though they are all IE8? ...

Setting CTreeCtrl item's checkbox to partial state

First I add TVS_EX_PARTIALCHECKBOXES to the CTreeCtrl's extended styles: TreeView_SetExtendedStyle(tree->GetSafeHwnd(), TVS_EX_PARTIALCHECKBOXES, TVS_EX_PARTIALCHECKBOXES); Now how do I actually set any item to this state? There doesn't appear to be any documentation about that. I guessed that since checking and unchecking works by ch...

script to pull info from windows Drive

Hi All, I need a script that could ran and pull information from any drive on a windows operating system (Server 2003), listing all files and folders which contain the following fields: Full file path (e.g. C:\Documents and Settings\user\My Documents\testPage.doc) File type (e.g. word document, spreadsheet, database etc) Size When Cr...

run buildbot on Windows XP

I recently stumbled over buildbot and wanted to give it a try. My problem is that I have to run it under Windows because we don't use Linux on workstations or servers in my company. I've already tried different installations: python 2.6, Twisted-9.0.0-py2.6, buildbot 0.7.12 python 2.6, pywin32-214-py2.6, Twisted-9.0.0-py2.6, buildbot 0....

Which book for windows Shell programming?

I've been looking for a good book for windows shell programming, and the only one I could find is Visual C++ Windows Shell Programming by Dino Eposito: http://www.wintellect.com/BookInformation.aspx?ASIN=1861001843 It is an old book, and I'd like to know if you know of any good resources which could help. I need to develop a couple of ...

Windows and *nix compilation detection

One project should be compiled for Windows, Linux and an embedded target. The application has behavior differences when running on host or embedded targets. To summarize my requirements, here is the table: Target Compiler Behavior Windows MSVC, gcc A Host Linux gcc ...

C# - New to Windows Forms Applications and in need of help

Let's consider this scenario: a freshly create windows form application in which i created a Form2 besides the original Form1. 1st Question: I want both forms to show up at start-up, so i basically wanted to add Application.Run(new Form2()); in main right after the similar command for Form1, but since i read that i cant use multiple thr...

How to get rid of annoying InnoSetup folder selection mechanism?

When I set: DefaultDirName={pf}\My program in InnoSetup .iss file, it starts directory selection with this path correctly. However, if user press 'Browse' button and start navigating through filesystem, InnoSetup keeps 'My program' suffix at the end of path chosen by user. How to get rid of this? ...

How do I write an app that alerts a Windows service which user is currently logged in?

I have a Windows service that should run for all users that needs to know which user is currently logged in. I'd like to write an app that gets started when a user logs in that will alert the service that that user is the one that's currently logged in. It would also need to handle when the user is switched (meaning both are still runnin...

get machine SID (including primary domain controller)

I need to get machine SID (not computer account's SID) in C#. Computer is specified be host name, it is't necessarily local computer and it can be domain computer or workgroup computer. I using this helper class to call LookupAccountName API function: private static class Helper { internal enum SID_NAME_USE { ...

How to start developing with OpenGL and C++, what tools do I need to install on windows

Hi All, I am inspired to start programming some things in OpenGL, using c++. Can anyone list here what tools should be installed to start this process. Ie IDE Compiler OpenGL download etc? Thanks ...

Double-Quotes in start line of Windows Batch script

I have looked at the answers already provided, but I'm still stuck. Here is what I currently have: start "" "C:\Program Files (x86)\Spark\Spark.exe" echo Spark started This works fine. But now I want to pass parameters to the client, which must be wrapped in quotes. I can do the following on the command line: "C:\Program Files (x8...