I'm new at Arcobjects programming. Currently I'm trying to make an ArcMap Add-in which can connect and load a database into ArcMap. I have found samples on the Esri website, but it seems not to be working for me.
Here's the code:
' For example, path = "C:\myData\mypGDB.mdb".' Public Function AccessWorkspaceFromPath(ByVal Path As String) As IWorkspace Dim workspaceFactory As IWorkspaceFactory = New AccessWorkspaceFactoryClass() Return workspaceFactory.OpenFromFile(Path, 0) End Function
What seems to be the problem is the Microsoft Visual Studio can't recognize the class
Does anyone have an idea to solve this issue?