windows

How to retrieve data from a ListControl(ListView)?

Hi! I have a listcontrol with three columns. I want to read what text is in the third column. I need this, because i want color this column according to that what text is in it. Can anyone tell me, how to read the data? Thanks in advance! kampi ...

Windows FLP comparaison ...

http://en.wikipedia.org/wiki/Windows_Fundamentals_for_Legacy_PCs http://en.wikipedia.org/wiki/Windows_2000 http://en.wikipedia.org/wiki/Windows_XP I need a small and full-featured (by adding portable apps) windows ... For now, I just make a 5Gb partition, install FLP that take 2Gb and add drivers/ext reader/portable apps (in /home on...

InstallLocation is not written using standard installer?

I'm trying to get an application to pass the Windows 7 Software Logo Toolkit tests. Everything works, just one part does not: The Toolkit test warns that my installation does not set the InstallLocation of my program. I use the standard installer coming with VS2008SP, and I can't find no way to set the InstallLocation. I thought the in...

How to select the version of the VC 2008 DLLs the application should be linked to?

I'm using Visual Studio 2008 SP1 for C++. When compiling, Visual Studio needs to choose against which version of the CRT and MFC DLLs the application should be linked, version 9.0.21022.8 (= RTM), 9.0.30729.17 (= SP1) or 9.0.30729.4148 (= SP1 with security update). I'd like to know how you can choose which of both versions will be linked...

Installation package contains unsigned files (windows 7 logo test)

I'm trying to get an application to pass the Windows 7 Software Logo Toolkit tests. I thought I'd be finished by now, but the Windows 7 Software Logo Toolkit found one more problem to report to me. It complains about an unsigned file in my installation package, namely: Non-driver file c:\users\root\appdata\roamind\microsoft\installer...

How can I save HICON to an .ico file?

Hi, everybody, I am extracting an icon from .exe/.dll and want to save it in an .ico file. What is the best way to do this? I have tried to use ::OleCreatePictureIndirect() and then IPicture->SaveAsFile(). It works but transparent parts of the icon are painted black (and obviously are not transparent any more:(). I tried manual parsin...

How to hide menu? lpszMenuName

I managed to make the menu with this piece of code and using Visual Studio 2008: WNDCLASS wc; ... wc.lpszMenuName = MAKEINTRESOURCE(IDR_MENU1); ... if(!RegisterClass(&wc)) ... But how i can hide the menu by just pressing a button of my choice? There is ShowWindow() function, but it doesnt work on menus... so what function i use to...

How to prevent a file being copied or cut in windows file system?

I want that an exe file can't be copied or cut from the Windows file system to paste somewhere. The exe is made in C#. which must have to be in only one PC. I have worked with FileSystemWatcher, NSIS, Clipboard. but for all I need to detect whether that file is being copied. I also have seen 'Prevent'(http www free-download-blog.com d...

MPEG 4 SDK for Windows

Hi there, can anyone recommend a MPEG4 library that will compile(or is compatible) with Intel or Visual C++? EDIT: clarification I was not aware of x264, and ffmpeg does not compile with VC++ (compiles with MingW). Basically I need a library that can be compiled on Windows (or the name of a vendor) that will allow me to extract frames ...

how to determine windows update level through IUpdate interface

Hi, I want to count available "important" windows updates in a c++ program. When windows updates reports about available updates, it classifies them by level. In vista the possible levels are {important, recommended, optional} XP : {high-priority, optional} http://www.microsoft.com/windows/downloads/windowsupdate/updatelevels.mspx I ...

C# WMI runs an exe on a remote computer that then runs another exe on the same computer that then calls Directory.CreateDirectory on a network path and fails. What am I missing?

Using C# WMI I start an exe on another computer and this exe starts another exe using the C# Process class. The last exe tries to call Directory.CreateDirectory using a network path (aka \\comp1\d$\dir). Directory.CreateDirectory throws this exception: Access to the path '\\\\blah\blah\blah' is denied. at System.IO.__Error.WinIOError(...

Can somebody recommend a good U3D library?

I need to put some 3D images into PDF files, and PDF uses Universal 3D (U3D) formats. I don't like the U3D Sourceforge project (basically what Intel released after the ECMA standardization effort). Does anybody know of good U3D libraries I could use? I'm using C++ on Microsoft Windows, FWIW. ...

Check if a DLL is present in the system

Hi, quick question. I want to find out if a DLL is present in the system where my application is executing. Is this possible in C#? (in a way that would work on ALL Windows OS?) For DLL i mean a non-.NET classic dll (a Win32 dll) (Basically I want to make a check cause I'm using a DLL that may or may not be present on the user system,...

Simple modular guide in C/++?

I think modular is the correct term; to give a basic example if I was to create an encryption application which you could type in like notepad, and then save encrypted, however under the save menu there are options to save for the encryption methods that you have plugins for like AES, Blowfish etc, and also allow new methods to be coded ...

Is it possible to resolve a hostname from an IP address without DNS?

Assuming you have an IP address and no other information. You're not allowed to use DNS as it may be reporting invalid information. Also assume that the destination machine is running a Microsoft OS and is currently online and booted. Is there any way to query the machine directly using the IP address (some service/port) to find out...

Web-based or PC based for process control application ?

I want to create a process control application. Events update the database and that should be reflected on the GUI. Although I personally prefer Linux, the hard fact it that 100% of the potential customers I can imagine run Windows. Ok, for Windows I am comfortable with C++ Builder. I suppose I could switch to NetBeans and use Java j...

Is anyone familiar with the undocumented ObReferenceObjectByName windows kernel function?

I read a very fascinating article that was about programming drivers using the wdk, and one of the functions it used is called ObReferenceObjectByName. This function has given me lots of headaches. The first bad thing is that it's not documented by microsoft. The second thing, is that the language used in the article was C++, and I wa...

Cross-platform Emacs Script

I'm trying to code up an Emacs script that has to manipulate the clipboard (just getting the last entry and manipulating it as a string). The problem is that I work on Linux (at home) and Windows (at work). In Windows, I have to use the function (w32-get-clipboard-data), whereas Linux uses (x-get-clipboard) for the same purpose (and each...

How to get shell_exec to run on IIS 6.0

The Problem I have a PHP script that uses shell_exec to run a pdf-to-text converter. To simplify the problem I've created a short script that uses shell_exec to just echo the output of the dir command. <?php $cmd = 'C:\\WINDOWS\\system32\\cmd.exe /c '; echo shell_exec($cmd.' dir'); ?> When I run this on my Apache server, everything w...

how to display new window in current browser window (html)?

Hi, I am trying to create an embedded <script> containing a function called "showForm()" that displays the contents of a file called "form.htm" within the main browswer window. This is what I need to do: Display the form.htm file in the browser window that was used to open the cover.htm file. (hint: use the "opener" keyword to refere...