windows

Update system environment variable from c++

Hey folks, I am currently writing an unmanaged C++ program which works with a system environment variable. I am getting the value with GetEnvironmentVariable(...). Now I have an C# program which may change this variable at any time, e.g. like this: Environment.SetEnvironmentVariable("CalledPath", System.Windows.Forms.Application.Execut...

Send custom information through Windows FileSystem Attributes

Before getting into the point, I'll give you an overview of what I want to do. Because I don't know if using Windows Filesystem attributes is the right option to do that. I have two components in the system. One of them is a ShellExtension that put an OverlayIcon when some condition is satisfied, and the other component is a Filesystem ...

Python: Can't use the command python

I want to install summon-module on windows 7. I tried python setup.py install but cmd doesn't know the command "python". I also set the path correctly. What is the problem? Thanks in advance. ...

Preprocessor to add functionality to Windows's CMD?

I need to do a fair bit of scripting in my job as a SQL Server DBA. Sometimes, I need to deploy a fix script to a very restricted environment, where the only option for scripting may be DOS Batch. In one such environment, even VBScript/WSH isn't a possibility, let alone PowerShell. Anyone who has written enough batch files on DOS and Win...

What are the possible reasons the system() function can not find the executable?

if( system("tail -500 log.txt") == -1) { //Error calling tail.exe on log //errno is a system macro that expands int returning //the last error. strerror() converts the error to it's //corresponding error message. printf("Error calling tail.exe with system(): %s",strerror( errno )); } System() is c...

Using Git as a source control for webdevelopment and multiple environment

Little context: We are a team of 6 developers working a web application. Since launch we have been using CVS as our source control system on a Windows server using ColdFusion w/ Eclipse. With all the hype around Git and distributed systems lately we thought we would check it out. As a standard web application we have our local environ...

windows Installer that is resticted to X times

I need a windows installer that can install my program only X number of times. Say 10 or 20 or a defined number I set. Then the installer ceases to operate or can give a message to contact my company. Ed ...

Which IDE for C++ software can I use for targeting Windows, Linux and OSX?

Hello I was reading today question on IDEs fo C++, and there are very good ones like Netbeans. My question is about creating a software in C++ on Windows Environment, but let users install and run my software also on Linux and OSX. Does netbeans has a compiler to do the job, or is there any good IDE which has a compiler for targeting...

Converting the sample rate on-the-fly when reading a WAV file into a samples array with Java

I've got a collection of short WAV files that I would like to process in Java using various digital signal processing algorithms. I need to get an array of int valued samples for this purpose, encoded at the 11025 Hz frame rate. The source files have several different sample rates, including 11025 Hz and 44100 Hz. Here's the code I'm tr...

Fastest way to pass a file's contents from Kernel to User mode?

I'll try to be brief, but fully descriptive: This is Windows-specific. Using the Windows Driver Development Kit (DDK). I am writing a Kernel Mode Driver (KMD) for the first time, having no prior experience in Kernel Mode. I am playing around currently with the "scanner" mini-filter sample which comes with the DDK, and expanding upon it...

Format CSS file (compress/uncompress)

Hi there, I want to format my css files used in my web project. Formatting means: Compress/Uncompress CSS file Example: *{margin:0;padding:0;}body{min-height:101%;font:69%/141% Arial,Helvetica,sans-serif;color:#2d3742;} to: * { margin: 0; padding: 0; } body { min-height: 101%; font: 69%/141% Arial,Helvetica,sans-serif; ...

how to differentiate critical windows updates among all updates in c++

how to differentiate critical windows updates among all updates in c++ ...

Prevent memory fragmentation

Hey, Can anyone point me to a source or outline how the algorithm for the low-fragmentation heap works? Thanks in advance ...

What should COMSPEC and PATH environmental variables be to locate the command-interpreter, using system()?

Are the OS (XP) environmental variables the same used in a process running from visual studio .NET C++? It seems the command interpreter is not found: When using NULL as the command, system() returns 0 and with command - ENOENT Command interpreter cannot be found. In windows (System->Environmental Variables), COMSPEC contains the pa...

Path of current Python instance?

I need to access the Scripts and tcl sub-directories of the currently executing Python instance's installation directory on Windows. What is the best way to locate these directories? ...

How to use structure in a structure?

Hi! This coulde be a dumm question, but i can't figure it out what i am doing wrong( i haven't used two structures in each other ). I have two structures: struct test { struct ddata* difference; int diff; }; struct test *MSG; struct ddata { char *filename; char *size; }; struct ddata *difference And i want to giv...

Fully specialised templates and dllexport

Hello, Microsoft says: “Templates cannot be used with functions declared with __declspec (dllimport) or __declspec (dllexport).” (link). What does this mean? Can I export a function which has a fully specialized template class reference as an argument? ...

vista/win7 magnification API in .NET

There is magnification.lib in win7/vista SDK for using magnification API for C++ (http://msdn.microsoft.com/en-us/library/ms692162%28VS.85%29.aspx). How can I use this API in .NET windows forms project? Thank you for any advice. ...

configure, make, git on windows = how to compile&install on windows

I want to make work ffmpeg-ruby on windows. If possible. But I do not know how to do configure make ./configure --prefix=/opt/ffmpeg --enable-pthreads --enable-shared --enable-gpl make sudo make install git on windows? git clone git://github.com/gwik/ffmpeg-ruby.git cd ffmpeg-ruby gem build ./ffmpeg-ruby.gemspec sudo gem install...

After casting pParam, why do I get random characters back?

Hi! This is the first time that i want to use threads, so i don't understand them fully for now. I have two structures: struct ddata //difference content { char *filename; char *size; }; struct ddata *difference = (struct ddata *) malloc( dif * sizeof *difference ); struct test { struct ddata* difference; int diff; ...