There are already questions regarding unicode and ini files, but many of them are rather domain-specific. So I am not sure if the answer can be applied to the general case.
Motivation: I want to use ini files for storing simple data like some numbers and some strings. The strings are provided by users (input via GUI). The software could...
Code
# get already active Excel application or open new
my $Excel = Win32::OLE->GetActiveObject('Excel.Application')
|| Win32::OLE->new('Excel.Application', 'Quit');
# open Excel file
my $Book = $Excel->WorkBooks->Open($file);
# select worksheet number. Default is 1 (you can also select a worksheet by name)
print "worksheet $wo...
On a windows machine if you select any word document (.doc|.docx) and right click your mouse you get a menu with common commands such as Open, Edit, New, Print etc ...
I have developed a Application level word 2007 AddIn which installs correctly on Windows machines. It has a ribbon with many functionality/commands such as A,B,C etc inco...
How can I get current system IP using c under window XP.
...
I would like to do some C++ development on Windows using Eclipse and the CDT plugin. I use Eclipse Helios and have installed the CDT plugin. But after that I can still not create a C++ project from File > New > Project, there is still only Java Project available there.
How to solve this? and do I have to install anything more for C++ de...
I was looking into Microsoft XAudio2 XAPO and I guess it is only for audio streams that are sent through XAudio2, or can it be applied as a system-wide audio filter?
...
I have a format holding paths to files and command line arguments to pass to those files when they are opened in Windows.
For example I might have a path to a javascript file and a list of command line arguments to pass it, in such a case I want to open the javascript file in the same way you might with os.startfile and pass it the com...
Hello all,
I have a problem with GOTO command and affiliated labels.
Facts: Given a bunch of files from a folder (they are log errors) I need to open them and check if they contain a specific string. If yes then eliminate some characters (all the chars after the last appearance of "_", including itself) from the file names and do othe...
I would like to change the following batch file to use spaces instead of underscores. However, when I do that the directories come out weird. I've tried using quotation marks, but they come out wrong.
md Sample_sample
md Sample_sample\sample
md Sample_sample\sample2
md Sample_sample3
md Sample_sample2
md Sample_sample\sample\sample
PS...
Hi, i need to know how can get the descrption from an WMI class using vbscript.
i just founs this example but is in C#
// Gets the class description.
try
{
// Gets the property qualifiers.
ObjectGetOptions op = new ObjectGetOptions(null, System.TimeSpan.MaxValue, true);
Management...
Hi,
I'm looking for a simplest (and fastest) example of TCP socket programming for windows, c or c++, whichever can get it accomplished faster, sending trival data, for example 1 byte, or several bytes, but in one packet. It's for research purposes. I googled and found several examples, however every single of out them looks a bit dif...
Hi guys,
I am writing a windows mobile application based on GPS technology. everything is ready but I need the function which is used to retrieve GPS location coordinates (latitude and longitude).
I declared latitude and longitude, but now I need the function of GPS to put it inside a button I created, get longitude and latitude values...
I have a coding project that I would like to maintain at GitHub.
I went to http://github.com and created an account.
I downloaded and installed Git on Windows 7 choosing the option to use it via the command line.
Through some googled tutorials I created an SSH key.
I'm following the following instructions:
But when I get to "git c...
I've written a Open Source program that I've released as GPL built using the Qt4 LGPL SDK. This program has the ability to search an optional Sqlite3 database for data.
Here is what is making me lose my mind. I compile the program on the development machine. When I try to run it, I can errors about missing DLLs. I copy those dlls into t...
I have a java application running on windows machines.
Long story short, we have a convention for where we place log files per machine:
\\%COMPUTERNAME%\Logs\<AppNameHere>
So I configured my Java app to startup with -Dmachine.name="%COMPUTERNAME%", and then in my log4j.properties file I specify
log4j.appender.R.File = \\${machine.n...
My library performs a sequence of actions which result in a new (virtual) device node being added to the system. Assuming that everything is correctly configured the Windows PnP manager will respond by loading my function driver. This function driver will then proceed to create a device interface file which my library can open and inte...
Can we turn-off the computer fan by programming in C?If there is a way please guide me to it.Or atleast any hint would be great.
...
I have a c++ service application that launches a Powershell script (powershell.exe script.ps1). In the script an executable is run but needs to be run with different user credentials. Is there a way to do this in Powershell with the invoke-expression cmdlet or some other way?
...
So I wanted to get started with writing a powershell script. I wanted to start small and simply write a script that substiutes a local file folder as a drive. Pretty simple. I've done it before using the old DOS command tools.
So the script I wanted to write is:
subst d: G:\CER
Ok, so I try to execute the script in the Powershell IS...
I am new to using UMDH, and I am having some trouble understanding how to proceed with some of the errors it is outputting. I follow the typical usage (from the MS site):
gflags -i OCES.exe +ust
In another terminal window:
OCES.exe
And then back in the original terminal window:
umdh -p:5712 -f:out1.txt
But I am getting the follo...