Passing Arrays to a .NET COM object from Visual FoxPro

Posted by: Rick Strahls WebLog, on 07 Jun 2005 | View original | Bookmarked: 0 time(s)

A number of people have asked me about passing arrays to .NET functions from Visual FoxPro applications. The problem here is that Visual FoxPro arrays are not formatted the right way to just be called to a .NET COM object by default. VFP arrays are 1 based while in general COM objects expect arrays to be 0 based so you need to fix up arrays to make this happen. .NET arrays are always 0 based unless explicitly declared otherwise.   Assume you have a method in a .NET COM object that looks like...

Advertisement
Category: VB.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1817 | Hits: 208

Similar Posts

  • Introducing Recurring Appointments for Web.UI Scheduler ASP.NET AJAX more
  • The Telerik CAB Enabling Kit and SCSF - Tutorial 5: The RadPanelBar UIExtensionSite more
  • My History of Visual Studio (Part 6) more
  • My ASP.NET MVC stack and why I chosen it more
  • Video: CodeRush Metric Shader Plugin more
  • Welcome the WebUI Test Studio v2.0! more
  • What is Softwaremaker doing now ? more
  • Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series) more
  • Save 30% - 70% person-month more
  • Come meet the new MSDN more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD