windows-7

VB6 is application running as administrator

一笑奈何 提交于 2019-12-23 13:05:00
问题 Is there any way of finding out if the application is running as administrator? If this involves a COM call, I'm not really fussed, anything that works! 回答1: IsUserAnAdmin is an easy call and seems perfectly reliable for use in VB6 programs. It seems to work fine even in Win8. Note that it reports whether the process is running with admin rights, not whether the user is in the Administrators group. Declaring it this way it should work all the way back to Windows 2000: Private Declare Function

How can i programmatically manipulate the Windows 7 on-screen keyboard osk: Move, Resize, Remove Titlebar/Caption

你。 提交于 2019-12-23 12:53:39
问题 I'm working on a WPF app where i want to display the built-in windows 7 onscreen keyboard in a 'always there' manner. So i want to: Move it to a particular location Set it to a certain width and height Remove the caption/titlebar so the user can't move it around or close it Remove that abilty to resize it (or any other user adjustments for that matter). I've tried all the typical API functions (MoveWindow, SetWindowPos, SetWindowLong, etc...) but it refuses to do anything. Code currently

How to schedule a call to an MS Access macro?

孤街浪徒 提交于 2019-12-23 12:49:23
问题 I'm looking to schedule a call to an MS Access macro. This macro uses a .csv file (that I get daily) to update a SharePoint calendar. Could someone please explain how to schedule a daily call to run this macro (I'm using Access 2003, say EventsCalendar.accdb and macro called Run1) on my Windows 7 machine? I need to automate it to run every morning. Thanks! 回答1: Write a VBScript script that can run the macro straight from Windows. You can do this by first creating an Access application object

Windows 7 Program Compatibility Assistant appeared for my app. Why?

天涯浪子 提交于 2019-12-23 12:38:37
问题 I have created a native application. It works without questions under Win XP and Win Vista. Under Win 7 my application installed fine. I ran it. It worked normally until i selected 'Exit' from menu. On exit "Program Compatibility Assistant" window appeared telling me my application is incompatible with Windows 7 and some compatibility settings was applied. My questions are: How can i know what my application did to trigger Program Compatibility Assistant? Is there any list of do's and dont's?

Finding an Install of OpenGL for 64 Bit Windows

风格不统一 提交于 2019-12-23 12:18:18
问题 I am trying to get started on opengl programming from the videotutorialsrock.com site. It wants me to install GLUT and the OpenGL SDK. I was able to download GLUT successfully but the link he has on this page http://www.videotutorialsrock.com/opengl_tutorial/get_opengl_setup_windows/text.php does not work on my 64 bit Windows 7 install. I tried going to the OpenGL page and did not find a download. I am not very familiar with OpenGL just yet so I am hesitant to just download some OpenGL

How do I configure .net framework 3.5 in windows 7

∥☆過路亽.° 提交于 2019-12-23 12:18:06
问题 I am trying to use the .net configuration tool in windows 7 but can not find it. Does anyone know where to download this tool from or where it is located in windows 7 (prof)? 回答1: The tool comes with Microsoft® Windows® Software Development Kit This Google Search might helpful too NOTE: There's a later one for Win7 回答2: Unless you have the SDK installed, you won't have the tool. There is a command line version installed with the non-SDK version however: C:\Windows\Microsoft.NET\Framework\v2.0

Building with XAudio2 on Windows 7

 ̄綄美尐妖づ 提交于 2019-12-23 12:08:55
问题 I'm trying to use the following instructions to build some code that uses XAudio2 and runs on Windows 7: http://msdn.microsoft.com/en-us/library/windows/desktop/ee663275%28v=vs.85%29.aspx As suggested, I'm including the XAudio2.h from the DirectX SDK: #include <%DXSDK_DIR%Include\xaudio2.h> Result: fatal error C1083: Cannot open include file: '%DXSDK_DIR%Include\xaudio2.h': No such file or directory Oh well. I was pretty sure VC++ didn't expand environment variables like that anyway. So I

why i don't have Microsoft.VC80.MFC-file?

眉间皱痕 提交于 2019-12-23 10:28:30
问题 Got a fresh Win7 machine with VS2005 installed. I tried to start a MyApp.exe that is built with manifest that says in Manifest.bin: ... <assemblyIdentity type="win32" name="Microsoft.VC80.MFC" version="8.0.50727.4053" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"> </assemblyIdentity> ... and the result was error message "The application has failed to start because it's side-by-side configuration is incorrect... Event viewer told me the reason in detail: Activation context

Communication between windows service and desktop app

。_饼干妹妹 提交于 2019-12-23 09:37:57
问题 I want to create a communication between a windows service and a desktop application on Windows 7. I read that named pipes are one way for communication between two processes. Can i use them for my purpose? 回答1: sure you can use named pipes, WCF many other IPC methods. for named pipe example among stack overflow questions, see here as well for some backgound: Inter process communication using Windows service also check this one: GUI and windows service communication 回答2: As indicated above,

Why the screenshot doesn't work (black screen)?

Deadly 提交于 2019-12-23 09:36:37
问题 Service is "Allow Service to Interact with Desktop". unit Unit1; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, SvcMgr, Dialogs; type TCopyDesk = class(TService) procedure ServiceContinue(Sender: TService; var Continued: Boolean); procedure ServiceExecute(Sender: TService); procedure ServicePause(Sender: TService; var Paused: Boolean); procedure ServiceShutdown(Sender: TService); procedure ServiceStart(Sender: TService; var Started: Boolean); procedure ServiceStop