Re: Calling kernel.dll from Mathematica
- To: mathgroup at smc.vnet.net
- Subject: [mg108710] Re: Calling kernel.dll from Mathematica
- From: "Alexey Popkov" <lehin.p at gmail.com>
- Date: Sun, 28 Mar 2010 04:09:04 -0500 (EST)
Todd,
Is there a straightforward way to determine which of the loaded NETTypes
corresponds to a function returned by DefineDLLFunction? Or the only way is
to use Definition[]?
Alexey Popkov
----- Original Message -----
From: "Todd Gayley" <tgayley at wolfram.com>
To: "Alexey Popkov" <lehin.p at gmail.com>; <mathgroup at smc.vnet.net>
Sent: Thursday, March 18, 2010 2:22 AM
Subject: [mg108710] Re: [mg108399] Calling kernel.dll from Mathematica
<...>
You can see that the
GlobalMemoryStatusEx function is in the context
Wolfram`NETLink`DynamicDLLNamespace`DLLWrapper1`,
which corresponds to a .NET class name of
Wolfram.NETLink.DynamicDLLNamespace.DLLWrapper1.
That is the class that was automatically created
to hold the GlobalMemoryStatusEx function. You
can also see that this is the created class name
by looking at LoadedNETTypes[]:
In[58]:= LoadedNETTypes[]
Out[58]= {NETType[Wolfram.NETLink.DynamicDLLNamespace.DLLWrapper1,1]}
<...>
Todd Gayley
Wolfram Research