RE: C# messaging



Is your C program Windows based or DOS based?

If both the C and C# are Windows based (they create a window) you can send
and receive regular windows messages between the 2 applications using
SendMessage().

If your C program is DOS based, you may be able to launch it as a child
process from your C# program and redirect it’s STDIN and STDOUT to send and
receive text from it.

Hope this helps.
Regards,
DlgProc

"GTi" wrote:

> Do anyone have a simple solution how I can send a simple message (int)
> from a C program to a C# program/service ?
> Preferred both ways C <-> C#
>
> (Windows messages - how ?)
>
> It must be extremely easy and in-memory (no disk media).
>
> Best regards,
> Newbie GTi
>
>
>
.



Relevant Pages

  • Re: Linux syscalls
    ... > A device driver or a rewrite of DOS could permit this, ... really "DOS inside Windows" or "Windows inside DOS"? ... > DOS interrupts are revectored... ... if you re-write DOS to use the _Windows device drivers_ ...
    (alt.lang.asm)
  • [Full-Disclosure] ron1n phone home, episode 4
    ... Hacking from Windows 3.x, 95 and NT ... Use secret Windows 95 DOS commands to track down and port surf computers ... Download hacker tools such as port scanners and password crackers designed ... Now you have the option of eight TCP/IP utilities to play with: telnet, ...
    (Full-Disclosure)
  • Re: MS and security: good effort but no cigar
    ... And last but not least, no fat, no dos, no multiboot. ... build upon the progress it's already made in security. ... a Windows system, it is still surprisingly easy to completely own that ... Then there's the issue of poorly secured server applications. ...
    (microsoft.public.windowsxp.general)
  • Re: assembly language and reverse engineering
    ... in Windows assembly programming what you can't learn when doing ... Windows API but about assembly programming). ... And you have far less to learn to get your first working DOS program than ... but, real mode is real mode, and pmode is pmode. ...
    (alt.lang.asm)
  • Re: Gamma Function
    ... the destructive Windows critter-makers who are ... Windows runs DOS programs ... DOS isn't a multi-tasking operating system. ... The virus itself is but a code fragment that attaches ...
    (sci.physics.relativity)

Loading