Calling C runtime methods in Managed C++ - getting exception, please help

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Paul Brun (pb_newsgroup_at_pbrun.net)
Date: 02/24/04


Date: Tue, 24 Feb 2004 15:31:24 -0500

Hey guys,

I have a method defined in a C header and want to call it from Managed C++. The header
definition is:

            extern int SXInit (int, ...);

now...the problem I have is that I can a runtime exception:

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at SXInit(Int32 )
.
.
.
.

How do I go about remedying this issue so I can call variable length C runtime methods correctly?

Thanks
Paul



Relevant Pages

  • Re: How do I ... Blank body = Blank reply
    ... Hey, they wanted to put everything in the Subject header so I'm ... > Since the OP is using the CDO webnews interface, ... > Subject header to a CDO poster will also get truncated when they view the ...
    (microsoft.public.outlook.general)
  • Re: Proper ending for a blood thirsty guntard.
    ... >>>You need to learn how to read a header, moron. ... > It is Now understood that YOU are a liar and a coward, "bill"! ... Hey asshole, I reluctantly posted my military forms. ...
    (talk.politics.guns)
  • Re: [PHP] php redirection..
    ... >> hey stut... ... > 2) Using header will definitely not display any output from the page. ... and that the browser won't process it and show ... PHP General Mailing List ...
    (php.general)
  • Re: "See Subject Header For Details" Bob Lazar (Weasel Remember!)"
    ... > Hey Mr. Lazar, why do you always say "See subject header for details?" ... > the Subject Header gives one a general idea- not details? ... That's because Lazar is Usenet's Queen Bitch of One Liners. ... message, his train of "thought" quickly derails, and he careens off into a ...
    (talk.politics.guns)
  • Re: headers and
    s

    ... Hey! ... You could use a division and cascade the h4 and p elements so no explicit class attribute is required. ... All the header are the same so it would at least cut down on the need to cite header classes. ...
    (comp.infosystems.www.authoring.stylesheets)