in reply to Re: Re: Re: Re: Re: Re: Win32 Shared Memory
in thread Win32 Shared Memory

Did you check to see whether anything is being returned by OpenFileHandle()?

Try

my $mem_handle = OpenFileMapping( $SECTION_ALL_ACCESS, 0, $C3_mem ) or die "OpenFileHandle failed with: $^E";

See $EXTENDED_OS_ERROR for the explanation of $^E.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail

Replies are listed 'Best First'.
Re: Re+: Win32 Shared Memory
by nornagon (Acolyte) on May 16, 2004 at 03:29 UTC
    Ok, now it's saying that the system could not find the file specified... I have the game running, so the file should exist...

      Sorry, that's a problem I can't help you with as I don't have the game.

      About the best suggestion I can come up with is that you download one of the compiled utilities from the page you linked earlier and see if that can access the shared memory.

      If it can, and your code still cannot, then I don't know what else to suggest.


      Examine what is said, not who speaks.
      "Efficiency is intelligent laziness." -David Dunham
      "Think for yourself!" - Abigail
        Hmm, ok, I should have tried that earlier. Those utilities can't connect to the game. I had a certain suspicion...

        It's a slightly different game, so it must be using its own files... Something I doubt you can help with.

        Thanks for all your help!