Builderman
July 20th, 2003, 06:55 AM
Hello again.
I'm working on a very simple ASP.NET web service. It has one method, which looks up a "key" and returns the string data that the "key" is associated with.
I want the service to be accessible from at least .NET code and native C++.
I don't know which data types I should use. If I use the String class in the .NET framework, it can't be accessed from native C++. I can't pass pointers because it would be invalid on a different machine.
The only solution that I think may work is to create a struct and keep the string in that.
Anyone have any better ideas?
Thanks.
I'm working on a very simple ASP.NET web service. It has one method, which looks up a "key" and returns the string data that the "key" is associated with.
I want the service to be accessible from at least .NET code and native C++.
I don't know which data types I should use. If I use the String class in the .NET framework, it can't be accessed from native C++. I can't pass pointers because it would be invalid on a different machine.
The only solution that I think may work is to create a struct and keep the string in that.
Anyone have any better ideas?
Thanks.