How do I migrate certain API code to .net e.g. FileMapping

  • Thread starter Thread starter Alex
  • Start date Start date
A

Alex

Hi

I have been planning to move over to .net for some time now but I have a lot
of code written in VB that uses a lot of win32 api's. The main area is
reading and writing data quickly to and from file and in memory. currently I
use copymemory extensively along with varptr. I want to continue to write
fast code but I am not sure how efficient the serialize functions built into
much of .net are. I also use filemapping to perform high speed read write
access to my own very large data files.

are there features built into .net framework to support file mapping

Once I have figured out these few problems i can start to properly translate
existing code to vb.net

thanks
alex
 
Hi Alex

In my opinoion are there to much serialize functions in the net to give you
links here,

Have a look for

streamwriter
memorystream
streamreader
datareader
textreader
IO.fileinfo
IO.dirinfo
IO.file

But I think this is limited and you will find the rest yourself starting
with this.

All managed code, one of the the benefits from that is, that it will work
probably in future (not forever) too when there is a type processor change
or something like that.

I hope this helps,

Cor
 
Back
Top