Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Problem loading with dll

Problem loading with dll

Scheduled Pinned Locked Moved C#
help
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    asugix
    wrote on last edited by
    #1

    I have problem with dll loading (windows says "Unable to load DLL 'Scilexer.dll', the spesified module could not be found. Exception from HRESULT : 0x8007007E). this problem occurs when I try to override :

    unsafe public override string Text
    {
    get
    {
    int sz = win32Access.SendSciMessage(directPointer,(int)ScintillaEnum.Selection.SciGetLength,0,0); //form designer says that the problem occurs at this line

    but when I change the name so that it no longer override, It can works. I can use this custom control again

    unsafe public string TheText
    {
    get
    {
    int sz = win32Access.SendSciMessage(directPointer,(int)ScintillaEnum.Selection.SciGetLength,0,0);

    please anyone help me to explain this.:confused:

    No one can prevent me to learn something

    L 1 Reply Last reply
    0
    • A asugix

      I have problem with dll loading (windows says "Unable to load DLL 'Scilexer.dll', the spesified module could not be found. Exception from HRESULT : 0x8007007E). this problem occurs when I try to override :

      unsafe public override string Text
      {
      get
      {
      int sz = win32Access.SendSciMessage(directPointer,(int)ScintillaEnum.Selection.SciGetLength,0,0); //form designer says that the problem occurs at this line

      but when I change the name so that it no longer override, It can works. I can use this custom control again

      unsafe public string TheText
      {
      get
      {
      int sz = win32Access.SendSciMessage(directPointer,(int)ScintillaEnum.Selection.SciGetLength,0,0);

      please anyone help me to explain this.:confused:

      No one can prevent me to learn something

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      Is Scilexer.dll is the same directory as the application? If so, are all Scilexer.dll's dependencies in the PATH?

      xacc.ide - now with TabsToSpaces support
      IronScheme - 1.0 beta 1 - out now!
      ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))

      A 1 Reply Last reply
      0
      • L leppie

        Is Scilexer.dll is the same directory as the application? If so, are all Scilexer.dll's dependencies in the PATH?

        xacc.ide - now with TabsToSpaces support
        IronScheme - 1.0 beta 1 - out now!
        ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))

        A Offline
        A Offline
        asugix
        wrote on last edited by
        #3

        Of course that dll's is in the same place. I copied that Dll into Debug and Release directory. That's why my Code work when I change unsafe public override string Text with unsafe public string TheText Both can't work if the Dll is not in the right directory, right? I'm still confused with this problem:confused:

        No one can prevent me to learn something

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups