I need to create directories and files in a Samba share on Windows, from a Python script. I can (and do) also use .NET 3.5 from Python. I would like to create these directories and files with certain owners and permissions. Can I achieve this somehow?
...
I have a drawing function that just takes an HDC.
But I need to show an EXACT scaled version of what will print.
So currently, I use
CreateCompatibleDC() with a printer HDC and
CreateCompatibleBitmap() with the printer's HDC.
I figure this way the DC will have the printer's exact width and height.
And when I select fonts into this HDC,...
How do you create a transparent window that can be placed over another window that is actively having streaming video drawn to it. I want to create a window on top of the video window that I can draw on without video constantly drawing back over it.
I can create a window from a transparent dialog resource and set its z-order using SetW...
In other words something like pipe in windows
...
I'm in the process of writing a wrapper for some OpenGL functions. The goal is to wrap the context used by the game Neverwinter Nights, in order to apply post-processing shader effects. After learning OpenGL (this is my first attempt to use it) and much playing with DLLs and redirection, I have a somewhat working system.
However, when ...
I have a VB6 Service that uses the standard NTSVC.ocx file to help manage all the NT service functions. The application has been running on Windows 2003 Server RC1 with no troubles. Our sales team asked if we could put this same application on a notebook that could be used as a live site demo. The only issue I am having is that the noteb...
I am using the debug_new tool that come in the pack of tools NVWA made by Wu Yongwei. http://wyw.dcweb.cn/
I turned it off once to track a heisenbug, that now is fixed. But as I turned it on, my program throws a bizarre error:
It loads, but before accepting any input it quits and writes on the console:
"This application has requested ...
I have a WinForms application that needs to behave in specific ways (specifically shell to a certain installer) based on the operating system on which it is running.
I am using the System.OperatingSystem class, and combining the PlatFormID, Major, Minor and Build numbers which gets you most of the way there.
Unfortunately, the properit...
Hello everyone! I have a C# Windows Forms program that has a RichTextBox control. Whenever the text inside the box is changed (other than typing that change), the cursor goes back to the beginning.
In other words, when the text in the RichTextBox is changed by using the Text property, it makes the cursor jump back.
How can I keep the c...
I have a WCF service I use for configuration stuff hosted in a windows service that will be used to maintain a database. Is there any way that I can access the WCF service inside of the hosting service? Or should I move the database functionality to another WCF service and host them both inside of a windows service?
...
Hi,
I will send an email with a given adress by open the standart email programm like "mailto:" in an a-tag will do it, but within a button click.
How?
...
Hello,
I am trying to create a custom Windows Explorer Toolbar Button.
eg: the scenario is to create a custom button to start notepad.exe; when the button will be clicked. I want this to appear beside the 'Properties' button that appears in the Windows Explorer Toolbar.
I have done the same thing for Internet Explorer 7 by adding th...
Hello,
how can I execute a batch-file or just some (e.g. twice) commands in a job of Hudson (running on windows xp, as a non-service, but may change), that the environment just stays for the whole build.
I need to do this, because I have to change the current path with 'cd' (we are using relative paths in our proj) and 'set' some envir...
Hi all,
I'm writing a python library that has a per-user configuration file that can be edited by the user of the library. The library also generates logging files.
On *nix, the standard seems to be to dump them in $HOME/.library_name.
However, I am not sure what to do with Windows users. I've used windows for years before switchi...
I wrote a function which can yield the text of a tree view item, even if the tree view is in a remote process. The function allocates two chunks of memory in the remote process, populates a TVITEM structure (which is the copied into the remote process), sends a TVM_GETITEM message and finally reads the contents of the second remote memor...
Hey folks,
I want to remotely execute another application from my C++ program. So far I played along with the CreateProcess(...) function and it works just fine.
The problem however is that I need the full path of the other program but I do not know the directory of it. So what I want is that I just have to enter the name of the other ...
How can I make my C# app erase itself (self-destruct)? Here's two ways that I think might work:
Supply another program that deletes the main program. How is this deleter program deleted then, though?
Create a process to CMD that waits a few seconds then deletes your file. During those few seconds, you close your application.
Both of ...
I have a (com) c++ project, which uses a (.net) c++ dll. The project was compiling and running ok.
Now, all I did was make changes to the dll, and I'm getting a fatal error c1083- cannot open include file stdafx.h - when recompiling my (com) project.
What can this mean?
...
I have an application implemented as an ISAPI filter whose behavior needs to change depending on whether it is being loaded by ISA or IIS. During GetFilterVersion it needs to register for SF_NOTIFY_SEND_RAW_DATA if being loaded by ISA or SF_NOTIFY_SEND_RESPONSE if being loaded by IIS.
There doesn't seem to be any information about the s...
Hi Everybody!!
Reddit.com is providing their code as open source and free.
I want to setup the reddit.com website at my local machine in Windows Environment.
Could anybody please help me or guide me to the best approach.
Also, i have apache (WAMP) installed in my machine.
Kindly somebody help, I have searched everywhere but unable t...