Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^8: Memory mapped file questions

by faustf (Novice)
on Oct 11, 2020 at 07:46 UTC ( #11122687=note: print w/replies, xml ) Need Help??


in reply to Re^7: Memory mapped file questions
in thread Memory mapped file questions

but the name of file exist and is Test , i run a MSDN example in C# and in C++ , in msdn i have first program create a memory mapped file , second program (i dont run a second program by main program), read perfect a string memory mapped file , therefore i simply want do it with perl. Why i do this ? simply i want understand how work a file mapped, and look how is complicated or not , in many program language , but if you confirm perl don't do it because for perl is necessary have a real file in HDD , no problem

Replies are listed 'Best First'.
Re^9: Memory mapped file questions
by Corion (Pope) on Oct 11, 2020 at 07:55 UTC

    If that works, then you can likely do the same in Perl. But as I don't know your C++ code to access that memory mapped file, you will have to find out yourself what API calls C# uses and how to access these from Perl.

    CPAN has some modules for memory mapping files, see Mmap, maybe you find something there. Or alternatively, maybe you can open the file just as a file, see open. In any case, you will have to find out what works for you, because I'm not going to learn what Windows API the C# code uses.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11122687]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (1)
As of 2021-09-26 22:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?