Hi,
I am having the sample code like this.
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author padmaja
*/
import java.io.*;
class Test{
public static void main(String arg[]){
try{
String command = "cmd /C start C:/excel.bat";
Runtime rt = Runtime.get...
I need to be able to open a document using it's default application in Windows and Mac OS. Basically, I want to do the same thing that happens when you double click on the document icon in Explorer or Finder. What is the best way to do this in Python?
...
Currently there is a Winforms application that is using an ActiveX component .ocx through the two interops. Now that there is a new version of the ocx available, I would like force the WinForms app to use newer version.
Unregistering the old ocx and registering the new ocx doesn't help.
Appreciate any help in achieving the same.
...
I have an .exe I want to start when the Win2k3 server boots. Does .exe needs to be setup as a custom service. If so, what is the process to setup the custom service?
...
With the upcoming release of Windows 7, one of the newly touted features is the Jump Lists, with their automatic population of most recently used items. Supposedly, if you've been 'properly' recording these most recently used items with the Windows registry, they'll automatically appear.
So, where in the registry do they actually need ...
How full-screen mode, like in web browsers, for application running under Windows OS is implemented? Is it more complex then maximizing a window and hiding window decoration?
...
I'm debugging an out-of-memory exception. When I get the exception, the "virtual bytes" performance counter indicates plenty of addressable space. The problem, however, is that the addressable space is badly fragmented, and the "Largest free region" (returned from !address in WinDbg) is too small.
To measure the memory fragmentation, ...
Right now at work, the an application we have is being tested by QA guys and the app sends requests to a server. The downside of this is that the client can only request and cannot modify the files on the server for testing different test cases without contacting one of the programmers.
I've been tasked with researching an implementati...
I'm a (happy?) user of Windows, but recently have problems that I don't know how to track.
I have a WinXP plus home and work Win2k3 systems. Some of them are freezing itermittently for a short amount of time (from less than a second to a few seconds). There is no CPU usage spike and not much HDD activity. Neither Process Explorer nor Wi...
I have a C++/MFC app on windows - dynamically linked it's only 60kb static it's > 3Mb.
It is a being distributed to customers by email and so needs to be as small as possible.
It statically links the MFC and MSCVRT libraries - because it is a fix to some problems and I don't want more support calls about missing libs - especially the...
What's the easiest/best way to register your program in explorers right-click menu using .NET and C#?
i.e. I would like to be able to right-click on an item in windows explorer and get a "Edit with MyProgram"
This is the closest thing to a tutorial I could find but it mostly just dips into Win32 from .NET and is also outdated. How shou...
Our client are having problems when logging in on their WinXP (fully updated) computers. We run a batch script that copies files and folders using xcopy.
No files are copied, but folders are created.
If I run the xcopy manually then there is no problems.
One of the source folders have non-english characters in its name. After I removed...
Dear Folks,
I am trying order the files on a common fileshare of my department, containing thousands of documents of various filetypes. My idea was to sort them by content-related keywords. Only few files contain valid info in the keywords file attribute provided by Windows. My idea was to let some desktop search engine index the files ...
Howdy folks,
What are the typical values of the virtual allocation granularity and page size on Win64 platforms? That'd be SYSTEM_INFO's dwAllocationGranularity and dwPageSize.
On Win32 systems these would be 64k and 4k.
I need to know because I've designed a custom allocator based on VirtualAlloc for a Win32 application and wonder if...
I am considering using smartwin for a Windows platform only C++ project but notice that there has not been a release for 18months since 2.0rc5 was released i.e. it appears that it is no longer maintained.
After playing with it seems pretty good, I like it's use of templates, signals/slots (via boost) and it will meet the project needs ...
Hi!
I'm trying setup a subset of boost and get it properly compiled using bjam, however I'm not getting the result I'm looking for. I'm working on windows using boost 1.37.0.
Let's say I want the libraries smart_ptr and filesystem built/installed. I intentionally chose a header only library and one library needing to compile a library....
I'm using boost for several C++ projects. I recently made a upgrade (1.33.1 to 1.36, soon to 1.37), since then I cannot run any debug-builds anymore.
To be sure that no other project issues remain, I've created a minimum test-project, which only includes boost.thread, and uses it to start one method. The release build can be started, ...
I've written an installer using NSIS and I need it to install some files (DLLs etc.) in a standard location like C:/Program Files/App Name/. I also need to install files in the current user's Application Data directory. The problem is that when the user is not an admin on Vista I need to elevate privileges and in doing so the environment...
Background:
I have an application written in native C++ which uses the wxWidgets toolkit's wxODBC database access library which is being removed from all future versions of wxWidgets . I need to replace this with another database access method that supports the assumptions and contraints outlined below. I don't require that the replacem...
UPDATE (solution)
Months later someone turned me on to an awesome solution to this. If you install Git for Windows, it comes with this console app called Git Bash that does exactly what I descibed. I gather that it is derived from MinGW. It's easy and convenient and gives you all the Unix bash command line conveniences. Tab-completion w...