Click here to Skip to main content
15,920,576 members
Home / Discussions / C#
   

C#

 
GeneralHidden forms Pin
solidstore15-May-03 4:44
solidstore15-May-03 4:44 
GeneralRe: Hidden forms Pin
RB@Emphasys16-May-03 6:57
RB@Emphasys16-May-03 6:57 
GeneralRe: Hidden forms Pin
solidstore17-May-03 7:50
solidstore17-May-03 7:50 
GeneralRe: Hidden forms Pin
Anonymous26-May-03 3:04
Anonymous26-May-03 3:04 
GeneralGetting pointer to DLL loaded by other program Pin
curiousgal15-May-03 4:28
curiousgal15-May-03 4:28 
GeneralRe: Getting pointer to DLL loaded by other program Pin
James T. Johnson16-May-03 4:25
James T. Johnson16-May-03 4:25 
GeneralSavedialog with serlization.. Pin
tuan_tomy15-May-03 2:25
tuan_tomy15-May-03 2:25 
GeneralCOM interop and BSTR Pin
dshield15-May-03 1:44
dshield15-May-03 1:44 
I have a COM object that returns a binary string in a BSTR. .NET marshals this to a string. The problem is that some of the bytes get dropped when this happens.

As an example, load a PFD file into a byte array. Convert the byte array to a string, and then convert the string back to a byte array (UTF-8). If you compare the two byte arrays, they aren't the same.

I probably haven't explaied this very well, but I hope I haven't made it too confusing. Has anyone had any experience with this, and what can I do to make it work?

Thanks.


They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.
--Benjamin Franklin, 1759
GeneralRe: COM interop and BSTR Pin
Ranjan Banerji15-May-03 3:16
Ranjan Banerji15-May-03 3:16 
GeneralRe: COM interop and BSTR Pin
dshield15-May-03 4:37
dshield15-May-03 4:37 
GeneralRe: COM interop and BSTR Pin
Ranjan Banerji15-May-03 6:28
Ranjan Banerji15-May-03 6:28 
GeneralRe: COM interop and BSTR Pin
Richard Deeming15-May-03 8:17
mveRichard Deeming15-May-03 8:17 
GeneralAll better now Pin
dshield15-May-03 9:02
dshield15-May-03 9:02 
GeneralRe: All better now Pin
Ranjan Banerji15-May-03 10:20
Ranjan Banerji15-May-03 10:20 
GeneralJava class to C#: inheritance problem Pin
cabo15-May-03 0:51
cabo15-May-03 0:51 
GeneralRe: Java class to C#: inheritance problem Pin
Philip Fitzsimons15-May-03 3:08
Philip Fitzsimons15-May-03 3:08 
GeneralRe: Java class to C#: inheritance problem Pin
cabo15-May-03 5:32
cabo15-May-03 5:32 
GeneralRe: Java class to C#: inheritance problem Pin
Richard Deeming15-May-03 8:23
mveRichard Deeming15-May-03 8:23 
GeneralRe: Java class to C#: inheritance problem Pin
Philip Fitzsimons16-May-03 2:39
Philip Fitzsimons16-May-03 2:39 
GeneralRe: Java class to C#: inheritance problem Pin
Richard Deeming15-May-03 8:21
mveRichard Deeming15-May-03 8:21 
GeneralRe: Java class to C#: inheritance problem Pin
cabo15-May-03 9:32
cabo15-May-03 9:32 
Generalreqaurding rtf boxes Pin
jtmtv1814-May-03 22:57
jtmtv1814-May-03 22:57 
GeneralRe: reqaurding rtf boxes Pin
KingTermite15-May-03 3:35
KingTermite15-May-03 3:35 
GeneralRe: reqaurding rtf boxes Pin
jtmtv1815-May-03 10:11
jtmtv1815-May-03 10:11 
GeneralRe: reqaurding rtf boxes Pin
KingTermite16-May-03 2:41
KingTermite16-May-03 2:41 

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.