Извлечение Доступ к файлу eVB через WinCE API . Пример кода из статьи (при условии, что вы уже получили свое имя файла (myFileName) из общего диалога):
Public Const GENERIC_READ As Int32 = &H80000000
Public Const OPEN_EXISTING As Int32 = 3
' CreateFile will open a file handle (hFile) to the file in the myFileName variable
hFile = CreateFile(myFileName, GENERIC_READ, 0, 0, OPEN_EXISTING, 0, 0)
lFileSize = GetFileSize(hFile, 0)
' String(lFileSize, 0) will prepare the sContents string variable
' to hold the contents of the file
sContents = String(lFileSize, 0)
' ReadFile actually reads the file we opened earlier and puts the contents
' into the sContents variable
ReadFile hFile, sContents, lFileSize, dwRead, 0
' Put the contents we read into the textbox
myTextBox.Text = sContents