Je suis en train de faire un appel à l'appel API Windows CE 5, « FindFirstChangeNotification » dans un projet Smart Device VS2008 utilisant:chaîne Problème passer à LPCTSTR dans WinCE5 API appel
Private Declare Function FindFirstChangeNotification Lib "coredll.dll" _
(ByVal lpPathName As String, ByVal bWatchSubtree As Long, _
ByVal dwNotifyFilter As Long) As Long
Dim strFolderPath As String = "\My Documents\My App Files\"
Dim ptrHandle as IntPtr = FindFirstChangeNotification(strFolderPath, 0, 1)
Essayer cette méthode conduit à une "System.NotSupportedException" que je suppose être une incompatibilité dans les types de chaînes. Malgré les différents comportements de marshaling, je suis toujours coincé après plusieurs jours.
Merci pour la réponse! C'était le problème. – GSHinks