Changeset 1500


Ignore:
Timestamp:
May 26, 2010, 2:43:55 PM (12 years ago)
Author:
Sven Rech
Message:

fixed dll path in quadratic sieve

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/QuadraticSieve/QuadraticSieve.cs

    r1468 r1500  
    592592                string s = Directory.GetCurrentDirectory();
    593593                string dllname;
     594                string relPath;
    594595                if (IntPtr.Size == 4)
     596                {
    595597                    dllname = "msieve.dll";
     598                    relPath = "x86";
     599                }
    596600                else
     601                {
    597602                    dllname = "msieve64.dll";
    598                 msieveDLL = Assembly.LoadFile(Directory.GetCurrentDirectory() + "\\AppReferences\\" + dllname);
     603                    relPath = "x64";
     604                }
     605                msieveDLL = Assembly.LoadFile(Directory.GetCurrentDirectory() + "\\AppReferences\\"  + relPath + "\\" + dllname);
    599606                msieve = msieveDLL.GetType("Msieve.msieve");
    600607            }
Note: See TracChangeset for help on using the changeset viewer.