Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

C# Windows.Forms dll

Discussion in 'Formats & External Tools' started by TwILeK, Mar 10, 2015.

  1. TwILeK

    TwILeK

    Joined:
    Sep 17, 2014
    Posts:
    54
    Hi

    I create a DLL with Windows.Forms and add it to Unity pugins directory.

    In this dll i open a simple Window and create Windows.Forms components ...
    Yes, i required these dll, and require windows forms :)

    The frist time when i call the Windows.Forms.Form f = new Windows.Forms.Form(); no error, all ok
    i close the window and open it again i get these error message twice: Could not register the window class, win32 error 0

    But the form is open and all work correctly!

    What is the problem or what is the workaround?

    Thanks
     
  2. MagicZelda

    MagicZelda

    Joined:
    May 1, 2013
    Posts:
    90
    i didnt think windows.Forms work with Unity so thats good you got this far, sorry no answerer for your error but i will watch with interest :)
     
  3. jRocket

    jRocket

    Joined:
    Jul 12, 2012
    Posts:
    687
    Could it be looking for the win32 dlls? kernel32.dll, user32.dll, and gdi32.dll?
     
  4. MagicZelda

    MagicZelda

    Joined:
    May 1, 2013
    Posts:
    90
    Very possibly win32 have a search via google, i found a few posts about windows.forms not working in unity
     
  5. TwILeK

    TwILeK

    Joined:
    Sep 17, 2014
    Posts:
    54
    Hi

    No DLL error, the application is running correctly, just in the second start drop these error message ...
    All dll found, all form works, but i get 2 window with these error code ...

    and i dont know why, and how to disable these message
     
  6. TwILeK

    TwILeK

    Joined:
    Sep 17, 2014
    Posts:
    54
    Nice supoprt for unity ...
    i bought pro version and can't get a valid answer from any unity developer ...
     
  7. TwILeK

    TwILeK

    Joined:
    Sep 17, 2014
    Posts:
    54
    I solved the problem ... wrote a simple taskbar application who find and close the Oops window ...

    Thanks the answers ...
     
  8. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    You're doing something that's not officially supported by Unity. There's no reason to take a dig at them. Not to mention this is a community forum so we are actually very fortunate that Unity staff actually do take the time to respond here.