I'm writing a program on a Linux platform that is generating text files that will be viewed on, inevitably, a Windows platform.
Right now, passing std::endl into a ostream generates the CR character only for newlines. Naturally, these text files look wrong in MS Notepad.
1) Is there a way to change std::endl such that it uses CR+LF f...
The message loop generated by class wizard often looks like
while( GetMessage() )
{
if( !TranslateAccelerator() )
{
TranslateMessage();
DispatchMessage();
}
}
Whereas TranslateAccelerator documentation says:
If the function succeeds, the return value is nonzero.
If the function fails, the return value is z...
Is there a standard/good way of converting between urls and windows filenames, in Java?
I am trying to download files, but I want the windows filename to be convertible back to the original filename. Note that the query portion of the url is vital, as I will be downloading different pages that differ only in query.
My current hacky ...
I am trying to understand PE file formats and there are many sections. What is the bss section? Is that fluid and data written to that section can be overwritten anytime? Is that a storage location in memory of the loaded binary?
...
can i send specific signals to USB ports using Ruby or C++, also the operating system is Windows, so this is like totally new 4 me (to program for windows), so i'm trying to do it as a DLL file, can this DLL contain Ruby code ??
by the way this is just a training project, so it dosn't matter that much, i'm just practicing on those stuff...
This problem should be a no-brainer, but I haven't yet been able to nail it.
I need a function that takes two parameters, each a file path, relative or absolute, and returns a filepath which is the first path (target) resolved relative to the second path (start). The resolved path may be relative to the current directory or may be absol...
I've been developing Windows based applications for a long time and most of my present clients still desire a desktop or client/server Windows application. Is it possible to use Ruby for such applications as opposed to its primary purpose of being a Web-programming language?
...
Let's assume that we've got 2 windows processes ,
Process A is the sender, and Process B is the receiver.
Process B is running a classic Win32 API events loop
How do I generate and send mouse and keyboard events from process A to B ?
...
Is it possible to create a single cab that will allow me to package both PocketPc and Smartphone version of Windows Mobile application? What I would like is to be able to check during installation if device is pocket pc or smartphone and then install appropriate versions.
Thanks in advance for the help.
...
In Windows, I made a small script to compile and then run a Java application:
javac helloWorld.java
java helloWorld
helloWorld prints "Hello, world!" and then the command prompt closes immediately. What I want to happen is for the program to execute then have a new line on the command prompt ready to go.
EDIT: 1 more stipulation. It ...
I'm using C. I wrote a very simpe program which prints back the input, using getchar() and putchar() or printf(). Is there any way to make it so as soon as the user types one key, the program registers it, without waiting for an Enter? Let me show:
Currently, if the user types "abc" and then presses Enter, the program prints "abc" and a...
Create a form (I'm using .NET 2.0) with a button click event:
{
Thread.Sleep(3000);
ExitWindowsEx(0,0); // shutdown
}
Hit the button, press Left-WindowsKey + L to lock the desktop. The shutdown fails.
ExitWindowsEx returns 1 (Success).
I would like to know why this API fails and what else might fail when the desktop is locked?
...
This is a but of a part 2 in trying to convert an SVN repository to a Mercurial one
command is:
hg convert file://c:/svnrepository
but, the output I get is:
assuming destination svnrepository-hg
initializing destination svnrepository-hg repository
file://c:/svnrepository does not look like a CVS checkout
file://c:/svnrepository does...
One of the ways our app is distributed (on Windows) is as a ZIP archive. Inside this archive is a batch file used for starting the app. The user is supposed to unzip the archive before running our app, but frequently users ignore our instructions and try to run the app without unzipping the archive first. When users do this, the app fail...
Kind of a Admin question - I know.
Here's the thing.
The OS has this deep, strange assumsion that a user wants all there pictures in one folder, all there doc files in another folder - etc. Saveing files based on file type - not the folder in which it was opened.
I, like many business/dev users have my drive devided into folders based ...
I need something like:
get_home_user($username)
...
I'm struggling to understand the capabilities of a custom Windows SSP/AP.
I work on a biometric authentication system, and am interested in creating a custom SSP/AP to support biometrics. The goal is to provide a "drop in replacement" for the venerable Password. The users should never have to provide a password. This is both more sec...
I have this test.txt file with the following content:
@echo off
wget -q http://subs.ro/get/21518
move 21518 %userprofile%/Desktop/21518.zip
%userprofile%/Desktop/21518.zip
This file is generated by a javascript and the content keeps changes.
I have the following text.bat file :
for /F "eol=; tokens=1* delims=" %%i in ( test.txt ) do ...
Hello,
I started my windows development with .NET. But I'm a person who doesn't like getting away with work done. I would really like to know how exactly things work, I mean the INTERNALS. I'm doing my Engineering final year.
Now and then I encountered few books, If put them in order I think it makes SOLID foundation.
So, the list is:...
I wrote a script using Ruby to click on the screen automatically on Windows's apps. All is fine except there are situations where the program will keep on clicking and I have no opportunity to click on the Shell and click CTRL-C.
So some "sleep" statement need to be placed somewhere in the loop, such as "sleep 3", so that there are 3 s...