Poser une questionPoser une question
 

Traitéelost the import dll: error 126

Réponses

  • jeudi 1 juin 2006 13:09nobugzMVP, ModérateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     Traitée
    Guessing here: do you have a Declare statement in your program that references "import.dll"?  If that is the case, you're working with a 3rd party DLL.  You need to put it in a folder so that .NET can find it.  Putting it in c:\windows\system32 would certainly work.  Putting it in the same folder as your program's .EXE is better...

Toutes les réponses

  • jeudi 1 juin 2006 13:09nobugzMVP, ModérateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     Traitée
    Guessing here: do you have a Declare statement in your program that references "import.dll"?  If that is the case, you're working with a 3rd party DLL.  You need to put it in a folder so that .NET can find it.  Putting it in c:\windows\system32 would certainly work.  Putting it in the same folder as your program's .EXE is better...
  • jeudi 1 juin 2006 15:12spotty Médailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     

    As you mention you are getting Error 126 This sounds like an error message that would be generated by a VB6 based application and not a .NET application.  

    Are you using VB.NET or and earlier version of VB.  

    If this question does relate to VB6 then the following applies if your using .NET then you need to provide more information.

    These forums are for VB.NET and there are better places to find answers for older versions of VB such as VB6.

    Maybe the VB6 newgroups - http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.vb.general.discussion&lang=en&cr=US

    or the VB6 resource center
    http://msdn.microsoft.com/vbrun/

    or web sites such as www.vbcity.com

    You could however download VB Express and start working with .NET technology - its free to download from microsoft web site.

    Hope these point you in the right direction.


     

  • jeudi 1 juin 2006 15:34nobugzMVP, ModérateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     
    I dunno Stan, VB6 generates error 53 when it can't find the DLL.  .NET generates error 0x8007007E which (when properly masked) equals error 126.
  • jeudi 1 juin 2006 15:50spotty Médailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     

    As I said, if they arent using vb6 the disregard and preovide more info.

    most of .net will display an exception rather than an error code.  unless of course you using legacy code which was imported into vb.net or love the on error goto construct and the appropriate error object rather than exception handling.