MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Problems getting DLL Functioncalls to work properly


I am having trouble to get DLL function calls to work properly on my
system. To start with the examples in the help documentation do not
work:

In[3]:= Needs["NETLink`"]
In[6]:= NETLink[]
Out[6]= LinkObject["C:\\Program Files\\Wolfram \
Research\\Mathematica\\8.0\\SystemFiles\\Links\\NETLink\\\
InstallableNET.exe", 16, 8]

In[7]:= getTickCount =
 DefineDLLFunction["GetTickCount", "kernel32.dll", "int", {}]

Out[7]= Function[Null,
 If[NETLink`DLL`Private`checkArgCount["GetTickCount", {##1}, 0],
  Wolfram`NETLink`DynamicDLLNamespace`DLLWrapper4`GetTickCount[##1], \
$Failed], {HoldAll}]

Where is my mistake?

Thanks for helping in advance

Guido



  • Prev by Date: Transfer dynamic into static variables
  • Next by Date: Re: Disabling ContourPlot updating in Manipulate and Show commands
  • Previous by thread: Re: Transfer dynamic into static variables
  • Next by thread: Re: Problems getting DLL Functioncalls to work properly