Błąd przy dodawniu biblioteki

0

Przy dodawaniu biblioteki DLL dostaję błąd: "A reference to the "...dll" could not be added. This is not a valid assembly or COM".

Co z taką biblioteką zrobić?

0

Jak głośi wiadomość, nie dodasz sobie :>
Pewnie jest to zwykłe dll Win32. Da się to zrobić w taki sposób:

public class WinAPI
{
[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern int SystemParametersInfo (int uAction , int uParam , string lpvParam , int fuWinIni) ;
}

1 użytkowników online, w tym zalogowanych: 0, gości: 1