🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8978

Re: Is it possible to Read a Value from another EXE-file?

#8978
From: Vladimir Stefanovic
Date: Thu, 26 Aug 2004 10:14
18 lines
1591 bytes
> Can I define data (for identification) in A which can be read from
B?

I think you can use CreateFileMapping() & MapViewOfFile() for that.

This is what Remy said once for similar case:

|  Use a named file mapping to share a block of memory
|  between the two programs.  Look at CreateFileMapping()
|  and MapViewOfFile().  When both applications call
|  CreateFileMapping() using the same name, they will get a
|  handle to the same global mapping object.  Then MapViewOfFile()
|  can turn that object into a pointer that both applications can then
|  use to access the shared memory.


Best regards,
Vladimir Stefanovic
Technical Details
Message-ID: <412db93f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <opsdbpl9bxpmxkmr@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7027a3c3c5d1c750
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Vladimir Stefanovic" <spam@not.needed>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <opsdbpl9bxpmxkmr@newsgroups.borland.com>
Subject: Re: Is it possible to Read a Value from another EXE-file?
Date: Thu, 26 Aug 2004 12:14:41 +0200
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 213.137.116.229
Message-ID: <412db93f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1093515583 213.137.116.229 (26 Aug 2004 03:19:43 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail