windows-7

Can't install Tomcat with xampp control panel

只愿长相守 提交于 2019-12-23 22:28:16
问题 I successfully installed xampp v3.2.1 following the JetBrains guide. In there it has been said that Once stopped, we can click the X next to the server we want to install as a Windows Service . For example, we can install Apache as a Windows Service. After clicking the X , we have to confirm installation by clicking Yes . I just did that for Tomcat but it's giving a message of [Tomcat] Service was NOT (un)installed! What to do? A pic so you can see as well 回答1: Figured it out! I went to C:

Create error messages Delphi 7

浪子不回头ぞ 提交于 2019-12-23 21:31:16
问题 Ok, I am currently a Grade 11 student thats taking IT. I am trying to finish a Practical assignment but I ran into a bit of a problem, the textbook I am using didn't show me how to Create an error message if the user did not enter data into a RichEdit. Could anyone advise me on how to do this? thank you for taking the time to help. 回答1: This is how you raise a generic exception (using the SysUtils.Exception class): raise Exception.Create('Error Message'); An unhandled exception causes the

How do I read boot time events on Windows 7?

断了今生、忘了曾经 提交于 2019-12-23 20:18:58
问题 I am trying to use the ETW functions without success to read the file: C:\Windows\System32\winevt\Logs\Microsoft-Windows-Diagnostics-Performance%4Operational.evtx In order to capture boot time events. I have tried various functions - OpenTrace gives an error 161 EvtQuery gives an error 15000 Does anyone have a native code example of reading system trace files? 回答1: I got this working as follows - LPWSTR pwsPath = L"Microsoft-Windows-Diagnostics-Performance/Operational"; LPWSTR pwsQuery = L

Disconnect and Reconnect Displays Programmatically

给你一囗甜甜゛ 提交于 2019-12-23 20:16:25
问题 Question: What is the best way to programmatically disconnect and reconnect displays programmatically? The Goal: Kill the video output (black screen with no backlight) on a display and later turn it back on. Imagine unplugging the video cord from the monitor, then plugging it back in. My Attempt: // Get the monitor to disable uint iDevNum = 0; DISPLAY_DEVICE displayDevice = new DISPLAY_DEVICE(); displayDevice.cb = Marshal.SizeOf(displayDevice); EnumDisplayDevices(null, iDevNum, ref

Using Visual Studio 2005 (32bit) on a Windows 7 64bit machine

浪子不回头ぞ 提交于 2019-12-23 19:43:45
问题 I need to use Visual Studio 2005 (C++) on my new laptop - a Sony Vaio with Windows 7 64bit.. I don't need to develop for a 64bit environment, my work is all 32bit, so how can I be sure that I can still develop/debug/test for a 32bit target environment using VS2005 on a 64bit machine....? What's the best option: 1) Just install VS2005 on Windows 7 64bit and carry on.. (suspect problems with 64bit runtime libs..?) 2) Dual boot the laptop with Windows XP 32bit. 3) Run some kind of Virtual

SSLException: Connection has been shutdown: javax.net.ssl.SSLException: Tag mismatch

纵然是瞬间 提交于 2019-12-23 19:34:11
问题 In Android Studio, when I try to update large SDKs through the SDK Manager, I keep getting the following error: SSLException: Connection has been shutdown: javax.net.ssl.SSLException: Tag mismatch! This always happens with large SDKs. What should I do? I have no idea about what I should do. I use Android Studio 2.2.3 and Windows 7x64. Any help will be appreciated. 回答1: I faced similar problem.I solved it by selecting Force https to be fetched as http option under SDK Update Sites tab of SDK

twofaced file problem

﹥>﹥吖頭↗ 提交于 2019-12-23 19:17:39
问题 I'm reading in my program some files from system32 folder; and one of these files (C:\Windows\System32\gdi32.dll) demonstrates a very strange behavior. When I'm reading it from my program, it shows size of 310'784 bytes; and when I view it's size from Explorer, it shows size of 404'480 bytes. How could that be? 回答1: The most likely explanation is that your program is 32-bit and Explorer is 64-bit. When a 32-bit program opens files in C:\Windows\System32 (which contains 64-bit DLLs), it's

Catch audio sessions events

岁酱吖の 提交于 2019-12-23 18:28:22
问题 I try to write some application that will monitor audio sessions (like SndVol does). I activated IAudioSessionManager2, got list of current audio sessions through IAudioSessionEnumerator, registered for the notification using RegisterSessionNotification method in audio session manager. However, my application never receives notification OnSessionCreated(). Of course, I read the similar topics here: Notifications not sent, IAudioSessionNotification anyone have working code I read carefully all

MS SQL-Server: cannot ODBC- connect on Windows 7?

孤街浪徒 提交于 2019-12-23 18:26:22
问题 I have a problem creating an ODBC data source connection for SQL-Server on Windows 7. Problem summary: ODBC datasource connection can be created for the "master" database only, not for an additional, arbitrary database. I have googled around the Net and haven't found a solution. Here are the details: I have MS SQL Server installed on a Windows 7 64-bit system. Details: SQLEXPRESS edition, version: 10.1.2531.0, build: 2007.100.2531.0, Instance ID: MSSQL10.SQLEXPRESS. Using "SQL Server

How to set timer in an event handler?

不羁岁月 提交于 2019-12-23 18:15:59
问题 Am currently building an app and I want the timer to start only when I click a particular button. So is there anyway to start timer once a button is clicked? (I don't want the timer to start as soon as the page loads) 回答1: Check this post. //Inside Page Load System.Windows.Threading.DispatcherTimer dt = new System.Windows.Threading.DispatcherTimer(); dt.Interval = new TimeSpan(0, 0, 0, 0, 500); // 500 Milliseconds dt.Tick += new EventHandler(dt_Tick); Tick Event Handler for your timer void dt