windows

Pointers in and out of DLLs

Is it possible to pass a pointer to an object into a DLL, initialize it, and then use the initialized pointer in the main application? If so how? Are there any good articles on the subject, perhaps a tutorial? I have read this article http://msdn.microsoft.com/en-us/library/ms235460.aspx But that did not seem to get me any where. Maybe ...

TabCtrl_SetItemSize and user drawn tab controls

Hello. I have this Win32 user-drawn tab control that is created as: CONTROL "Tab1",IDC_TAB_CONT,"SysTabControl32",TCS_BOTTOM | TCS_OWNERDRAWFIXED | NOT WS_VISIBLE,0,14,185,88 I'd like for this control to have its tabs resize as never to have to see the "sliding arrows": Now, pretty much everything about this contr...

How to get the output of a System.Diagnostics.Process?

I run ffmpeg like this: System.Diagnostics.Process p = new System.Diagnostics.Process(); p.StartInfo = new System.Diagnostics.ProcessStartInfo(ffmpegPath, myParams); p.Start(); p.WaitForExit(); ... but the problem is that the console with ffmpeg pops up and disappears right away, so I can't get any feedback. I don't even know if the p...

Problem in Ruby Shoes packaging?

The (Ruby Shoes) packaging solution from Hacketyhack.net doesnt work. Can anyone point me to an alternative? ...

Read a PNG Using Win32 / C++

That there is no simple way to read a PNG file into a memory bitmap in native Windows seemed impossible, but after much googling I'm beginning to believe it. The libpng/zlib combination is just too big. Any third-party libraries Win32 libraries out there for reading a PNG? Edit: The boost::gil::png solution is much more complex than I'...

Named Pipe strategies with dynamic memory?

Hokay so I have an application where I need some IPC... I'm thinking named pipes are the way to go because they are so easy to use. Anyways, I have a question about how to handle dynamic memory using named pipes. Say I have a class such as this: class MyTestClass { public: MyTestClass() { _data = new int(4); } int GetData(...

Can We Upload the Windows Application in IIS in .net

Hi, I have a windows application developed in .net c#. I want to put it in IIS similar to web application. Is it possible?? My requirement is: Just like web application, i want to get the URL for this Windows application and use the link to remotely access the windows application. Please suggest. Thanks Rupa ...

Is constant polling in RXTX necessary?

While trying to figure out this problem (any help there is appreciated), I ran RXTX while monitoring its activity using PortMon and noticed that RXTX constantly checks if data is available, even when the Java client reads from the gnu.io.SerialPort object only through a SerialPortEventListener. Why is this? Is it a poor implementation ...

how to get event when application is closed from task manager

Hi All, I have developed a win32 application using c/c++, which runs on vista and xp, I wanted to know, can i get any event in my application when my application is killed from task manager, by selecting the "end process" button I want to free some memory on exit of my application. Please help in this regard with regards, Vinayak...

windows cmd connection to remote mysql dbf

is there a way of how to connect to mysql dbf on a remote server and run sql queries using windows command line? ...

How to mix-and-match inputs from two game controllers into one "virtual" controller?

Image the following situation: You're on Windows XP (even though the dialog shown below is a Vista screenshot). You have two physical USB game controllers, let's call them A and B. You have a piece of software that apparently accesses joysticks in a legacy way, only recognizing and allowing use of one single joystick. When using this s...

Windows prompt: ISO 8601 date?

How do I set the command line prompt in Windows to display current ISO 8601 date and time (e.g. 2009-09-08T13:01:56) instead of the default of current directory? Update. Set it by: right click My Computer/Properties/tab Advanced/Environment Variables/System Variables/New/ Variable name=PROMPT and Variable value=$DT$T $P$G /OK/OK/OK. Reg...

Windows 7 Action Center

I would appreciate it if someone can guide me to the new MS APIs necessary for modifying/controlling the Windows 7 Action Center. What I need to do is integrate the Backup notification messages in my application which is a backup application in the Action Center. In other words, I want Windows to show that the backup operation was succes...

mysql oledb driver

how to install mysql oledb driver in local system. please give Mysql oledb Connection string ...

VB.NET Write yields #ERROR 448#

I have a bit of ported code. It was automatically converted from VB6 to VB.NET. Now when if finally compiles, it produces output files with some values replaced with literal #ERROR 448#. I will eventually find out what's the problem, but I just wonder, if anyone knows what does this error mean. VB's Write function is used. ...

Nicer notifications in tray

Hi, Do you know any example with nicer notification in system tray? I don`t like standard baloon so maybe there are others free, third-party components I can use? Thanks ...

Change Vim command to work in MS-Windows? Use make to check python syntax

:make provides a list of errors which can be navigated through in order to fix. The problem is that this script only works in Unix based OSes. autocmd BufRead *.py set makeprg=python\ -c\ \"import\ py_compile,sys;\ sys.stderr=sys.stdout;\ py_compile.compile(r'%')\" autocmd BufRead *.py set efm=%C\ %.%#,%A\ \ File\ \"%f\"\\,\ line\ %l%....

detect program termination (C, Windows)

I have a program that has to perform certain tasks before it finishes. The problem is that sometimes the program crashes with an exception (like database cannot be reached, etc). Now, is there any way to detect an abnormal termination and execute some code before it dies? Thanks. code is appreciated. ...

Writing a windows driver for an emulated input device

My application needs to behave as a virtual joystick (imagine dragging a square with the mouse and translating that to the output of an analog joystick) and send some keystrokes over the network to another computer where the driver would receive that input. I only need to support XP, Vista and Win7. Maybe it can be done without writing...

Can I Change the Logged-In (Windows) User While an Application is Running?

Let's say we have an application that has a number of features and each feature as a permission set of users that are allowed to use that feature. The application is designed to be always-on, but at different times during the day we want different users to log on and use it. Rather than reinvent the wheel and create yet another user acc...