Re: Problems getting DLL Functioncalls to work properly
- To: mathgroup at smc.vnet.net
- Subject: [mg125255] Re: Problems getting DLL Functioncalls to work properly
- From: "Oleksandr Rasputinov" <oleksandr_rasputinov at ymail.com>
- Date: Fri, 2 Mar 2012 07:50:06 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <jinj73$cr4$1@smc.vnet.net>
On Thu, 01 Mar 2012 10:32:03 -0000, Guido <guido.reichert at gmx.de> wrote:
> 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
>
From these outputs it does not look like there is any mistake. (Evidently
you have called InstallNET[], as is required, although this call is not
shown above.) Does getTickCount[] not return the expected value?