🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Execute a Self-Embeded Exefile from inside.

#7021
From: Grety
Date: Wed, 23 Mar 2005 00:54
13 lines
1386 bytes
thanks :-)
do you know any good tutarial for me? in BCB5?

> You need to first extract HW.exe from the resources into a temporary file.
> Then you can execute the file.  Look at FindResource(), LoadResource(),
> LockResource(), and SizeOfResource() to get access to the raw bytes of the
> resource.  Then you can write those bytes to a file using CreateFile() and
> WriteFile().  Then use CreateProcess() to execute the file.
>
>
> Gambit
>
>
Technical Details
Message-ID: <42419ac1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newshosting.com!nx01.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4240720a@newsgroups.borland.com> <42408062$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4e27efe03a6582af
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Grety" <valid@emailaddress.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4240720a@newsgroups.borland.com> <42408062$1@newsgroups.borland.com>
Subject: Re: Execute a Self-Embeded Exefile from inside.
Date: Wed, 23 Mar 2005 05:24:57 +0430
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2479.0006
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2479.0006
NNTP-Posting-Host: 217.219.105.192
Message-ID: <42419ac1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1111595713 217.219.105.192 (23 Mar 2005 08:35:13 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newshosting.com!nx01.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail