IT Community - Software Programming, Web Development and Technical Support

How to pass array of string from vc++ dll to C# ?

This is a discussion on How to pass array of string from vc++ dll to C# ? within the C and C++ Programming forums, part of the Software Development category; How to pass array of string from vc++ dll to C# ?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C and C++ Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-24-2007, 05:08 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Question How to pass array of string from vc++ dll to C# ?

How to pass array of string from vc++ dll to C# ?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-31-2007, 03:56 AM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Smile Re: How to pass array of string from vc++ dll to C# ?

Hi,

The one way is to combine the array of string into string using a separator and pass the string from VC++.net into C#. We can split the string from the C# and then convert it into array of string using Separator.
__________________
The OXYGEN
Delivers edgy, intelligent Technology to all...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-10-2007, 05:35 AM
itbarota itbarota is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 547
itbarota is on a distinguished road
Default Re: How to pass array of string from vc++ dll to C# ?

Hmm... That way you will be limited to the maximum length of one variable. Why wont you try something like writing into a text file in Vc++ and reading from there by C#. Just call the function with other arguments if any, and in the function, write the code to read the text file and parse it for the array of string.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compare a string with String Array. oxygen C# Programming 5 12-28-2007 11:18 PM
Is it possible to Pass Query String to Javascript? velhari HTML, CSS and Javascript Coding Techniques 1 11-20-2007 10:47 PM
how to pass and retrieve variable(query string) in same page using ajax? ursklakshmanan PHP Programming 0 09-17-2007 12:05 PM
What is the main difference between pass-by-reference and pass-by-value? oxygen Java Programming 2 08-07-2007 01:15 AM
How to Pass a string value from vc++ .net dll to c#? kingmaker C and C++ Programming 1 07-24-2007 05:37 AM


All times are GMT -7. The time now is 10:51 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0