Click here to Skip to main content
11,411,840 members (47,318 online)
   

C#

 
AnswerRe: IDisposable spread PinmemberBobJanova14-Feb-13 0:54 
Questionpropertygrid double click events Pinmemberjone.cunha13-Feb-13 1:56 
AnswerRe: propertygrid double click events PinmvpRichard MacCutchan13-Feb-13 2:14 
GeneralRe: propertygrid double click events Pinmemberjone.cunha13-Feb-13 2:24 
GeneralRe: propertygrid double click events PinmvpRichard MacCutchan13-Feb-13 2:44 
GeneralRe: propertygrid double click events Pinmemberjone.cunha13-Feb-13 2:53 
GeneralRe: propertygrid double click events PinmvpRichard MacCutchan13-Feb-13 4:16 
GeneralRe: propertygrid double click events Pinmemberjone.cunha13-Feb-13 5:45 
GeneralRe: propertygrid double click events PinmvpRichard MacCutchan13-Feb-13 6:38 
GeneralRe: propertygrid double click events Pinmemberjone.cunha13-Feb-13 8:32 
QuestionEnevts in MVC application. Need some Help. Pinmemberplywoods12-Feb-13 22:09 
QuestionHow to determine whether the given geo code in within geo fence or not? PinmemberVijay Kanda12-Feb-13 21:57 
AnswerRe: How to determine whether the given geo code in within geo fence or not? PinprotectorPete O'Hanlon13-Feb-13 0:13 
Questioncalling a method in c++ from c# [modified] Pinmemberbonosa12-Feb-13 18:45 
this is in my c++ file

public ref class Class1
    {
    public:
        int read_file
        (const char * file_path,    /* Path to  file */
         hdf_call_vars_t & ret_vals)    ;
 

 

 
    };

and from c# I call it like so (unsafe code)

    hdf_call_vars_t ret_vals;
 
            string str = "C:\\a.h5";
            byte[] bytes = Encoding.ASCII.GetBytes(str);
 

 
                fixed (byte* p = bytes)
                {
                    sbyte* sp = (sbyte*)p;
                    
                    DoAT.Class1 cl = new DoAT.Class1();
 
                    cl.read_file(sp,  ref ret_vals);

It does not compile sayiing the c++ is expecting a pointer to a structure. I thought making it an & is the same as passing by ref?
Input appreciated.
thanks,
sb

p.s. the c++ is a managed dll and I add it as a reference in the c# program.

modified 12-Feb-13 23:53pm.

AnswerRe: calling a method in c++ from c# PinmemberN a v a n e e t h12-Feb-13 23:19 
GeneralRe: calling a method in c++ from c# Pinmemberbonosa13-Feb-13 4:55 
GeneralRe: calling a method in c++ from c# PinmemberN a v a n e e t h13-Feb-13 19:21 
GeneralRe: calling a method in c++ from c# Pinmemberbonosa14-Feb-13 17:56 
GeneralRe: calling a method in c++ from c# PinmemberN a v a n e e t h14-Feb-13 22:41 
GeneralRe: calling a method in c++ from c# Pinmemberbonosa15-Feb-13 18:27 
GeneralRe: calling a method in c++ from c# PinmemberN a v a n e e t h16-Feb-13 18:41 
GeneralRe: calling a method in c++ from c# PinmemberN a v a n e e t h17-Feb-13 6:02 
GeneralRe: calling a method in c++ from c# Pinmemberbonosa13-Feb-13 7:48 
QuestionDynamic Form Creation/Layout PinmemberMatt U.12-Feb-13 5:21 
AnswerRe: Dynamic Form Creation/Layout PinmemberOrjan Westin12-Feb-13 7:16 
GeneralRe: Dynamic Form Creation/Layout PinmemberMatt U.12-Feb-13 7:51 
AnswerRe: Dynamic Form Creation/Layout PinmemberPIEBALDconsult12-Feb-13 13:36 
QuestionException: Cannot open Servicexxx service on computer 'COMPUTER_NAME' PinmemberNarVish12-Feb-13 2:18 
AnswerRe: Exception: Cannot open Servicexxx service on computer 'COMPUTER_NAME' PinmemberN a v a n e e t h12-Feb-13 2:36 
AnswerRe: Exception: Cannot open Servicexxx service on computer 'COMPUTER_NAME' PinmvpDave Kreskowiak12-Feb-13 3:05 
QuestionHow can I allow selected rows in a DataGridView (DGV) to be moved up or down in a button click. Pinmembersusanna.floora11-Feb-13 23:50 
AnswerRe: How can I allow selected rows in a DataGridView (DGV) to be moved up or down in a button click. PinmvpRichard MacCutchan12-Feb-13 1:27 
GeneralRe: How can I allow selected rows in a DataGridView (DGV) to be moved up or down in a button click. Pinmembersusanna.floora12-Feb-13 1:56 
Questioncontrol robots with c# !? Pinmembersource.compiler11-Feb-13 22:47 
AnswerRe: control robots with c# !? PinprotectorPete O'Hanlon11-Feb-13 23:11 
AnswerRe: control robots with c# !? PinmemberJibesh11-Feb-13 23:19 
Questiongame with Object-oriented programming [modified] Pinmembersaber_ershadi11-Feb-13 22:22 
AnswerRe: game with Object-oriented programming PinmemberJibesh11-Feb-13 23:22 
GeneralRe: game with Object-oriented programming Pinmembersaber_ershadi12-Feb-13 0:55 
GeneralRe: game with Object-oriented programming Pinmemberlukeer12-Feb-13 20:32 
AnswerRe: game with Object-oriented programming PinmvpRichard MacCutchan11-Feb-13 23:22 
AnswerRe: game with Object-oriented programming Pinmember ProgramFOX12-Feb-13 3:18 
QuestionHow to encryp video file and decrypt ? Pinmembersaber_ershadi11-Feb-13 7:10 
AnswerRe: How to encryp video file and decrypt ? PinmvpRichard MacCutchan11-Feb-13 7:31 
AnswerRe: How to encryp video file and decrypt ? PinmvpDave Kreskowiak11-Feb-13 8:29 
AnswerRe: How to encryp video file and decrypt ? PinmemberAlbert Holguin11-Feb-13 16:42 
GeneralRe: How to encryp video file and decrypt ? Pinmembersaber_ershadi11-Feb-13 22:27 
GeneralRe: How to encryp video file and decrypt ? PinmvpDave Kreskowiak12-Feb-13 3:07 
GeneralRe: How to encryp video file and decrypt ? PinmemberAlbert Holguin12-Feb-13 6:07 
AnswerRe: How to encryp video file and decrypt ? PinprofessionalAmir Mohammad Nasrollahi29-Jul-13 23:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150414.5 | Last Updated 26 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid