» »

[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


Vredno ogleda ...

TemaSporočilaOglediZadnje sporočilo
TemaSporočilaOglediZadnje sporočilo
»

[C#] Prosim pomagajte! Potrebujem program, ki bi pobiral podatke iz ene strani

Oddelek: Programiranje
212582 (2192) David1994
»

Vb6

Oddelek: Programiranje
101258 (1121) StratOS
»

API+VB

Oddelek: Programiranje
261976 (1680) webblod
»

Odpiranje dat.exe v VB

Oddelek: Programiranje
122811 (2604) webblod
»

Visual basic Progress bar

Oddelek: Programiranje
51451 (1384) Lunik

Več podobnih tem