Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: String Array written to and parsed from hidden web control Pin
Heath Stewart5-Feb-04 4:22
protectorHeath Stewart5-Feb-04 4:22 
GeneralRe: String Array written to and parsed from hidden web control Pin
krisp5-Feb-04 19:22
krisp5-Feb-04 19:22 
GeneralWeb service question Pin
pankajdaga4-Feb-04 10:24
pankajdaga4-Feb-04 10:24 
GeneralRe: Web service question Pin
Heath Stewart4-Feb-04 10:34
protectorHeath Stewart4-Feb-04 10:34 
GeneralIntPtr and Strings Pin
Tristan Rhodes4-Feb-04 10:10
Tristan Rhodes4-Feb-04 10:10 
GeneralRe: IntPtr and Strings Pin
Heath Stewart4-Feb-04 10:29
protectorHeath Stewart4-Feb-04 10:29 
GeneralRe: IntPtr and Strings Pin
Tristan Rhodes4-Feb-04 10:38
Tristan Rhodes4-Feb-04 10:38 
GeneralRe: IntPtr and Strings Pin
Heath Stewart4-Feb-04 10:44
protectorHeath Stewart4-Feb-04 10:44 
Did you ever read all that stuff on marshaling I gave you links for before? ref and out should only be used for [out] value types and pointers to pointers as declared in native code. If you need the address to a string, you simply do something like this:
IntPtr ptr = Marshal.StringToCoTaskMemAuto(myString);
If your method declaration expects a pointer, this is how you can get it. If you're passing a char[] array, the array itself is a reference type (even though Char is a value type) so you don't need ref or out. The address is what's already being passed since the array is a reference type.

It all just depends on the implementation, for which you've given no specifics. If you need help with something specifically, please provide the signature of the method you're trying to call or something similar.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: IntPtr and Strings Pin
Tristan Rhodes4-Feb-04 10:46
Tristan Rhodes4-Feb-04 10:46 
QuestionRemoving an EventHandler??? Pin
LongRange.Shooter4-Feb-04 9:21
LongRange.Shooter4-Feb-04 9:21 
AnswerRe: Removing an EventHandler??? Pin
Heath Stewart4-Feb-04 10:27
protectorHeath Stewart4-Feb-04 10:27 
GeneralRe: Removing an EventHandler??? Pin
LongRange.Shooter5-Feb-04 2:22
LongRange.Shooter5-Feb-04 2:22 
GeneralRe: Removing an EventHandler??? Pin
Heath Stewart5-Feb-04 4:18
protectorHeath Stewart5-Feb-04 4:18 
GeneralFileInfo.ValidateFIleName Pin
elena123454-Feb-04 8:07
elena123454-Feb-04 8:07 
GeneralRe: FileInfo.ValidateFIleName Pin
Not Active4-Feb-04 8:38
mentorNot Active4-Feb-04 8:38 
GeneralRe: FileInfo.ValidateFIleName Pin
John Kuhn4-Feb-04 8:48
John Kuhn4-Feb-04 8:48 
GeneralXML Web Services question Pin
Chen Venkataraman4-Feb-04 7:23
Chen Venkataraman4-Feb-04 7:23 
GeneralRe: XML Web Services question Pin
Andy Brummer4-Feb-04 8:56
sitebuilderAndy Brummer4-Feb-04 8:56 
GeneralRe: XML Web Services question Pin
Heath Stewart4-Feb-04 8:59
protectorHeath Stewart4-Feb-04 8:59 
GeneralRe: XML Web Services question Pin
Michael Potter4-Feb-04 9:15
Michael Potter4-Feb-04 9:15 
GeneralTab control question Pin
Shizam4-Feb-04 5:47
Shizam4-Feb-04 5:47 
GeneralRe: Tab control question Pin
Heath Stewart4-Feb-04 6:04
protectorHeath Stewart4-Feb-04 6:04 
GeneralRe: Tab control question Pin
Shizam4-Feb-04 8:00
Shizam4-Feb-04 8:00 
GeneralRe: Tab control question Pin
Alex Korchemniy4-Feb-04 8:02
Alex Korchemniy4-Feb-04 8:02 
GeneralRe: Tab control question Pin
Heath Stewart4-Feb-04 8:44
protectorHeath Stewart4-Feb-04 8:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.