MPD78
10-27-2009, 07:58 AM
Hello all,
Is it possible to link/import data stored in an Access database (2000 Version) to a C++ console application? If so, can you provide a simple example of how to code it?
I have done this before using VB Express through use of the database tools in the IDE, in a Windows Forms application and it worked fine. However, no coding on my part was required since I used the database tools provided by the IDE.
Here is an outline of what I want to be able to do.
I have thermal diffusivity values stored in the Access database in a data table. This property is just a function of temperature for my application.
I have 52 different materials that all have different thermal diffusivity values.
The C++ console app. prompts the user the enter a number corresponding to the appropriate material and then prompts the user to enter the temperature.
The data in the Access database is interpolated (linearly) based on the user selected material and user entered temperature.
The interpolated value is returned.
Basically, I am just being lazy, I can spend the rest of today entering in all of the values in arrays in C++ and performing the interpolation, but I am trying to be efficient and use the data that is already stored.
Any help would be greatly appreciated.
Thanks
Matt
Is it possible to link/import data stored in an Access database (2000 Version) to a C++ console application? If so, can you provide a simple example of how to code it?
I have done this before using VB Express through use of the database tools in the IDE, in a Windows Forms application and it worked fine. However, no coding on my part was required since I used the database tools provided by the IDE.
Here is an outline of what I want to be able to do.
I have thermal diffusivity values stored in the Access database in a data table. This property is just a function of temperature for my application.
I have 52 different materials that all have different thermal diffusivity values.
The C++ console app. prompts the user the enter a number corresponding to the appropriate material and then prompts the user to enter the temperature.
The data in the Access database is interpolated (linearly) based on the user selected material and user entered temperature.
The interpolated value is returned.
Basically, I am just being lazy, I can spend the rest of today entering in all of the values in arrays in C++ and performing the interpolation, but I am trying to be efficient and use the data that is already stored.
Any help would be greatly appreciated.
Thanks
Matt