G
Guest
How do I add a console to a graphical app?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
How do I add a console to a graphical app?
P/invoke, where is it ?
C# Programmer's Reference -- Platform Invoke Tutorial
<URL:http://msdn.microsoft.com/library/en-us/csref/html/vcwlkPlatformInvokeTutorial.asp>
I am a little confused why you sent me this link. I do know how to
use declare for ConsoleAlloc
Private Declare Function AllocConsole Lib "kernel32" () As Boolean
However I am not sure what is P/Invoke. I looked up P/Invoke in
the msdn and nothing comes up.
I do know that a Form has an Invoke method, is that what you
mean?
Anyway, I tried to simply call ConsoleAlloc from Button1_click, and I
do get a console window, but Console.WriteLine is not recognisable
by the editor ?
term "platform invoke" the list of topics (if you have the MSDN Library
installed locally).
Are you sure the 'System' namespace is imported?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.