windows

CDialog doesnt show in task bar

Im trying to get a CDialog that has no border or frame to show in the task bar. It is created in the InitInstance of CWinApp (used to update the app) and i have tried setting the WS_EX_APPWINDOW flag but it still doesnt show in the task bar. Any ideas? Edit: As defined in the resource: IDD_UPDATEFORM_DIALOG DIALOGEX 0, 0, 246, 124 S...

Mounting archives such as *.zips (work in kernel mode without drivers)

I was wondering if there was a way to make a *.dll that mounts archives in Windows without the need for installing drivers. I've tried mounting *.isos (and was successful), but I needed to install drivers, which was not something my intended audience wants to do (or can do). The other relevant alternatives were for Linux (fuse-zip) or d...

How to apply diff made by windows SVN on linux?

On windows i created a multi-file diff with: svn diff > mydiff.diff Then moved it to linux machine (with the same version of the same repo, no changes). How cai i apply it? After executing patch -p0 < mydiff.diff I get the following output: patching file licstat/test/unittest/test_licstatactioncontainers.cpp File licstat/test/uni...

What is the most suitable method for implementing heavy graphix in windows?

hello i m using c# and suffering with delay problem. i want to change the technique for handling the graphics before this i want to know what will be the most efficient method for implementing heavy graphics, i started making bmp files for each dynamic and static module and at the end i updates the whole GUI by pasting this bmps as laye...

How do I read stdout/stderr output of a child process correctly?

I have written a program a.exe which launches another program I wrote, b.exe, using the CreateProcess function. The caller creates two pipes and passes the writing ends of both pipes to the CreateProcess as the stdout/stderr handles to use for the child process. This is virtually the same as the Creating a Child Process with Redirected I...

autom4te-2.65: need GNU m4 1.4 on Windows cygwin

User > ~/mysql-5.1.46 $ automake .... sh: fork: Resource temporarily unavailable autom4te-2.65: need GNU m4 1.4 or later: /cygdrive/e/cygwin/bin/m4 automake-1.10: autoconf failed with exit status: 1 I did run ./configure and want to do make now.. Please suggest ...

WCHAR to LPCWSTR

when i use CreateFile function like below ...it gives me valid handle HANDLE hDevice = CreateFile (TEXT("\\\\.\\G:"), 0,FILE_SHARE_READ | FILE_SHARE_WRITE, // share mode NULL, OPEN_EXISTING, 0, NULL); if( hDevice == INVALID_HANDLE_VALUE ) { qDebug()<<"In valid handle"; } else { qDebug()<<"valid han...

messages for cstatic

hi all, 1.i have derived a class from CStatic called CLed_arr. 2.a cstatic control named IDC_leds was added to the dialog window in resource editor. 3.a member var called m_led_arr of the class CLed_arr was created for this IDC_leds. 4.the class CLed_arr contains an array Led[16] of objects of class CLed. 5.the class CLed itself is deri...

How to integrate windows live web authentication into a CMS in PHP

Hello I am using Joomla as CMS. Right now there is No plugin that enables windows live logins. I already downlaoded the windows live ID SDK. The PHP sample works well but I need to make some changes. I want to have credentials to be checked without being redirected to http://login.live.com! I just need a background check which returns...

What is the registry location of windows vista search history?

Hi what is the search history location in vista? I need to get it programmaticaly. I know that in other windowses, its in: windows xp/2000 * HKEY_CURRENT_USER\Software\Microsoft\Search Assistant\ACMru\5603 Windows 98 * HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Doc Find Spec MRU Windows 7 * HKEY_CURRENT_...

Hanging on WaitForExit

Hi, I have a WaitForExit which seems to hang. I've taken a look at this post: http://stackoverflow.com/questions/139593/processstartinfo-hanging-on-waitforexit-why And I've seen the code it refers to on MSDN. The thing is when I add the string output = p.StandardOutput.ReadToEnd(); It jumps straight to the WaitToExit before it has fi...

windows xp process change listening port

Hi, I have a legacy client/server application where the listening and sending ports are taking dynamically. Is their any way in windows xp to change the listening port of a running application?? Thanks, Mahesh ...

Use Remote Machine IP for Internet

Hi, How can I connect to internet using Remote machine IP. ...

Launching an executable without modifying HKLM or PATH

I want to install an EXE on a limited Windows account and be able to have it launched from other applications (probably using ShellExecute Windows API calls) without the caller knowing the full path to the folder where the EXE is installed. My only options seem to be modifying the PATH or adding an entry to HKLM (SOFTWARE\Microsoft\Wind...

DirectShow ISampleGrabber which accepts VIDEOINFOHEADER2

As stated in http://msdn.microsoft.com/en-us/library/dd377544(VS.85).aspx, ISampleGrabber accepts only videos with VIDEOINFOHEADER structure, but not VIDEOINFOHEADER2. Is there any alternative to ISampleGrabber, or any example code for a filter that would do similar job? I have tried with IBasicVide, but it renders video on the screen wh...

How can I get the path for the last created file in a directory using Ruby?

How can I get the path for the last created file in a directory using Ruby? ...

Win7 Drag&Drop: Possible to find out if COleDataObject contains shell library?

I have an application with a file and folder list control which supports Drag&Drop operations. Now I would like to make it possible for the user to be able to drop a Windows 7 Library (e.g. Music, Pictures and so on) into this control. In my drop handler I have a COleDataObject and now I'm trying to find out, if a library has been dropp...

Installing services remotely

Is there a way to install services remotely, without necessarily resorting to .msi packages or full-blown installers? I'm currently using a method similar to the one discussed here: http://stackoverflow.com/questions/358700/how-to-install-a-windows-service-programmatically-in-c to install a service locally, and it works fine. However, ...

Custom titlebar icons - Vista / Windows7

I'd like to add a custom button to my Window's titlebar. This doesn't need to work on XP - just Vista and later. Searching on the net yields lots of results for doing it the WM_NCPAINT way (eg. http://www.catch22.net/tuts/custom-titlebar). Is there a way to do this using Vista/Windows7 with Aero is enabled? Thanks for any help, Dan. ...

Preview JPG for a windows media player.

I'd like to have a JPG preview for my simple .wmv player. Any ideas? Here it is... <div id="embed"> <OBJECT id='mediaPlayer1' width="360" height="240" classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52...