Click here to Skip to main content
15,896,063 members
Home / Discussions / C#
   

C#

 
GeneralRe: Combobox displayMembers with .dbml objects Pin
Dave Kreskowiak30-May-11 4:16
mveDave Kreskowiak30-May-11 4:16 
GeneralRe: Combobox displayMembers with .dbml objects Pin
grmihel230-May-11 21:35
grmihel230-May-11 21:35 
GeneralRe: Combobox displayMembers with .dbml objects Pin
Dave Kreskowiak31-May-11 1:54
mveDave Kreskowiak31-May-11 1:54 
GeneralRe: Combobox displayMembers with .dbml objects Pin
phil.o2-Jun-11 22:05
professionalphil.o2-Jun-11 22:05 
QuestionHow to pass .net (C#) string to unmanaged C++ dll? Pin
Tesic Goran29-May-11 22:05
professionalTesic Goran29-May-11 22:05 
AnswerRe: How to pass .net (C#) string to unmanaged C++ dll? Pin
Luc Pattyn29-May-11 22:40
sitebuilderLuc Pattyn29-May-11 22:40 
GeneralRe: How to pass .net (C#) string to unmanaged C++ dll? [modified] Pin
Tesic Goran29-May-11 22:59
professionalTesic Goran29-May-11 22:59 
AnswerRe: How to pass .net (C#) string to unmanaged C++ dll? [modified] Pin
Luc Pattyn29-May-11 23:28
sitebuilderLuc Pattyn29-May-11 23:28 
get rid of the ref keyword, objects always get passed by reference, your native code will get a pointer without using ref.

FWIW: With ref, it would be a char**.


[ADDED]
On a second read, I don't understand your native code at all. It seems to me the decode() function isn't relevant. All that matters is Decode(), of which you didn't show the actual signature. However your prototype suggests it returns a StringBuilder (bad idea, that is a managed type, no native function returns managed types automatically), and yet your decode() just ignores the return value!?!?

If you need more help, please show the declaration of the native Decode() function.
If it doesn't require BSTR (say it just takes two char*, then things should be simple).
[/ADDED]

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Please use <PRE> tags for code snippets, they improve readability.
CP Vanity has been updated to V2.3

modified on Monday, May 30, 2011 5:38 AM

GeneralRe: How to pass .net (C#) string to unmanaged C++ dll? Pin
Tesic Goran29-May-11 23:37
professionalTesic Goran29-May-11 23:37 
AnswerRe: How to pass .net (C#) string to unmanaged C++ dll? Pin
Luc Pattyn29-May-11 23:49
sitebuilderLuc Pattyn29-May-11 23:49 
GeneralRe: How to pass .net (C#) string to unmanaged C++ dll? [modified] Pin
Tesic Goran30-May-11 0:00
professionalTesic Goran30-May-11 0:00 
AnswerRe: How to pass .net (C#) string to unmanaged C++ dll? Pin
Luc Pattyn30-May-11 0:22
sitebuilderLuc Pattyn30-May-11 0:22 
GeneralRe: How to pass .net (C#) string to unmanaged C++ dll? Pin
Tesic Goran30-May-11 0:26
professionalTesic Goran30-May-11 0:26 
GeneralRe: How to pass .net (C#) string to unmanaged C++ dll? Pin
Tesic Goran30-May-11 0:57
professionalTesic Goran30-May-11 0:57 
GeneralRe: How to pass .net (C#) string to unmanaged C++ dll? Pin
MicroVirus30-May-11 4:24
MicroVirus30-May-11 4:24 
AnswerRe: How to pass .net (C#) string to unmanaged C++ dll? Pin
DaveyM6929-May-11 22:58
professionalDaveyM6929-May-11 22:58 
GeneralRe: How to pass .net (C#) string to unmanaged C++ dll? Pin
Tesic Goran29-May-11 23:07
professionalTesic Goran29-May-11 23:07 
QuestionDefault datetime.now in datatable and bound datagridview Pin
LordZoster29-May-11 21:32
LordZoster29-May-11 21:32 
AnswerRe: Default datetime.now in datatable and bound datagridview Pin
Andy_L_J29-May-11 21:37
Andy_L_J29-May-11 21:37 
GeneralRe: Default datetime.now in datatable and bound datagridview Pin
LordZoster29-May-11 21:51
LordZoster29-May-11 21:51 
AnswerRe: Default datetime.now in datatable and bound datagridview Pin
Paramu197329-May-11 21:47
Paramu197329-May-11 21:47 
GeneralRe: Default datetime.now in datatable and bound datagridview Pin
LordZoster29-May-11 22:07
LordZoster29-May-11 22:07 
GeneralRe: Default datetime.now in datatable and bound datagridview Pin
Paramu197329-May-11 22:13
Paramu197329-May-11 22:13 
GeneralRe: Default datetime.now in datatable and bound datagridview Pin
LordZoster29-May-11 22:17
LordZoster29-May-11 22:17 
GeneralRe: Default datetime.now in datatable and bound datagridview Pin
LordZoster29-May-11 22:37
LordZoster29-May-11 22:37 

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.