I have an application that does not have a user interface.
C# --- C++
So that I can send messages from C# to C++ I must have a window.
I don't have the window, I probably only need it because of the data traffic.
How can I easily solve this problem?
protected override void WndProc(ref Message m)
{
base.WndProc(ref m);
if (m.Msg == WM_READY_COPYDATA)
{
// Parameter:
// m:
// Windows-System.Windows.Forms.Message.
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.UnmanagedCode)]
protected override void WndProc(ref Message m)
{
switch (m.Msg)
{
case 134:
Maybe like this
Console in C#, Instance of a test WinForm, ShowDialog -- communication to C++
Looks complicated. What is the opinion of the experts?
Is there an easier way?
Can any class inherit from CWnd? And still have the same functionality?I have a control unit that doesn't yet inherit from Window. Can I simply derive it?