Have a 1MB pipe:
if (0 == CreatePipe(&hRead,&hWrite,0,1024*1024))
{
printf("CreatePipe failed\n");
return success;
}
Sending 4000 bytes at a time (bytesReq = 4000)
while ((bytesReq = (FileSize - offset)) != 0)
{
//Send data to Decoder.cpp thread, converting to human readable CSV
if ( (0 == WriteFile(hWrite,
...
We have an Windows32 application in which one thread can stop another to inspect its
state [PC, etc.], by doing SuspendThread/GetThreadContext/ResumeThread.
if (SuspendThread((HANDLE)hComputeThread[threadId])<0) // freeze thread
ThreadOperationFault("SuspendThread","InterruptGranule");
CONTEXT Context, *pContext;
Context.ContextFla...
My company is working on an application that is half Qt/C++ for the editor interface and half Django (via QtWebKit browser control) for the runtime. What we want to do is distribute a minimal python installation with our application.
For instance, our Mac app bundle would ideally be structured something like this:
TheApp.app/
Conte...
I'm using Microsoft Visual Studio 2008 (VC9) to compile a project that has a .dsw file. I already have the 2010 and would prefer to use it, but it seems this dsw was built for 2008.
I'd like to compile and produce a binary that's also compatible with Windows 7. My questions:
if I compile with 2008, will the resulting binary be compat...
When working with htaccess files on Windows, is it possible to save the file as .htaccess ? (Rather than having to rename on LAMP server)
...
I'm currently using a temp folder for my Java application to create a lock so that only one instance can be running at a time. This lock file MUST be deleted when the program exits.
This is fine, except for the case when the process is killed (not allowed to shutdown normally, e.g. from Windows Task Manager). If that happens, the user ...
I am trying to compile Botan on Windows with MinGW, and am receiving the following error during compilation:
c:\qt\2010.04\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cwchar:159: error:
'::swprintf' has not been declared
c:\qt\2010.04\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cwchar:166: error:
'::vswprintf' has not been declare...
Hello,my friend.
I'm developing an "Online Judge System",like SGU "http://acm.sgu.ru/"
I wangt to obtain the accurate consumption memory of running ".exe"(.c/.cpp-->.exe) using Java.
Process : submit code-->hello.cpp/.c--compile-->hello.exe--run-->results
I want to know how to obtain the consumption memory of running "hello.exe"
Th...
Have a 1MB pipe:
if (0 == CreatePipe(&hRead,&hWrite,0,1024*1024))
{
printf("CreatePipe failed\n");
return success;
}
Sending 4000 bytes at a time (bytesReq = 4000)
while ((bytesReq = (FileSize - offset)) != 0)
{
//Send data to Decoder.cpp thread, converting to human readable CSV
if ( (0 == WriteFile(hWrite,
...
So that the IPCam can be accessed as if it's a normal pc camera.
I'm pretty new to this, any advice is greatly appreciated!
...
I am very new to Java Service Wrapper and windows service.
Can we run struts and spring application as windows service using Java Service Wrapper without any web server(Tomcat, Jboss etc.) ?.
...
We've built a php application that we need to host on a Windows Server 64 bit platform (due to another software being present that we need to access).
However, our php application has been built on a linux environment.
Is there anything we need to be watchful of when running apache and this php application on a Windows environment?
...
I just bought an Acer Aspire 5551. Nifty little laptop, great price.
Last night, I tried Acer Backup Manager for the first time. Besides taking hellish long (compared to SyncBack), it also created a folder .BackupManager in every folder on my C:\ drive!!! What a mess. I would like to delete all occurrences of this folder, and the files ...
I'm developing a service using .NET on Windows platforms.
It had worked until yesterday... but today it doesn't want to start!!! It seems strange, and I feel I'm missing something...
I've also tried to revert sources to the last working version, but nothing else happens: net start outputs:
The service is not responding to the contr...
I'm using a kind of load balancer over a small cluster that is able to achieve >2000rps on zero-duration requests (t.i. ones that are immediately satisfied by the worker nodes).
But as soon as the requests stop being zero-duration and start taking even 1ms, performance immediately drops >10x. The data being transfered in both directions...
Ok, read that again. I need to open a windows prompt WITH perl. This is because I want multiple prompts running perl scripts in parallel, but don't want to open them all by hand. So I want a script that I can call (host), tell the number of command prompts to open (clients), path to the client script to run, and even put in inputs if the...
where can i find libdbi sqllite3 dll file for windows. any help would be appreciated
...
Ok, here's the problem.
My goal is to run FF Portable, when Jetty starts. My start.bat looks like that:
@echo off
start /B start_jetty.bat
start /B start_firefox.bat
start_jetty.bat:
@echo off
cd jetty-7.1.6/
java -jar start.jar
start_firefox.bat:
@echo off
ping -n 1 -w 6000 0.0.0.1
"%cd%\FirefoxPortable\FirefoxPortable.ex...
Other than cx_Freeze, are there any other current maintained tool suites to generate stand alone executables for Python 3k?
Are there any other techniques for minimizing preinstallation requirements under Windows?
...
The documentation for TB_GETBUTTONTEXT says that the handler has to return the number of characters and optionally (if lParam is not null) copy the string into the supplied buffer.
The caveat is that the length doesn't include the terminating character. I see the following problem. Say the handler stores the string precomputed (so its l...