News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

add and read files from dll

Started by sihotaamarpal, September 20, 2006, 04:21:42 PM

Previous topic - Next topic

sihotaamarpal

hi,
   how i add & read files from dll on runtime.i heard about .rc files can it be helpful in
   case of dll.plz reply soon,if yes plz guide me some start

@@:
regards
sihota

mnemonic

Maybe I am the only one, but I don't have any clue what you are talking about.
If you are not a native english speaker (like me) then you should use a dictionary to aid you in your posting process.

Maybe the link in my signature might be helpful...

Sorry
Be kind. Everyone you meet is fighting a hard battle.--Plato
-------
How To Ask Questions The Smart Way

Vortex

sihotaamarpal,

What are you trying to achieve exactly? You would like to update the resource section in your DLL?

sihotaamarpal

hi vortex
             i have a func that reads data from some file.actually i want to add that file in dll and read at runtime,that's actually i try to acheive.
         

PBrennick

sihotaamarpal,
Do you mean that you want to create a DLL using that file or do you have an existing DLL that you wish to use.  Both options can be done.

Paul
The GeneSys Project is available from:
The Repository or My crappy website

sihotaamarpal

sorry for my bad writing way that creates misunderstation


in clear sene

i have some dll file in which i have written one function that reads data from some file that exists externally(outside,other than dll file)
.my ques is how i embed that external file in my dll file so that i haven't to carry out that file always with my dll file.after embeding i want to read that inside file.howz that to be done?

Vortex

Assuming that you will not update later your DLL, you can use Hutch's fda ( file data assembler ) to embed your data file in your DLL.

sihotaamarpal


P1

sihotaamarpal,

Welcome Aboard       :U

The forum 'Search' and your favorite seach engine will answer many questions before we can and save you time.   :dance:

As far as dll's as a file storage container, I would look at other solutions.

From what I can tell here, Program a .ZIP solution ( Use Forum Search for more details. ) using encyption and an alternate file extension, for storing/archiving other files.  This should be quick and easy to get you going.

Regards,  P1  :8)

trodon

Quote from: Vortex on September 20, 2006, 06:00:59 PM
Assuming that you will not update later your DLL, you can use Hutch's fda ( file data assembler ) to embed your data file in your DLL.

i am litle confused  :red
is this come with masm32 instalation?

Vortex

Trodon,

Check your masm32 folder, you will see both the console and GUI versions of fda.

PBrennick

Trodon,
The GUI version is called fda2.exe (bin folder)

Paul
The GeneSys Project is available from:
The Repository or My crappy website

trodon

Quote from: PBrennick on September 20, 2006, 07:55:05 PM
Trodon,
The GUI version is called fda2.exe (bin folder)

Paul


belive or not i dont have this file in my masm32/bin folder  :eek
this is very strange
btw: i have masm32 v9
and this is the list of my bin folder files:


PBrennick

My fault, I evidently moved them there.  They are in the root folder not the bin folder.  If you installed on drive C, it will be c:\masm32\fda.exe

Sorry for the mix up,
Paul
The GeneSys Project is available from:
The Repository or My crappy website

trodon

Quote from: PBrennick on September 21, 2006, 12:10:46 PM
My fault, I evidently moved them there.  They are in the root folder not the bin folder.  If you installed on drive C, it will be c:\masm32\fda.exe

Sorry for the mix up,
Paul


nope, i was just look in all possible folders, and even examples :)
and i was found nothing
and i also try to reinstall masm32 and the result is same  :'(