Passing Arrays to a .NET COM object from Visual FoxPro

Posted by: Rick Strahls WebLog, on 07 Jun 2005 | View original | NEW 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: 1408 | Hits: 181

Similar Posts

  • New article: How to detect and avoid memory and resources leaks in .NET applications more
  • My ASP.NET MVC stack and why I chosen it more
  • Web Deployment Tool released to web (RTW) more
  • My History of Visual Studio (Part 6) more
  • Video: CodeRush Metric Shader Plugin more
  • Udi Dahan to come deliver his SOA & DDD course in Austin more
  • What is Softwaremaker doing now ? more
  • Come meet the new MSDN more
  • Welcome the WebUI Test Studio v2.0! more
  • Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series) 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