windows-xp

Output Unicode to console Using C++, in Windows

风流意气都作罢 提交于 2019-12-17 02:31:32
问题 I'm still learning C++, so bear with me and my sloppy code. The compiler I use is Dev C++. I want to be able to output Unicode characters to the Console using cout. Whenver i try things like: #include <iostream> int main() { std::cout << "Hello World!\n"; std::cout << "Blah blah blah some gibberish unicode: ĐĄßĞĝ\n"; system("PAUSE"); return 0; } It outputs strange characters to the console, like µA■Gg. Why does it do that, and how can I get to to display ĐĄßĞĝ? Or is this not possible with

intl extension: installing php_intl.dll

…衆ロ難τιáo~ 提交于 2019-12-17 02:27:17
问题 I'm trying to locate php_intl.dll and install it. Does anyone have any tips? 回答1: The packages at http://windows.php.net/download/ all contain the php\_intl.dll which is located in the subdir ext/ . All you have to do is to check if your extension_dir points to the right directory and add (or uncomment) the extension=php\_intl.dll directive. 回答2: For the php_intl.dll extension to work correctly, you need to have the following files in a folder in your PATH : icudt36.dll icuin36.dll icuio36

How to check in command-line if a given file or directory is locked (used by any process)?

安稳与你 提交于 2019-12-17 02:24:16
问题 I need to know that before any attempt to do anything with such file. 回答1: Not sure about locked directories (does Windows have that?) But detecting if a file is being written to by another process is not difficult. @echo off 2>nul ( >>test.txt echo off ) && (echo file is not locked) || (echo file is locked) I use the following test script from another window to place a lock on the file. ( >&2 pause ) >> test.txt When I run the 2nd script from one window and then run the 1st script from a

Which script would append a new line to a table in “MS Word” 2003?

会有一股神秘感。 提交于 2019-12-14 04:11:20
问题 I have this simple table in MSWord 2003: I want to append one more line to this table: turtle dog rooster maple Which VBScript commands (or set of commands) would I need here to do it automatically? (I am using "Windows XP") 回答1: Here are some notes. Set wd = CreateObject("Word.Application") wd.Visible = True Set doc = wd.Documents.Open ("c:\docs\addtotable.doc") Set r = doc.Tables(1).Rows.Add aa = Split("turtle,dog,rooster,maple", ",") For i = 0 To r.Cells.Count - 1 r.Cells(i + 1).Range.Text

Windows console command to open multiple pages in Internet Explorer 7

﹥>﹥吖頭↗ 提交于 2019-12-14 03:49:40
问题 How do I open multiple pages in Internet Explorer 7 with a single DOS command? Is a batch file the only way to do this? Thanks! 回答1: A batch file will work as a quick and dirty solution. @echo off @setlocal :openurl set url=%~1 if "%url:~0,4%" == "http" ( start "%ProgramFiles%\Internet Explorer\iexplore.exe" "%url%" ) if NOT "%url:~0,4%" == "http" ( start "%ProgramFiles%\Internet Explorer\iexplore.exe" "http://%url%" ) shift if "%~1" == "" goto :end goto :openurl :end Edit: added support for

Windows XP Screen Saver - Launched Process Dies with Screen Saver

你。 提交于 2019-12-14 03:06:08
问题 I'm building a rather specialized screen saver application for some kiosks running Windows XP. Users tend to leave the kiosks without returning the browser to the homepage, so the screen saver does the following: Launches via the standard screen saver mechanism Notifies the user that there has been no recent activity, and that the browser will close in X seconds. If X seconds passes without user activity, the screen saver kills all current browser instances (via Process.GetProcessesByName)

strncpy_s error when deploying ffmpeg streaming application on XP

会有一股神秘感。 提交于 2019-12-14 01:23:43
问题 I'm trying to deploy an application that uses ffmpeg to stream camera output to an XP machine. The application is written compiled with gcc mingw32 and runs fine on Windows 8. But on Windows XP I get the following error: The procedure entry point strncpy_s could not be located in the dynamic link library msvcrt.dll GCC command, excluding paths: g++ -o mingw\streamer.exe src\testffmpeg.o -lavformat -lavutil -lavcodec -lFlyCapture2_C_v100 Dependency walker shows the following: How can I work

Load 2 versions of the same DLL in the same process

时光毁灭记忆、已成空白 提交于 2019-12-14 00:16:53
问题 I want to do exactly what it is described here, but the accepted solution does not work for me. I suppose the reason is explained here : If a DLL with dependencies is loaded by specifying a full path, the system searches for the DLL's dependent DLLs as if they were loaded with just their module names. If a DLL with the same module name is already loaded in memory, the system checks only for redirection and a manifest before resolving to the loaded DLL, no matter which directory it is in. The

How can I override or customize the delete confirmation dialog in Windows?

偶尔善良 提交于 2019-12-13 17:42:48
问题 When we press Shift + Delete key, a delete confirmation dialog is generated. I want to handle this dialog according my need or change its message. Can anyone tell me what thing is responsible for that dialog? I either need to know the code which handles the delete confirmation dialog generated by the Shift + Delete key sequence in Windows XP, or the code by which we can control this operation. 回答1: I don't think what you want to do is going to be fun. Im guessing you have to intercept the

Is android application not running on Virtual Box?

主宰稳场 提交于 2019-12-13 16:13:54
问题 I'm getting the following error while running the android application. Currently i'm using Windows XP and installed through Virtual Box. invalid command-line parameter: Files\Android\android-sdk\tools/emulator-arm.exe. Hint: use '@foo' to launch a virtual device named 'foo'. please use -help for more information But that same application will running on normal Windows XP Pc. Is there any issue on Windows XP with Virtual Box? or Is there any other issue? 回答1: There's a bug with the emulator in