FileMapping function

Started by Grincheux, March 01, 2007, 03:08:45 PM

Previous topic - Next topic

Grincheux

Here are two functions : The first loads a file into memory using the file mapping process and the second frees the memory and handles used by the first function.

Functions are self-documented.

Thanks

[attachment deleted by admin]
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz

PBrennick

Grincheux,
Thank you for your contributions. There will be a new release later next week. The three functions will be in it. Since you made no comment to my posting in the GetFilename thread, I assume you like the way I credited it. The credit for these two will, of course, only list you.

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

Grincheux

No problem. The only reason I come on this forum, is for sharing code and knowledge.

All what I do is free and is for everyone.

I have many others codes to share, but what is the frequence of your updates ?

Thanks.
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz

PBrennick

Grincheux,
When I am well, I update on a weekly basis. I live in a nursing home and I can only afford a dialup with a maximum of 50 hours, now. So we will see. Uploads are very slow, now, also.

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

Grincheux

What ! You don't have the DSL ?

Even in France we have.

Thanks.
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz

Vortex

Grincheux,

Thanks for your contribution, it's nice. I have two modest recommendations. Would you like to split the source code into two separate modules File_LoadEntire and File_Unload? This would be a good practice to avoid the granularity problem. Also, you don't need to preserved esi and edi as they remain intact when both of the procedures returns the control to the main module.

Once again, many thanks for your work. Please feel free to share your other works with us.

Grincheux

Ok, I have splitted into two files.

Because the two functions are for the same subject I wrote them into a single file. But there is no problem.

These two files are in two archives files. For uploading I put the two archives into a single one.

Thanks

[attachment deleted by admin]
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz

Vortex

Grincheux, thanks for your efforts.

Merci pour votre efforts.