Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
THCAR * function() ;
This is the function in the dll which i have to call in c sharp .

// variable taken
string sz_name = string.Empty ;

Now i need to call this function in c sharp and collect the value in sz_name . How the conversion should be done .
Posted

1 solution

The general ruil is that if the data is only doing one-way (as in you're passing the data into the method but not expecting it to change), use a string object. If it's serving as an out parameter, use a StringBuilder object.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900