Article View: borland.public.cppbuilder.nativeapi
Article #8977Is it possible to Read a Value from another EXE-file?
From: PC Hua
Date: Thu, 26 Aug 2004 05:02
Date: Thu, 26 Aug 2004 05:02
20 lines
1491 bytes
1491 bytes
In my project there are 2 executable files A and B. I want to make sure that the user has a copy of A when he runs B (just for license reason). Can I define data (for identification) in A which can be read from B? Alternatively, I will call A from B and A will return a value to identify itself. How do I make A knows it's called by B so that A will only return a value instead of running the program? Another solution would be checking e.g. date and size of A. But I don't know how to access those information of A in compile time of B. Any other suggestion? thanks Phuoc Can HUA -- _/\__/\__/\__/\__/\__/\_ www.folksfun.com
Technical Details
Message-ID:
<opsdbpl9bxpmxkmr@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7027a3c3c5d1c750,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Thu, 26 Aug 2004 15:02:23 +1000 Subject: Is it possible to Read a Value from another EXE-file? Newsgroups: borland.public.cppbuilder.nativeapi From: PC Hua <home-AT-huaonline.DOT.com> Content-Type: text/plain; format=flowed; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: <opsdbpl9bxpmxkmr@newsgroups.borland.com> User-Agent: Opera7.21/Win32 M2 build 3218 NNTP-Posting-Host: 203.194.21.162 X-Trace: newsgroups.borland.com 1093496543 203.194.21.162 (25 Aug 2004 22:02:23 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail