p/invoke and allocconsole

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I read in a previous post by Tom Shelton that you can call AllocConsole via p/invoke to allocate a console window to a form application.

I've searched for info on how to do this, but have drawn a blank. Can anybody help me to get this up and running?

FYI, I want input received via a form to be passed to a console application for processing.

Thanks.
 
I've searched for info on how to do this, but have drawn a blank. Can anybody help me to get this up and running?

I don't have any complete sample, but the function takes no parameters
so it should be trivial to use

Declare Function AllocConsole Lib "kernel32.dll" () As Boolean



Mattias
 
Back
Top