serializable Hash class in .Net

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fred

    serializable Hash class in .Net

    ****This message has been posted in microsoft.publi c.dotnet.framew ork
    several days before and received no reply, so I post it here, sorry if
    you get duplicate messages****
    Hi, all:
    I'm new to .Net, so don't laugh at my questions if they sound
    silly.
    Here it comes, I want to utilize classes in .Net framework
    namespace, such as system.collecti ons. Things become simple if I'm
    coding in C#( just using ... ), however, I'm modifying a C++ program,
    and, it's MFC supported. I think what I should do is to import
    corresponding libs to introduce classes and namespaces in .Net
    framework. Am I right?
    That's the first question. The second is, importing libs seems
    tricky, there're few examples I could follow, is it better for me to
    build a COM/DLL with C# so that I could just call it in C++?
    It would be more convenient if some background is supplied. My
    object is to use a serializable hash class to store a large amount of
    URLs. It must be serializable, so that at the first time, I could
    build hash with URLs as keys, then dump the hash into a file. From
    then on, when I get a new URL, first I should load the hash from the
    file, next, I could check it among the URLs for existance, rebuild
    hash could be avoided.
    As to my situation, which hash class is suitable? I've got
    system.collecti ons.hashtable, and some
    System.Security .Policy.hash, ... Thanks a lot for you help.
  • Cor Ligthert[MVP]

    #2
    Re: serializable Hash class in .Net

    Fred,

    What is the reason that this hash to be a "hasttable" , I get the idea that
    you understand the "hash table" wrong in the context of .Net.

    Cor

    "Fred" <hn.ft.pris@gma il.comschreef in bericht
    news:d442c0bc-297a-4bd4-b750-71c0c609deef@v1 g2000pra.google groups.com...
    ****This message has been posted in microsoft.publi c.dotnet.framew ork
    several days before and received no reply, so I post it here, sorry if
    you get duplicate messages****
    Hi, all:
    I'm new to .Net, so don't laugh at my questions if they sound
    silly.
    Here it comes, I want to utilize classes in .Net framework
    namespace, such as system.collecti ons. Things become simple if I'm
    coding in C#( just using ... ), however, I'm modifying a C++ program,
    and, it's MFC supported. I think what I should do is to import
    corresponding libs to introduce classes and namespaces in .Net
    framework. Am I right?
    That's the first question. The second is, importing libs seems
    tricky, there're few examples I could follow, is it better for me to
    build a COM/DLL with C# so that I could just call it in C++?
    It would be more convenient if some background is supplied. My
    object is to use a serializable hash class to store a large amount of
    URLs. It must be serializable, so that at the first time, I could
    build hash with URLs as keys, then dump the hash into a file. From
    then on, when I get a new URL, first I should load the hash from the
    file, next, I could check it among the URLs for existance, rebuild
    hash could be avoided.
    As to my situation, which hash class is suitable? I've got
    system.collecti ons.hashtable, and some
    System.Security .Policy.hash, ... Thanks a lot for you help.

    Comment

    Working...