Click here to Skip to main content
15,914,488 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# voice print recognition or at least a voice recorder Pin
Dave Kreskowiak29-Mar-12 4:28
mveDave Kreskowiak29-Mar-12 4:28 
GeneralGenerate SQL Script of databases with data through an exe Pin
honeyashu29-Mar-12 0:40
honeyashu29-Mar-12 0:40 
GeneralRe: Generate SQL Script of databases with data through an exe Pin
PIEBALDconsult29-Mar-12 3:10
mvePIEBALDconsult29-Mar-12 3:10 
GeneralRe: Generate SQL Script of databases with data through an exe Pin
Henry Minute29-Mar-12 4:59
Henry Minute29-Mar-12 4:59 
QuestionGetting the focus to the CrystalReportViewer c # Pin
nhanlaptrinh28-Mar-12 22:37
nhanlaptrinh28-Mar-12 22:37 
Questiongps to get location Pin
nilesh nilkanth28-Mar-12 19:30
nilesh nilkanth28-Mar-12 19:30 
AnswerRe: gps to get location Pin
Abhinav S28-Mar-12 19:33
Abhinav S28-Mar-12 19:33 
QuestionBind combobox to two data sources Pin
kruegs3528-Mar-12 9:03
kruegs3528-Mar-12 9:03 
AnswerRe: Bind combobox to two data sources Pin
egenis28-Mar-12 19:28
egenis28-Mar-12 19:28 
QuestionLooking for a WCF host Pin
L Viljoen28-Mar-12 4:38
professionalL Viljoen28-Mar-12 4:38 
AnswerMessage Removed Pin
28-Mar-12 5:57
professionalN_tro_P28-Mar-12 5:57 
GeneralRe: Looking for a WCF host Pin
L Viljoen28-Mar-12 19:20
professionalL Viljoen28-Mar-12 19:20 
AnswerRe: Looking for a WCF host Pin
PIEBALDconsult28-Mar-12 6:48
mvePIEBALDconsult28-Mar-12 6:48 
GeneralRe: Looking for a WCF host Pin
SledgeHammer0128-Mar-12 12:56
SledgeHammer0128-Mar-12 12:56 
GeneralRe: Looking for a WCF host Pin
PIEBALDconsult28-Mar-12 14:01
mvePIEBALDconsult28-Mar-12 14:01 
GeneralRe: Looking for a WCF host Pin
L Viljoen28-Mar-12 19:14
professionalL Viljoen28-Mar-12 19:14 
AnswerRe: Looking for a WCF host Pin
jschell28-Mar-12 12:49
jschell28-Mar-12 12:49 
GeneralRe: Looking for a WCF host Pin
L Viljoen28-Mar-12 19:17
professionalL Viljoen28-Mar-12 19:17 
GeneralRe: Looking for a WCF host Pin
jschell29-Mar-12 7:58
jschell29-Mar-12 7:58 
Questionpassing array of doubles Pin
__John_28-Mar-12 2:57
__John_28-Mar-12 2:57 
AnswerRe: passing array of doubles Pin
BobJanova28-Mar-12 5:52
BobJanova28-Mar-12 5:52 
AnswerRe: passing array of doubles Pin
kevinnicol28-Mar-12 7:01
kevinnicol28-Mar-12 7:01 
I Suspect BobJanova is correct, but I just did some messing around with unsafe code and there is a possability that even though the wrapper is taking a double ref, it may be treating it as a pointer. Check this code out

C#
static void Main(string[] args)
{
    double[] testArr = new double[] { 1.0, 2.0, 3.0 };

    for (int i = 0; i < 3; i++)
        Console.WriteLine(testArr[i]);

    test(ref testArr[0]);

    for (int i = 0; i < 3; i++)
        Console.WriteLine(testArr[i]);
}

public static unsafe void test(ref double x)
{
    fixed (double* ptr = &x)
    {
        ptr[1] = 2.5;
    }
}


this produces the following instead of an error.
1
2
3
1
2.5
3


so there is a chance that simply passing a reference to the 0th index in the array might get what you want done. I don't have the wrapper setup to test it out myself.
GeneralRe: passing array of doubles Pin
BobJanova28-Mar-12 22:44
BobJanova28-Mar-12 22:44 
AnswerRe: passing array of doubles Pin
__John_28-Mar-12 23:06
__John_28-Mar-12 23:06 
GeneralRe: passing array of doubles Pin
DaveyM6929-Mar-12 2:46
professionalDaveyM6929-Mar-12 2:46 

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.