Embed file

  • Thread starter Thread starter Nikolay Petrov
  • Start date Start date
N

Nikolay Petrov

I would like to embed a file in my EXE and extract it at runtime. Is
this possible? If so how?
the file is a MS Access Database. Would like to check if the file
doesn't exists in the application directory to extract it from the exe
and place it there.
 
Nikolay Petrov said:
I would like to embed a file in my EXE and extract it at runtime. Is
this possible? If so how?
the file is a MS Access Database. Would like to check if the file
doesn't exists in the application directory to extract it from the exe
and place it there.

<URL:http://groups.google.de/group/microsoft.public.dotnet.languages.vb/msg/7f73b72ab0a88452>

Instead of creating an icon object from the resource stream, write the
stream's data to a 'FileStream' object. Maybe it's even better to hold the
default database in a template directory and simply copy this template
database to the desired location instead of blowing up the resource by
embedding larger files.
 
Back
Top