Hello,
I have to replicate the following Java functionality in C++ to get data from Linux to Windows. Is Winsock2 the best way to go?.
Also, any reference code to suggest?
TIA,
B
import java.nio.ByteBuffer;
public class MessageXdr {
private ByteBuffer buffer;
private int size;
// taille max corps de message
privat...
When writing DirectX applications, obviously it's desirable to support the user suspending the application via Alt-Tab in a way that's fast and error-free. What is the best set of practices for ensuring this? Things that need to be addressed include:
The best methods of detecting when your application has been alt-tabbed out of and w...
In our application, we are allowing users to open files and directories.
Java 6 provides us with...
java.awt.Desktop.getDesktop().open(file);
which works great. However, since we need to ensure Java 5 compatibility, we also implement a method of opening files by calling the start command in cmd.exe...
String command = "cmd.exe start...
I have recently decided to take the git plunge, and am really enjoying using git, even on Windows.
My current open source project lives on subversion, all devs are familiar with subversion so I would like to keep subversion as the "source of truth" for now.
Nonetheless, I want to use git, so I went ahead and created a copy of the sou...
I do not have ssh access to a machine with htdigest and I use Windows. Can someone help me?
...
I have an nsis installer script for the application im working on and it can place a shortcut on the desktop and in the start menu folder but each shortcut has the wrong start in path and as such the app saves data files to where the short cut is.
Is there an easy way to change the start in path as the documentation was less than helpf...
The scenario is as follows.
I am working on local XP machine. My resource folders like App_Themes, wanted to place on a servers shared location. I am setting up my asp.net site as default in IIS.
Any thoughts?
Let me know if you have any queries.
...
Hi all,
I was watching the WWDC 2009 Keynote and something someone said about Windows 7/Vista got me curious..
The speaker claimed that 7 was still a poor operating system because it still used the same technologies such as DLLs and the registry. How accurate are his claims and how different is OS X doing it? Even os x has dynamically...
How do I change the border color of focused/unfocused CEdit, CListCntl, CButton in WinCE/Windows Mobile 5/6 with MFC or Win32 API?
...
I have similar problem to the one described in this question: I am using the "mailto" protocol to open the default mail client from Java (I am tied to Java 5 for now, so sadly I can't use the Desktop API).
Some of the emails contain Japanese text. The strings are already being UTF-8 encoded as follows:
private void email(String to, Str...
I try to write vbscript, to remove the duplicated component GUID entry in component table of a MSI.
But I always get 80004005 error, MSI API error.
Does it mean vbscript can't modify/delete on component table?
I do know Transform can.
my code snippet:
DeleteQuery = "delete from component where component.component="+comp
Set DeleteV...
Hi,
I am trying to compile a java source file on command prompt with the following command
C:\temp\test>javac -cp ".\*;" *.java
but the class does not get compiles, i have errors of type files not found, or could not find resource...
Even though the jars are present in the same directory as the java files.
Any help asap is highly ...
My company is about to purchase an automated testing tool. We are not a big company, and can only afford a single license for the tool. We have an internal dispute whether the tested OS should be the one most commonly used by our clients (XP) or the next generation OS (Windows 7). All possible OS are going to be tested anyway, but in a m...
Is there any guaranteed way of determining the date that Office 2003 (and .Net Framework v2.0) were installed on a client computer?
I am trying to nail down a problem which I think is due to the order that the .Net Framework and Office 2003 were installed in, so I need a way I can get a client to have a look at their machine (preferably...
I am currently in the process of locking down the network communication protocols that are available for use on given Windows application platform.
Can you suggest a freely available tool that will allow me to monitor/identify the commuications protocols that are in use i.e.
TCP/IP
http
https
FTP
SFTP
...
I have installed python and django in my system that uses win vista. Now when I go to command prompt and type python or django-admin.py both are not working. Every time I need to set the path to the python folder manually. But i have seen these commands running even without setting path. So how do i make it to run properly?
...
I am using InstallShield 2008 Premier Edition and I have created a multilanguage setup. When i install the setup in language other than English (e.g. in French) it clearly shows all labels and messages correctly.
The problem starts when I run the generated setup.exe file again. It should show the Modify/Repair page in the language that ...
I have two applications, a WinForms app and a Windows Service that will both run on the same machine. I want the WinForms app to reliably detect when the service is running. I have complete control over the design and implementation of both applications.
My first thought is to use a Mutex, instantiated by the Service and detectable by ...
Hello,
Struggling with command line again, I have figure out that I can store the current working directory in a variable like so:
SET current=%cd%
How would I set parent though? SET parent=%..% does not work, as it echoes %..%
Basically, calling a batch script C:\a\b\myscript.bat with the following contents:
@echo off
set current=...
New to .NET, any point in the right direction would be a huge help.
Trying to write a program to accept data input in a manufacturing environment and store it directly into a SQL database.
A problem I can foresee is if the Wireless Network Connection is interrupted (or temporary out of range)
Where would I research, or how would I g...