Sign in to follow this  
Followers 0
Darth_Sulfur

DLLCall mistery...

4 posts in this topic

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! :)

Share this post


Link to post
Share on other sites



Layer have made such a function, which is in the newest betas...

Get the last one here..

Share this post


Link to post
Share on other sites

Nevermind, nevermind, problem's something else. Thanks! :)

Share this post


Link to post
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 *

Share this post


Link to post
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
Sign in to follow this  
Followers 0