Jump to content

DLLCall mistery...


Recommended Posts

Hello everyone! :evil:

Now... I don't know C++, but I believe that the ways of calling DLL's are similar to those of C#... To the problem now:

I used to call the Kernel32.dll's Beep() function with two longs in AutoIt, now I try calling it on C# but it doesn't work... MSDN says that the Beep() function accepts only ints... Do you do any kind of conversion in AutoIt? If so, could you explain? Thanks! :)

Link to comment
Share on other sites

I used to call the Kernel32.dll's Beep() function with two longs in AutoIt, now I try calling it on C# but it doesn't work... MSDN says that the Beep() function accepts only ints... Do you do any kind of conversion in AutoIt? If so, could you explain? Thanks! :)

I don't know the internals of DllCall, but in C++ int and long are both 32 Bit values on 32 Bit systems, whereas long is a 64 Bit value in C#.

Cheers

Kurt

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...