Forum » Programiranje » [VB.NET] SHGetSpecialFolderLocation
[VB.NET] SHGetSpecialFolderLocation
Vragec_sc ::
Pozdravljeni
Upam, da bo kdo znal rešit moj problem z zgoraj omenjeno funkcijo.
Problem je sledeči.
Funkcijo imam definirano kot:
Public Declare Function SHGetSpecialFolderLocation Lib "shell32" (ByVal hwndOwner As Long, ByVal nFolder As Long, ByVal pidl As Long) As Long
Kličem jo z:
SHGetSpecialFolderLocation(1, CSIDL_APPDATA, pidl)
Public Const CSIDL_APPDATA = &H1A
Dim pidl As Integer
pidl = 0
In sedaj se mi ob izvajanju pojavi napaka:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Kakršna koli pomoč je dobrodošla.
lp
Upam, da bo kdo znal rešit moj problem z zgoraj omenjeno funkcijo.
Problem je sledeči.
Funkcijo imam definirano kot:
Public Declare Function SHGetSpecialFolderLocation Lib "shell32" (ByVal hwndOwner As Long, ByVal nFolder As Long, ByVal pidl As Long) As Long
Kličem jo z:
SHGetSpecialFolderLocation(1, CSIDL_APPDATA, pidl)
Public Const CSIDL_APPDATA = &H1A
Dim pidl As Integer
pidl = 0
In sedaj se mi ob izvajanju pojavi napaka:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Kakršna koli pomoč je dobrodošla.
lp
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | [C#] Prosim pomagajte! Potrebujem program, ki bi pobiral podatke iz ene straniOddelek: Programiranje | 2744 (2354) | David1994 |
» | Vb6Oddelek: Programiranje | 1326 (1189) | StratOS |
» | API+VBOddelek: Programiranje | 2088 (1792) | webblod |
» | Odpiranje dat.exe v VBOddelek: Programiranje | 2985 (2778) | webblod |
» | Visual basic Progress barOddelek: Programiranje | 1561 (1494) | Lunik |