Hi listers
I have an a MapBasic application which I have previously compiled in Version 7.5 on Windows Vista and run successfully for quite a while now. I am now trying to compile it again after making some updates in MB version 9.5 on Windows 7. In the application I use a function called ConnectedtoNetwork() which uses the Windows API functions GetDriveType. On compiling the application it comes up with the error message ‘Unresolved Sub or Function ConnectedtoNetwork.’ Now the function has been Declared and as I said worked fine in the past. I’m now stumped after trying a few things to resolve this issue and cant find any reference to any changes on the net.
What I’m wondering is, has the Windows kernel32 file changed between versions. Any ideas on how to resolve this issue!
Regards
Doug
Are you using a 64 bit computer now? Most of the declarations define a DLL such as User32, so suspect they are for 32 bit only.
R
--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en
Dim allDrives() As DriveInfo = DriveInfo.GetDrives()
Dim d As DriveInfo
Dim found As Boolean
Dim file_name_string As String
this is a code segment in VB.net
Imports System
Imports System.IO
For Each d In allDrives
ListBox1.Items.Add("Drive" & d.Name)
'ListBox1.Items.Add(" File type: " & d.DriveType)
If d.IsReady = True Then
ComboBoxDrives.Items.Add(d.Name)
ListBox1.Items.Add(" Volume label: >" & d.VolumeLabel)
'ListBox1.Items.Add(" File system: " & d.DriveFormat)
'ListBox1.Items.Add(" Available space to current user: bytes" & d.AvailableFreeSpace)
'ListBox1.Items.Add(" Total available space: bytes" & d.TotalFreeSpace)
'ListBox1.Items.Add(" Total size of drive: bytes " & d.TotalSize)
Next