Click here to Skip to main content
15,907,149 members
Home / Discussions / C#
   

C#

 
Questionchange webservice address at runtime? Pin
visiontec25-Mar-04 12:35
visiontec25-Mar-04 12:35 
AnswerRe: change webservice address at runtime? Pin
Heath Stewart25-Mar-04 13:52
protectorHeath Stewart25-Mar-04 13:52 
AnswerRe: change webservice address at runtime? Pin
Mazdak25-Mar-04 19:54
Mazdak25-Mar-04 19:54 
GeneralDataset, Dataview, XML, RadioButtonList Question. HELP!! Pin
bentai25-Mar-04 9:59
bentai25-Mar-04 9:59 
GeneralRe: Dataset, Dataview, XML, RadioButtonList Question. HELP!! Pin
Heath Stewart25-Mar-04 14:03
protectorHeath Stewart25-Mar-04 14:03 
GeneralRe: Dataset, Dataview, XML, RadioButtonList Question. HELP!! Pin
bentai29-Mar-04 4:29
bentai29-Mar-04 4:29 
GeneralRe: Dataset, Dataview, XML, RadioButtonList Question. HELP!! Pin
Heath Stewart29-Mar-04 5:14
protectorHeath Stewart29-Mar-04 5:14 
GeneralPassing BStr by refrence to unmanaged dll Pin
schnee2k325-Mar-04 9:45
schnee2k325-Mar-04 9:45 
GeneralRe: Passing BStr by refrence to unmanaged dll Pin
Dave Kreskowiak25-Mar-04 12:03
mveDave Kreskowiak25-Mar-04 12:03 
GeneralRe: Passing BStr by refrence to unmanaged dll Pin
schnee2k325-Mar-04 12:10
schnee2k325-Mar-04 12:10 
GeneralRe: Passing BStr by refrence to unmanaged dll Pin
Dave Kreskowiak25-Mar-04 12:49
mveDave Kreskowiak25-Mar-04 12:49 
GeneralRe: Passing BStr by refrence to unmanaged dll Pin
schnee2k325-Mar-04 13:05
schnee2k325-Mar-04 13:05 
GeneralRe: Passing BStr by refrence to unmanaged dll Pin
Heath Stewart25-Mar-04 13:46
protectorHeath Stewart25-Mar-04 13:46 
GeneralRe: Passing BStr by refrence to unmanaged dll Pin
schnee2k325-Mar-04 14:21
schnee2k325-Mar-04 14:21 
GeneralRe: Passing BStr by refrence to unmanaged dll Pin
Dave Kreskowiak25-Mar-04 14:56
mveDave Kreskowiak25-Mar-04 14:56 
Without seeing the garbage in a debugger, it would appear that the function you called filled in ASCII characters (8-bit), instead of the 16-bit Unicode characters that StringBuilder is looking for.

One clue would be how long is the string compared to the length you expect. Is it just about half as long?

Another would be to look at the values in the chars[] array in the StringBuilder. Parse out the values for high and low bytes and check them against the ASCII table to see if your actually getting two 8-bit characters crammed into a single 16-bit character field.


RageInTheMachine9532
GeneralRe: Passing BStr by refrence to unmanaged dll Pin
schnee2k325-Mar-04 15:06
schnee2k325-Mar-04 15:06 
GeneralRe: Passing BStr by refrence to unmanaged dll Pin
Heath Stewart26-Mar-04 3:06
protectorHeath Stewart26-Mar-04 3:06 
GeneralRe: Passing BStr by refrence to unmanaged dll Pin
Heath Stewart26-Mar-04 3:18
protectorHeath Stewart26-Mar-04 3:18 
GeneralRe: Passing BStr by refrence to unmanaged dll Pin
schnee2k326-Mar-04 4:27
schnee2k326-Mar-04 4:27 
GeneralRe: Passing BStr by refrence to unmanaged dll Pin
Heath Stewart26-Mar-04 4:31
protectorHeath Stewart26-Mar-04 4:31 
GeneralRe: Passing BStr by refrence to unmanaged dll Pin
schnee2k326-Mar-04 4:35
schnee2k326-Mar-04 4:35 
GeneralRe: Passing BStr by refrence to unmanaged dll Pin
Dave Kreskowiak26-Mar-04 7:44
mveDave Kreskowiak26-Mar-04 7:44 
Questiontranslation vb to c# ? Pin
el69os25-Mar-04 8:59
el69os25-Mar-04 8:59 
AnswerRe: translation vb to c# ? Pin
Daniel Turini25-Mar-04 9:09
Daniel Turini25-Mar-04 9:09 
AnswerRe: translation vb to c# ? Pin
Michael Flanakin25-Mar-04 11:14
Michael Flanakin25-Mar-04 11:14 

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.