In one of the answers to this question jalf spoke about useful define NOMINMAX, that could prevent from unwanted defining min/max macros. Are there other useful defines that can help to control windows.h (or other Windows headers, for instance Microsoft C Runtime headers or STL implementation) behavior?
...
I want to create a displayed array of image thumbnails in a C# Windows app.
I would like each image to be selectable for migration into a picturebox.
Has anyone built something like this?
I am trying to figure the quickest/ most efficient way to do it. I have already considered a panel with a collection of images displayed therein.
...
Is there a way to create a timer (say, to 10 seconds) on a different thread?
I mean, I know how to use CreateThread() and I know how to create/use timers. The problem I have is that the new thread cannot receive a callback function.
For those that will inevitably ask "why do you want to do this?" the answer is because i have to do it th...
ok.. heres the site with the examples..
Prototype Window Class xilinus.com
prototype-window.xilinus.com/samples.html
i want to use the third (3) example on my site on an swf content but i cant understand the code and the how to.. especialy the calling of the script (a href=# onclick=mplampla() embed .... /embed /a
...
Within a VB.NET program, I want to read files from a filesystem, then write a compressed version of those files to a remote, secure fileshare, using different credentials.
The analogous operation at the cmd prompt is:
net use s: \\server\share /user:foo P@ssw0rd
copy a+b | compress > s:\foo.bin
net use s: /delete
Is this possible? ...
I asked this in http://stackoverflow.com/questions/1188396/createdesktop-with-vista-uac-c-windows
I set a bounty but in trying to vote down the only answer the "accept" was pressed by mistake (i've been awake for more than 48 hs). so I am asking it again.
I'm using CreateDesktop() to create a temporary desktop where an application will...
I had been running Fedora 9 for the last year --- I have a Windows box (actually a VM) that mounts a folder on the Fedora box using my own name/password. I do this so that I can run my version control program (Vault) on Windows. It has worked flawlessly for the last 6 months.
Yesterday, I upgraded Fedora from version 9 to version 11. Si...
I have a routine that creates n instances of a particular workflow and runs them each serially. How could I fire them off async?
Current p-code:
forloop
// Create
var syncEvent = new AutoResetEvent(false);
WorkflowInstance myInstance = new WorkflowInstance(new SomeWorkflow(), parameters);
...
Hi,
Has anyone managed to install Groogle on a Windows server? I get all sorts of problems installing the PEAR and PECL extensions that are needed, and as there are no instructions on how to do the installation it is non-trivial.
...
Dear All,
I am using the Windows Filtering Platform API,to block some URL,
I wanted to know is there any way to block all url and give exception to only few url.
Please help me in this regard,
give me ur thoughts on this
with regards
Vinayaka Karjigi
...
Hi,
I'm trying to find out whether a Socket is currently connected - according to the MSDN docs for Socket.Connected - I should do the following:
// This is how you can determine whether a socket is still connected.
bool blockingState = client.Blocking;
try
{
byte [] tmp = new byte[1];
client.Blocking = false;
client.Send(...
I have a application using Flash.ocx to get the frame picture from SWF file, after updating adobe flash player to the newest, the frame picture is totally wrong.
Is there a way to keep the old Flash.ocx in my running folder and my application will use that instead of the one in the system folder? I tried add the flash.ocx within applicat...
Hello,
I'm writing a program that, among other things, needs to copy a particular file to a network folder. Since I'm on a company network, the credentials needed to access that folder are the same as my Windows credentials.
The program works if I open the folder in Explorer, provide my username and password, and then run the uploader....
My (MS Windows) application can update itself over the internet by download a self extracting archive and launching it via _execv (C++). Now while launching the sfx archive works fine on Windows XP, it doesn't on Windows 7. I guess it has to do with UAC, but even turning UAC off didn't cure this problem. The downloaded sfx archive has th...
I'm am developing a Firefox extension which interfaces with an underlying Windows service (which I have already made).
During the development so far I encountered one bug in the installer program (which installs the FF extension AND the service). This was due to the security model on Vista requiring elevated privileges to be able to ins...
Hello,
I want to know when I am programming an application, say both unix and windows.
If program stops (got an exception), what resource I should release ?
objects on the head ? DB connections ? file descriptions ? shared memory ?
If I am not mistaken unix releases all except from shared memory and temp files, right ?
Is there some...
Hi all,
For about a year now, I've had problems trying to send and receive email programmatically using Visual C#. Not a single example out of hundreds that I've found on the web have ever worked. And no, I don't just copy and paste. I study the code, and modify/add/remove as needed.
Can somebody PLEASE help me sort this out. I'm tryin...
I have a Windows DLL that I want to call from Perl. The prototype for the exported function is:
int __stdcall func(const char*, int, int, int, double, double, void**);
The last parameter returns a pointer to an object that is allocated in the function.
The perl code –
my $dll_path = "../stage/test_dll.dll";
my $dll_func = new Win32...
Hi
I would like to make a small program listing running programs on my
computer - this seems simple. But I would also like to detect their
connections, ex.: I detect a running Internet Explorer (or other
browser), but I would like to know which websites it is visiting.
Another example; I detect Word is running, and would like to know wh...
I have an interface which return a Control based on File Name
for example if there's an html file I am returing an Instance of WebBrowser Componet.
This WebBrowser Component inherits from WebBrowser Class.
I need to update this component so that it can accomodate a grid as well.
What Should I do ?
I am working on Windows Application ...