Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crash making a C++ OLEDB consumer of VFP DB
Message
From
10/10/2006 12:55:06
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01160912
Message ID:
01160922
Views:
15
>I'm having some trouble finding the right forum in which to post this problem. When working across languages, some things seem to fall in the gaps. But, I'll give the UT a stab at this.
>
>As you probably noticed from other postings, I am developing an application in C++ to access my VFP database. This application previously used ODBC for this access, but I am converting this to OLEDB.
>
>I am developing this app using Visual Studio 2005 under the guidance of an article in the MSDN Library entitled "Creating an OLE DB Consumer Using a Wizard".
>
>I have chosen this simple example to get an idea of the general strategy, and to learn how to take advantage of the wizard to create the needed classes that will connect thru VFPOLEDB.
>
>The example has me right click on the project, and select "Add a class". I then select "ATL OLE DB Consumer". This brings up the ATL OLEDB Consumer Wizard, the tool that will generate the class code that I will need.
>
>The first step here is to specify a Data Source. This brings up the now familiar Data Link Properties dialog box. I indicate OLE DB Provider for Visual FoxPro, and in the connection tab, browse to my VFP DBC file. Click "Test Connection" succeeds.
>
>At this point, I click OK, expecting the "Select Database Object" dialog to appear. Instead, Visual Studio 2005 crashes with the standard message "Microsoft Visual Studio has encountered a problem and needs to close".
>
>The content of the error report:
>Error signature: devenv.exe, ModName: dbsvc.dll Exception: oxc0000005
>
>Anyone have any experience with this problem?
>
>By the way, if I use Excel 2003, Data...Import External Data, and follow the same procedure to import data from that VFP DBC, there is no problem.
>
>In the meantime, I will pursue this with the MSDN forums and Microsoft newsgroups.
>
>Thanks for your help.
>Jim

Jim,
I believe it's a problem in your installation. With C# (or C++) on my box it works just fine and I see tables/views in a "Select Database Object" dialog.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform