console-application

Getting Error : The size necessary to buffer the XML content exceeded the buffer quota

廉价感情. 提交于 2019-12-08 07:37:34
问题 I have developed one console application and from there i have called WCF function after adding as web reference. my console application's web.config as per below.. <system.serviceModel> <bindings> <basicHttpBinding> <binding name="BasicHttpBinding_IApicaAzureMonitorAgentReceiverWCF" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="2147483647"

how to use console/windows app without focus on it?

删除回忆录丶 提交于 2019-12-08 07:11:12
问题 im going to create a KEylog application that enables me to write all data typed(keys pressed) on a text file/database how can i do this without focus on the windows app/console app? for a reason , for all you to know, this is for my PC and im not trying to hack an account. just for me to know what they are doing on my computer. 回答1: Find an example written in .NET here: Processing Global Mouse and Keyboard Hooks in C# This class allows you to tap keyboard and mouse and/or to detect their

Unicode output on windows console

喜欢而已 提交于 2019-12-08 07:11:04
问题 The article Unicode apps in the MinGW-w64 wiki explains the following example for an Unicode application, e.g. _main.c_ : #define UNICODE #define _UNICODE #include <tchar.h> int _tmain(int argc, TCHAR * argv[]) { _tprintf(argv[1]); return 0; } The above code makes use of tchar.h mapping, which allows it to both compile in Unicode and non-Unicode mode. [...] The -municode option is still required when linking if Unicode mode is used. So I used C:\> i686-w64-mingw32-gcc main.c -municode -o

c++ set console text color to RGB value

不问归期 提交于 2019-12-08 06:56:15
问题 I want to set the text color of the console to a RGB color. I created a function to get the ColorTable of the console and change the colors in it, but it doesn't work. I don't know how to set the text color to a value from the color table so I just change the whole color table, but it doesn't do anything. void setColor(int r, int g, int b) { COLORREF cr; cr = RGB(r, g, b); PCONSOLE_SCREEN_BUFFER_INFOEX ci; CONSOLE_SCREEN_BUFFER_INFOEX cir; ci = &cir; HANDLE hConsole = GetStdHandle(STD_OUTPUT

Clear Screen in Xcode

﹥>﹥吖頭↗ 提交于 2019-12-08 06:52:42
问题 I am making a Library Management System in Xcode using C++. As Xcode does not support libraries such as conio.h and system "cls" does not work in it. What code should I use to clear the screen when I want it to shift from one menu to the other? 回答1: Check this out. https://discussions.apple.com/thread/1064635?start=0&tstart=0 There is no direct way to do that; the system() command will not work on Mac (Unix). One option is to add a lot of spaces using code i.e.\n or other way is to use curses

Passing a stringstream to console output in unicode project

让人想犯罪 __ 提交于 2019-12-08 06:28:15
问题 In MSVC++, if you create a new Visual Studio console application (x64 platform, running on Windows 8.1, x64), and set it to a Unicode character set with the following code in main: int _tmain(int argc, _TCHAR* argv[]) { stringstream stream; stream << _T("Testing Unicode. English - Ελληνικά - Español.") << std::endl; string str = stream.str(); std::wcout << str.c_str(); cin.get(); } It outputs this: 00007FF616443E50 I would like it to output this instead: Testing Unicode. English - Ελληνικά -

Why does System.console() return null for a command line app? [duplicate]

会有一股神秘感。 提交于 2019-12-08 05:34:22
问题 This question already has answers here : System.console() returns null (11 answers) Closed 5 years ago . I am working on a legacy app which depends on user command line input: String key = System.console().readLine("Please enter the license key: "); However, I am getting a NullPointerException because System.console() gives me a null. Why does System.console() return null for a command line app? It happens when running it out of the terminal as well as IDE. 回答1: If you start java from a

Why does PowerCmd show duplicate git commits?

纵饮孤独 提交于 2019-12-08 04:57:32
问题 I often use the windows console called console2 and recently found PowerCmd , so I have been trying it out. I create a Git repository and make and commit three changes. First the correct log in console2 : c:\code\junk>git log --pretty=oneline 015cfbec12208d7b719d523c92d0c46b726d42e6 third time lucky. c8a9ffeb4381cd515a62937a0a50b7dc5360dbb8 Second commit 370e9cbb72feca9fb784843154f2171fefe2c656 initial commit I get double the goodness using PowerCmd : C:\code\junk>git log --pretty=oneline

sql job to run every certain time and execute a console application

匆匆过客 提交于 2019-12-08 04:30:38
问题 I am trying to write a SQL job to run every 10 minutes and to execute a console application that I wrote in C#. It would be really helpful if someone could help. 回答1: What you want is a SQL Server Agent Job, with a CmdExec step (which can execute a windows command line). This is explained here: http://msdn.microsoft.com/en-us/library/ms190264.aspx If security is a concern, it can be secured through the use of a SQL Agent Proxy definition. This is explained here: http://msdn.microsoft.com/en

C++ Printing special ascii characters to the Windows console

核能气质少年 提交于 2019-12-08 03:33:18
问题 After 2 hours of searching and trying various methods, I'm pulling my hair out trying to print special ascii characters to the console! (C++) typedef unsigned char UCHAR; int main() { UCHAR c = '¥'; cout << c; return 0; } Why does this code print Ñ (209) instead of ¥ (165)??? I've tried: SetConsoleCP(CP_UTF8); SetConsoleOutputCP(CP_UTF8); but neither seems to do anything, no matter which values I pass to it. Someone else suggested that the console's font needed to be changed through the