Posted By: FluffyDevilBunny | Apr 30th, 2007 @ 9:21 AM
page 1 of 1
Comments: 3 | Views: 3505
FluffyDevilBunny
FluffyDevilBunny
GO GO GADGET COMPILER!
Hi all,

We have a mixed mode managed c dll here and I need help.

The internals of the dll are using native c and the interface is exposing managed c so that c# can call it. We are passing a System.String into the dll and need to convert it to char*.

Currently the developer is looping for each character in the string and placing the value into the char. There has got to be a better way.

Anyone?

Thanks

FDB
amotif
amotif
No Silver Bullet
Don't forget to free the allocation made by StringToHGlobalAnsi... Smiley
page 1 of 1
Comments: 3 | Views: 3505
Microsoft Communities