Problem on Auth Server msvcrt.dll

09/07/2012 03:48 zakkwilde_17#1
Hello guys

I have a serious problem here ... I'm adapting a database with a AuthServer ... I was able to connect to the database, managed to do password authentication ... but at the time of sending the information to the client ... I get this error:

[Only registered and activated users can see links. Click Here To Register...]

Does anyone have any suggestion or solution to my problem?
09/07/2012 07:27 I don't have a username#2
Post your PInvoke code.

#Edit
I'd assume you have set your entry point to "DLL" in your PInvoke like [DllImport(EntryPoint = "DLL")] (example) But the entry point should actually be "memset" because that's the entry you want.

Otherwise remove your entry point and just rely on the method name.
09/07/2012 11:59 go for it#3
this link maybe helpful
[Only registered and activated users can see links. Click Here To Register...]
09/07/2012 19:11 zakkwilde_17#4
Quote:
Originally Posted by I don't have a username View Post
Post your PInvoke code.

#Edit
I'd assume you have set your entry point to "DLL" in your PInvoke like [DllImport(EntryPoint = "DLL")] (example) But the entry point should actually be "memset" because that's the entry you want.

Otherwise remove your entry point and just rely on the method name.
That's my Pinvoke:

[Only registered and activated users can see links. Click Here To Register...]


Code:
[DllImport("msvcrt.dll", CallingConvention = CallingConvention.Cdecl)]
        private static extern void* memset(void* dst, int val, int count);
maybe that is the problem?
09/07/2012 20:06 I don't have a username#5
I remember some members were using a .NET DLL called msvcrt, maybe you're pointing it to that, instead of the native msvcrt.

Try this:
Code:
[DllImport("c:\\windows\\system32\\msvcrt.dll", CallingConvention = CallingConvention.Cdecl)]
        private static extern void* memset(void* dst, int val, int count);
09/08/2012 09:05 InfamousNoone#6
Quote:
Originally Posted by I don't have a username View Post
I remember some members were using a .NET DLL called msvcrt, maybe you're pointing it to that, instead of the native msvcrt.

Try this:
Code:
[DllImport("c:\\windows\\system32\\msvcrt.dll", CallingConvention = CallingConvention.Cdecl)]
        private static extern void* memset(void* dst, int val, int count);
no they shouldn't be referencing the direct path to msvcrt.dll but rather instead renaming the .NET dll as it is what the conflict is, poor naming conflicts; why name your dll the same as a standardized dll on windows, lolol some people..
09/08/2012 09:53 I don't have a username#7
Quote:
Originally Posted by InfamousNoone View Post
no they shouldn't be referencing the direct path to msvcrt.dll but rather instead renaming the .NET dll as it is what the conflict is, poor naming conflicts; why name your dll the same as a standardized dll on windows, lolol some people..
True at that rofl. :cool:
09/08/2012 23:20 zakkwilde_17#8
Well ^^
My problem has been solved... That topic can be close now... The error has been corrected with your solution... Now to connect to the server, need only send the login data to the game server ...

Tnks man
09/08/2012 23:35 JohnHeatz#9
#Closed as requested