Implementation of void far*

S

Sonnich Jensen

From the documentation:


long far pascal TMExtendedStartSession(
short PortNum, // Port number to get a session to
short PortType, // Port type number to get a session to
void far *EnhancedOptions // A pointer for enhanced options (an
optional parameter)
);

and I need to do what?

[DllImport("ibfs32.dll")]
public static extern int TMExtendedStartSession(int portNum,
int portType, void far* sessionOptions);

WBR
Sonnich
 
M

Matt

From the documentation:

long far pascal TMExtendedStartSession(
short PortNum,             // Port number to get a session to
short PortType,            // Port type number to get a session to
void far *EnhancedOptions  // A pointer for enhanced options (an
optional parameter)
);

and I need to do what?

        [DllImport("ibfs32.dll")]
        public static extern int TMExtendedStartSession(int portNum,
int portType, void far* sessionOptions);

WBR
Sonnich

Oh my god, someone is still using the 1-wire stuff.

Rather than fighting this stuff, use the 1-Wire API for .NET library
from Maxim.

You can find it here: http://www.maxim-ic.com/products/ibutton/software/windowsdk/

It already has examples for using with .Net, including C#.

Matt
 
S

Sonnich Jensen

From the documentation:
long far pascal TMExtendedStartSession(
short PortNum,             // Port number to get a session to
short PortType,            // Port type number to get a session to
void far *EnhancedOptions  // A pointer for enhanced options (an
optional parameter)
);
and I need to do what?
        [DllImport("ibfs32.dll")]
        public static extern int TMExtendedStartSession(int portNum,
int portType, void far* sessionOptions);
WBR
Sonnich

Oh my god, someone is still using the 1-wire stuff.

Rather than fighting this stuff, use the 1-Wire API for .NET library
from Maxim.

You can find it here:http://www.maxim-ic.com/products/ibutton/software/windowsdk/

It already has examples for using with .Net, including C#.

Somewhat odd that it does not work.... it cannot find the adapter :(
And on Win7 is simply crashes :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top