Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Working with sockets
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01339151
Message ID:
01339861
Views:
24
Hi Mark,

>Will I need an infinite loop in .Net in order to constantly pull data from that window?

In .NET you create a simple form and then override the WndProc method:
protected override void WndProc(ref System.Windows.Forms.Message m)
{
  switch (m.Msg)
  {  
  case WM_COPYDATA:
    // do something
    break;
  }
base.WndProc(ref m);
}
This method is automatically called when the VFP application sends data. You don't need an infinite loop if you call Application.Run(form).
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform