I have a multithreaded c++ application that runs on Windows, Mac and a few Linux flavours. To make a long story short: Inorder for it to run at maximum efficiency I have to be able to instantiate a single thread per physical processor/core. Creating more threads than there are physical processors/cores degrades the performance of my prog...
Hi everyone.
Last year, in 2009 GSoC, I participated with an organization called Winlibre. The basic idea is having a project similar to Aptitude (or Apt-get) and a GUI like Synaptic but for Windows and just to hold (initially), only open source software. The project was just ok, we finished what we considered was a good starting point ...
Hi , I'm trying to implement "Copy as path" option in windows context menu ,which copies current file or folder path to clip board
instead of installing a software for this , i would like to implement it my self. Any suggestions?
...
Our program needs to consume the COM server which is also made by us. The scenario is the following: the installer will copy both the program files and the COM server files into the same folder on each install.
Currently we use regsvr32 to register the COM server, but this is not very good - if we develop another unrelated program that ...
In a button click slot, I create and exec() a dialog with a NULL parent. Inside the dialog's constructor, I have:
this->activateWindow();
this->raise();
this->setFocus();
The dialog is application modal and has strong focus. However, it does NOT respond to keyboard events until I click on it. How do I make the dialog get focus without...
Hi there.
I'm trying to build a simple cluster based on Windows XP. I compiled OpenMPI-1.4.2 successfully, and tools like mpicc and ompi_info work too, but I can't get my mpirun working properly. The only output I can see is
Z:\>orterun --hostfile z:\hosts.txt -np 2 hostname
[host0:04728] Failed to initialize COM library. Error code =...
I want to check a file is present in C drive or not..? can any one tell me how ?
Update:
I got errors, I am using VC++ 2008
#include "stdafx.h"
#include <stdio.h>
int main(int argc, _TCHAR argv[])
{
FILE * f = fopen("C:\\Program Files (x86)\\flower.jpeg");
if (f == NULL) {
file_exists = FALSE:
} else {
...
I've no idea with command line stuff!
What i've done:
changed my php.ini to phar.require_hash -> off
ran go-pear.bat
so i'm pretty sure i've got PEAR installed,
now I'd like to install this package
I've tried following the instructions but I really don't know how to do things with cmd.exe,
would love some help!
...
Hi there,
I need to write a script that takes the current path (%~dp0), transforms backslashes into forward slashes and passes it further to some command.
Due to the environment I'm working in the only option that I have is windows shell (not Powershell where the issue would not a problem).
Is it even possible to do that?
...
I am running net share from a ruby script to delete a windows network share.
If files on the share are in use, net share will ask the user if they want to go ahead with the deletion, so my script needs to inspect the output from the command, and write out Y if it detects that net share is asking it for input.
In order to be able to wri...
After executing some new code, my C++ application started to behave strange (incorrect or incomplete screen updates, sometimes no screen updates at all).
After a while we found out that the new code is causing an Access Violation. Strange enough, the application simply keeps on running (but with the incorrect screen updates).
At first ...
if you're a c++ programmer, would you go for the Win32 API or .NET to develop GUI applications?
...
Is there a definitive guide for special folders in windows? An internet search yielded just a few crumbs of information, e.g.
Wikipedia:Special Folders
Windows 7 Client Software Logo Program
What I'm looking for is an explanation of each folder, its intended purpose, usage scenarios and motivation for its existence (e.g. what does L...
I manage to install Django after some struggles by using setup.py install on Windows Vista
Now I tried to use django-admin.py but it is not working.
According to this document,
http://docs.djangoproject.com/en/dev/ref/django-admin/
The django-admin.py script should be
on your system path if you installed
Django via its setu...
let's say i have a setup file called setup.exe
i want to make this setup.exe include another exe file inside of it !!
how can i do that ? or what is this process called and i will try to search and learn
p.s i would do that with C , C++
p.s the other exe isn't a virus don worry :) it's a security file that will block that sof...
I have the following specified in my httpd.conf, but I get a 404 when attempting to connect to the server from another machine. If I set the docroot to the default htdocs directory, everything works fine. (note.. I've also tried replacing the "//storage/data1" part of the path with the network drive letter "U:")
ServerRoot "C:/Program...
Yes it's Windows sorry.
I'm using mysqldump with the option -T which creates a sql and a txt file per table.
mysqldump -u user -ppass db -T path
I use that option to be able to restore easily one table.
Now I'd like to restore all the tables.
mysql -u user -ppass db < path/*.sql
Obvously doesn't work
Also, I don't know where do ...
I am building latency measurement into a communication middleware I am building. The way I have it working is that I periodically send a probe msg from my publishing apps. Subscribing apps receive this probe, cache it, and send an echo back at a time of their choosing, noting how much time the msg was kept “on hold”. The subscribing app...
Ok so my new gig is high performance video (think Google streetview but movies) - the hard work is all embedded capture and image processing but:
I was looking at the new MS video offerings to display content = Windows Media Foundation.
Is anyone actually using this ?
There are no books on the topic.
The only documentation is a...
I have created WCF and I have used wsHttpBinding and MTOM as message transport with authentcation as "Windows".
Now my service is not current SECURE, its plain HTTP, running on custom port.
Is Windows Authentication of WCF's wsHttpBinding secure? can anyone see the password or guess through network trace?
Environment Information:
H...