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

C#

 
GeneralRe: Context Menus will text box Pin
Wjousts19-Sep-03 11:59
Wjousts19-Sep-03 11:59 
GeneralRe: Context Menus will text box Pin
J. Dunlap19-Sep-03 12:16
J. Dunlap19-Sep-03 12:16 
GeneralRe: Context Menus will text box Pin
Wjousts19-Sep-03 12:29
Wjousts19-Sep-03 12:29 
GeneralRe: Context Menus will text box Pin
Nish Nishant19-Sep-03 16:23
sitebuilderNish Nishant19-Sep-03 16:23 
GeneralRe: Context Menus will text box Pin
Carlos H. Perez19-Sep-03 17:47
Carlos H. Perez19-Sep-03 17:47 
GeneralRe: Context Menus will text box Pin
Nish Nishant19-Sep-03 18:07
sitebuilderNish Nishant19-Sep-03 18:07 
GeneralRe: Context Menus will text box Pin
J. Dunlap19-Sep-03 18:11
J. Dunlap19-Sep-03 18:11 
GeneralTrying to Access Managed C# Interface from Non Managed C++ Extended Stored Proc Pin
acote@postech.ca19-Sep-03 6:34
acote@postech.ca19-Sep-03 6:34 
Confused | :confused:

I'm trying to access functions of a C# interface from an extened SP written in C++ (Unmanaged) and I'm having problems retrieving the complete string upon reception in the interface.

I am using the MarshalAs attrib but for some reason, I cannot get this to work correctly...

Here is waht I'm doing...

Extended stored proc C++

__int64 nReturnCode;
char Text[20] = ".Net Rules";
pInterface->raw_Command((BSTR)Text, &nReturnCode);

C# interface...

public interface IMyInterface
{
long Command([In, MarshalAs(UnmanagedType.LPWStr)] string strText)
//could be the type that I'm using, but I have tried many and stil cannot get this to work...
};

public clase MyClass : IMyInterface
{
public long Command(string strText)
{
MessageBox.Show(strText);
return 0;
}
};

Messagebox: "????????s"

Please help me out with this one
Cheers
Ribs





Andre Cote
Software Development Manager

Position Technology Inc.
780 Industrial Blvd.
St-Eustache, Quebec, Canada J7R 5V3
Phone: (450) 491-7444
Fax: (450) 491-2509

mailto:acote@postech.ca
http://www.postech.ca

GeneralC# Photo Album Viewer - Need help, will pay. Pin
Joel Briggs19-Sep-03 6:09
Joel Briggs19-Sep-03 6:09 
GeneralRe: C# Photo Album Viewer - Need help, will pay. Pin
fadee20-Sep-03 1:37
fadee20-Sep-03 1:37 
GeneralResourceManager.GetString() unsafe Pin
berndg19-Sep-03 5:25
berndg19-Sep-03 5:25 
GeneralParent form / child form docking problems Pin
Member 54950419-Sep-03 4:37
Member 54950419-Sep-03 4:37 
Generalurgent help!! how to create form like project property page of CSharp project in a solution Pin
Maggiem19-Sep-03 4:12
Maggiem19-Sep-03 4:12 
GeneralRe: urgent help!! how to create form like project property page of CSharp project in a solution Pin
leppie19-Sep-03 7:08
leppie19-Sep-03 7:08 
GeneralHelp with Outlook Global Address List!!!! Pin
frank2119-Sep-03 3:39
frank2119-Sep-03 3:39 
GeneralDataGrid binding. Pin
kalla12319-Sep-03 2:26
kalla12319-Sep-03 2:26 
GeneralRe: DataGrid binding. Pin
Mazdak19-Sep-03 6:48
Mazdak19-Sep-03 6:48 
GeneralRe: DataGrid binding. Pin
Jim MacDonald19-Sep-03 9:44
Jim MacDonald19-Sep-03 9:44 
GeneralRe: DataGrid binding. Pin
kalla12319-Sep-03 10:01
kalla12319-Sep-03 10:01 
Generaltabcontrol Pin
brain2cpu18-Sep-03 23:49
professionalbrain2cpu18-Sep-03 23:49 
GeneralRe: tabcontrol Pin
NetPointerIN19-Sep-03 7:47
NetPointerIN19-Sep-03 7:47 
GeneralRe: tabcontrol Pin
brain2cpu23-Sep-03 20:08
professionalbrain2cpu23-Sep-03 20:08 
Generalmp3 calculations Pin
Uncle Monkey18-Sep-03 23:29
Uncle Monkey18-Sep-03 23:29 
GeneralRe: mp3 calculations Pin
Julian Bucknall [MSFT]19-Sep-03 6:33
Julian Bucknall [MSFT]19-Sep-03 6:33 
GeneralRe: mp3 calculations Pin
Uncle Monkey21-Sep-03 22:31
Uncle Monkey21-Sep-03 22:31 

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.