Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Can't find the mistake...

  1. #11
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    So, to get your project to compile in visual studio 2015 I had to:
    - disable precompiled headers
    - add libmysql.lib to to the linker options of all Build-targets in x86/x64
    - cast GetModuleHandle((LPCSTR)"uo_game_mp_x86.dll");
    It compiles without errors then. If I maybe have time ill lokk into your dllmain issue

  2. #12
    Private
    Join Date
    Oct 2014
    Posts
    32
    Thanks
    0
    Thanked 5 Times in 4 Posts
    I got the project compiled. I have the DLL, but if I inject it, nothing happens. Even Dllmain isn't called.
    (I added a msgbox but it didn't pop up)

  3. #13
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Did you compile the dll as a 32-bit release? I guess that a 32-bit process and a 64-bit dll doesn't work.
    Also did you add the mysql dll to the same directory as your compiled dll?

    Maybe there is some useful information in this thread:
    http://killtube.org/showthread.php?1...ll=1#post10967

  4. #14
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    depends.exe is a nice tool to check if a exe/dll is missing dependencies

    http://www.dependencywalker.com/
    timescale 0.01

  5. The Following User Says Thank You to kung foo man For This Useful Post:

    Mitch (21st October 2015)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •