console

How to use AxWebBrowser in console application

I wanna use AxWebBrowser on console application, but it give me following exception: Exception of type 'System.Windows.Forms.AxHost+InvalidActiveXStateException' was thrown. anybody please help me on this by any sample code for using AxWebBrowser in console application c# without any exeption ... ...

My java web server works in eclipse but it crashes every time if ran through the command line

I have a VERY simple web server that does accepts client connections, retrieves static web pages and services servlets. I wrote the web server in Java and I'm using the tomcat library for servlets. I tested all my code by running it in the eclipse IDE and everything works fine, but when I run my code through the command line it starts ...

Console output spits out Chinese(?) characters

This is a real shot in the dark, however maybe someone had a similar issue. Some console apps are being invoked by either SQL Server 2008, or Autosys (job schedule) under Windows Server 2008; output results of execution are being saved into .txt files. Every so often, with no definite pattern as far as I can tell saved output is display...

Grabbing the output sent to Console.Out from within a unit test?

I am building a unit test in C# with NUnit, and I'd like to test that the main program actually outputs the right output depending on the command line arguments. Is there a way from a NUnit test method, that calls Program.Main(...) to grab everything written to Console.Out and Console.Error so that I can verify against it? ...

Jbpm console3.3.1 on jboss web server3.0.0 beta-1

I've deployed jbpm-console on jboss-web successfully, but now I'm getting the following error: **2010-01-26 20:59:21,969 嚴重的 [facelets.compiler] (http-127.0.0.1-8080-1) Error Loading Library: vfszip:/E:/app/jboss-web-3.0.0-beta-0125-zip/jboss-web-3.0.0-beta-1/server/default/deploy/jbossweb.sar/jsf-libs/jsf-impl.jar/com/sun/faces/meta...

Hide console of Windows Application

i have a Qt application. when i run this application, there is a console opening behind the application. in development it is nice because i see debug outputs on the console. now, i want to give this executable to the customer and i dont want to any console window. how can i hide it?? (ps. i use Visual Studio 2008) ...

How can I write to the console from Excel vba code?

Is there any way to print a message to the console from an Excel vba macro? I have a small VB .NET console application that calls an excel macro, and I'd like the error messages from the macro code to print to the console. Debug.print doesn't help as it only prints to the immediate window. Any ideas? ...

How I do add this function to console app.

Hello, I have loaded an assembly called 'Mscorlib.dll' and i wanted it to list all classes within the 'Mscorlib', which it does(using reflection). Now I want to add a function whereby the user inputs a class from the assembly and it gets all the methods from that class. How would i go around doing this? Any help would be nice ...

Linux/Unix Console Graphics/Control

I would like to know how to create console applications with better control of input and output using C. For example, how does the text-editor nano display the file contents in a certain portion of the screen and then keep a list of commands stationary on the bottom. I know you can use the win32 api to do this in Windows, but what is t...

Setting default System.exit codes in Java?

I have a C# app that runs a jar file and uses the System.exit code as a return value. A console window is displayed as a part of this jar, and if the user closes it (thereby terminating the jar) it returns an exit code of 143. The problem is that 143 (or any positive integer) could be a valid exit code if the jar completes successfully. ...

CakePHP 1.3 (newest), fatal error while baking views

I've just downloaded the newest beta of CakePHP 1.3 for a new project (not a serious one, so no worries with the beta, still learning stuff, I'm right now trying to get grip on acl/auth). I've baked model and controllers for four databases, but baking a view results in a fatal error: Fatal error: Call to a member function on a non-obje...

Input to a Java program - keyboard input v/s file

I have a Java program that accepts input text typed in from standard input is there a way to find if the user has typed in the text or redirected input from a file? $ java prog this text is typed in from the keyboard $ java prog < file.txt Thanks! ...

Is it possible to view the messages outputted by Microsoft ReportViewer in my own front-end?

I would like to view the messages displayed by ReportViewer in the output window of Visual Studio when a report is viewed, in my own application. I assume it would involve intercepting the debug or console output messages. Is this possible? I am using Microsoft ReportViewer 2008 in local mode. ...

Where is stdout for a Mac App?

It used to be that stdout went to the console log, displayed by Console.app. I've been having some problems with a firefox plugin (see other questions, sorry about the spam...) and I was trying to use printfs to at least see if I was STARTING my plugin. I just noticed today that my console log hasn't been updated since January 6. (Yes,...

Leopard Console logs for common files reference

Hi, I am using plugins for one of my Mac OS X(desktop) application. These plugins refer to a common file that contains base class implementation of both the plugins. When the application refers to this common base class, the following message is displayed in the console by the system: " is implemented in both and . One of the two wil...

How can I set the size of the cmd.exe window from my Perl program?

I have a Perl script running in windows, that displays to screen very long lines. I don't want to fix my console size permanently. I just want it to be big in case this script is running. Is there a way to define the console's size from within the Perl script that runs inside this window? ...

Can I get copy/paste functionality from a C# Console Window?

I am developing a console application in C#, and was wondering if there was a way to get the "copy-paste" or "mark-paste" functionality into my application, similar or identical to that of the standard Windows command prompt. Is this a wild goose chase or a simple application variable? ...

Is there any way to write Hebrew in the Windows Console?

Is there any way to write Hebrew in the Windows Console? I tried the following: Console.OutputEncoding = new UTF8Encoding(false); Console.WriteLine("\u05D0\u05D1"); Console.ReadLine(); but instead of "אב" it writes some other Unicode character, that're not in the Hebrew ABC. Any ideas why? ...

Call asp mvc Controller Action from another application in .net?

I need to run a Controller Action from my Console Application that reference to my MVC App. The reason behind this is because there are some special Action method that i cannot just simply copy to the new application. (Because of the control things) So I just want to ask if there could be any way to call a controller action method fr...

jQuery logging in IE: how to get object?

Via Firefox+Firebug one can write out to the console a jQuery object and the console will, in great detail, show you what that particular object is referring to in the DOM. console.log($(mySelector)) In IE8, using the IE8 Developer Tools, I also have access to a console log, which will write out as above. However, just like doing an a...