I need to programmatically mount a WebDAV volume in Windows using C, and I think I'm going to use system() to achieve this (via the 'net use' command)... However, since net use requires that the password be written in plain text, I just wanted to make sure there's no logging of commands run in the Windows command line shell... I know in ...
Hello everyone,
I'm having some problems of getting the following simple code to run correctly:
#include <process.h>
int main( void )
{
system("foo.reg"); //why does this NOT WORK?!
//system("reg import foo.reg"); //why does this NOT WORK?!
//system("regedit \"foo.reg\""); //why does this NOT WORK?!
return 0;
}
...
I have two processes both developed in C#.
One of them is a Windows Service, the other one a normal windows based application.
What I intend to do is to exit the application from Service,
I don't intend to kill it forcibly, which i am able to do. I want to exit it gracefully.
Can i call the application_close function defined in my ap...
Hello,
I created a window with the following flags to overlay a d3d application:
WS_EX_TOPMOST | WS_EX_COMPOSITED | WS_EX_TRANSPARENT | WS_EX_LAYERED
I proceeded with colorkeying the window for transperacy and all worked well.
However once I began drawing on it using GDI an unforeseen problem occurred:
For some reason the mouse events (...
My program need to print a curve,
my solution is changing the curve into a picture,
and this picture file (xxx.png) can be printed by using the default windows picture printing tool(right click the mouse on top of the file, and select print).
but I don't want user do this job manually, I need a command line tool to do this:
printPictur...
Why does Windows SendMessage() always return ZERO, even the message delivery is success? Is there anyway to check the message delivery failure with SendMessage() ?
EDIT
Forgot to mention that I'm using SendMessage() inside a c++ DLL
LRESULT result = ::SendMessage(hwndOtherWindow,WM_COPYDATA, NULL/*(WPARAM)this->GetSafeHwnd()*/,(LPARAM...
good day!
im developing an app in c++ and winpcap that will list all the URL accessed in the browser with its corresponding response time..
currently, i can now track or monitor all accessed url through capturing and analyzing packets..
is there any way of measuring the response time of a web page to load, from the request made to the se...
I know I can profile my code with gprof and kprof on Linux. Is there a comparable alternative to these applications on Windows?
...
I'm used to gprof for profiling my C code, but I want to start using a GUI-based Windows application such as Luke Stackwalker. gprof works perfectly fine on my binary, but Luke Stackwalker has some issues:
Launching executable C:\lshare\POT03\Eclipse\Debug\POTaak3.exe.
SymInit: Symbol-SearchPath: ';.;C:\Program Files\Luke Stackwalker;C:...
I have written a C DLL and some C# code to test including this DLL and executing functions from it. I am not too familiar with this process, and am receiving a PInvokeStackImbalance exception whenever my DLL function is called from the C# source code. The code is as follows (I have commented most code out to isolate this problem):
C# In...
Due to red tape issues, my team has been trying to get continuous integration running on a Citrix server instead of our own box. The problem is that we use IBM's Rhapsody tool to generate our source code, which creates file permission issues.
Given that our problem is a little specific, I'm looking for more general lessons learned. Has ...
Does seeding every time you use the random function with QueryPerformanceCounter() cause it to work poorly? Is there an algorithm for testing the quality of a random algorithm?
...
This is a direct extension of this question:
http://stackoverflow.com/questions/180741/how-to-do-something-to-each-file-in-a-directory-with-a-batch-script
From the above I leaned how to execute a command for every file in a folder.
How do you execute MULTIPLE commands for each file? I want to first use lame to compress the file, then...
What would be the simplest way for an application I'm writing to block all Internet access on a Windows machine?
More details:
Windows: XP or higher
Application: A basic Win32 app written in C/C++.
Blocking: It needs to be able to block and unblock at will, ideally in a way that the user can't easily reverse. (By, say, right clickin...
I previously asked, How to determine the target of a symbolic link or Reparse Point?
...and got an answer that suggested the use of the Win32 function GetFinalPathNameByHandle, a function first available on Vista.
What happens if I build the .NET Assembly and then attempt to run it on WinXP, or WS2003, which does not have the GetFin...
I'm trying to debug Drupal on a windows machine using Eclipse (PDT), WAMP, and XDEBUG.
Everything seems to be running fine, Eclipse recongnizes when I move between pages (it's shows in the "Remote Launch" section "stepping") but nothing happens, and my breakpoints are ignored.
I'm ready to start pulling my last few hairs out, any help ...
I already know that I can trace memory leaks in my code with mtrace and valgrind on Linux, both of which are unavailable for Windows. Which Windows program would you recommend to trace memory leaks?
I'm an Eclipse user and I've been working with C for a month or two now, so I prefer a user-friendly solution over something more advanced....
How can I copy files to a USB stick with Ruby (in Windows)?
So far I have tried to identify the path of the USB stick, with the idea of using FileUtils to copy the files. However, I haven't been able to identify the path.
Anyone know how to do this, or suggest an alternative approach.
Thanks
Edit:
I've found a solution. Windows in...
Hi guys and gals!
I am looking for a smart way to take care of scheduling backups on a remote Mysql Unix/Linux server from my own personal Windows XP computer.
Is there any (free if possible, preferable of course) software that i can schedule that logs in to a mysql database and downloads a complete backup?
Would also need an alterna...
i need to hide a windows program (not visible in taskbar, system tray. visible in taskmgr).
and send clicks and fill out forms on this windows program (while hidden).
possible with autoit or autohotkey ? any other suggestions ?
...