Click here to Skip to main content
15,891,828 members
Home / Discussions / C#
   

C#

 
AnswerRe: Receipt Printing Pin
lorenkins23-Mar-11 7:00
lorenkins23-Mar-11 7:00 
QuestionChar* in C++ 6 to C# .Net [modified] Pin
KeithF22-Mar-11 4:06
KeithF22-Mar-11 4:06 
AnswerRe: Char* in C++ 6 to C# .Net Pin
Richard MacCutchan22-Mar-11 4:34
mveRichard MacCutchan22-Mar-11 4:34 
GeneralRe: Char* in C++ 6 to C# .Net Pin
KeithF22-Mar-11 4:40
KeithF22-Mar-11 4:40 
GeneralRe: Char* in C++ 6 to C# .Net Pin
Richard MacCutchan22-Mar-11 5:10
mveRichard MacCutchan22-Mar-11 5:10 
AnswerRe: Char* in C++ 6 to C# .Net Pin
KeithF22-Mar-11 4:37
KeithF22-Mar-11 4:37 
GeneralRe: Char* in C++ 6 to C# .Net Pin
Richard MacCutchan22-Mar-11 5:13
mveRichard MacCutchan22-Mar-11 5:13 
GeneralRe: Char* in C++ 6 to C# .Net Pin
KeithF22-Mar-11 5:30
KeithF22-Mar-11 5:30 
Hi Richard,

Thanks for all the help.

After playing around with a few other things i found that this works

[DllImport("MyDll.dll", CharSet = CharSet.Unicode)]
        public static extern int MyMethod(
            [param: MarshalAs(UnmanagedType.LPStr)]
            StringBuilder strA,
            [param: MarshalAs(UnmanagedType.LPStr)]
            StringBuilder strB,
           [param: MarshalAs(UnmanagedType.LPStr)]
            StringBuilder strC);


changeg need were to remove the ref keyword, changes string to stringbuilder and the unmanaged type to LPStr
GeneralRe: Char* in C++ 6 to C# .Net Pin
Richard MacCutchan22-Mar-11 8:16
mveRichard MacCutchan22-Mar-11 8:16 
GeneralRe: Char* in C++ 6 to C# .Net Pin
Ian Shlasko22-Mar-11 5:32
Ian Shlasko22-Mar-11 5:32 
AnswerRe: Char* in C++ 6 to C# .Net [modified] Pin
Luc Pattyn22-Mar-11 6:16
sitebuilderLuc Pattyn22-Mar-11 6:16 
GeneralRe: Char* in C++ 6 to C# .Net Pin
KeithF22-Mar-11 6:24
KeithF22-Mar-11 6:24 
AnswerRe: Char* in C++ 6 to C# .Net Pin
Luc Pattyn22-Mar-11 6:31
sitebuilderLuc Pattyn22-Mar-11 6:31 
GeneralRe: Char* in C++ 6 to C# .Net Pin
KeithF22-Mar-11 6:40
KeithF22-Mar-11 6:40 
Questionclickonce Deployment [modified] Pin
arkiboys22-Mar-11 3:40
arkiboys22-Mar-11 3:40 
AnswerRe: clickonce Deployment Pin
Dave Kreskowiak22-Mar-11 4:47
mveDave Kreskowiak22-Mar-11 4:47 
GeneralRe: clickonce Deployment Pin
arkiboys22-Mar-11 4:51
arkiboys22-Mar-11 4:51 
GeneralRe: clickonce Deployment Pin
Rajesh R Subramanian23-Mar-11 4:47
professionalRajesh R Subramanian23-Mar-11 4:47 
GeneralRe: clickonce Deployment Pin
Dave Kreskowiak23-Mar-11 12:12
mveDave Kreskowiak23-Mar-11 12:12 
GeneralRe: clickonce Deployment Pin
Rajesh R Subramanian23-Mar-11 18:38
professionalRajesh R Subramanian23-Mar-11 18:38 
Questionpass picture as parameter TO C# Pin
MrKBA22-Mar-11 2:46
MrKBA22-Mar-11 2:46 
AnswerRe: pass picture as parameter TO C# Pin
Pete O'Hanlon22-Mar-11 3:10
mvePete O'Hanlon22-Mar-11 3:10 
GeneralRe: pass picture as parameter TO C# Pin
MrKBA22-Mar-11 3:36
MrKBA22-Mar-11 3:36 
GeneralRe: pass picture as parameter TO C# Pin
BobJanova22-Mar-11 3:47
BobJanova22-Mar-11 3:47 
GeneralRe: pass picture as parameter TO C# Pin
_Erik_22-Mar-11 3:51
_Erik_22-Mar-11 3:51 

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.