![]() |
| | #1 |
| Registered User Join Date: Apr 2004
Posts: 14
| I'm a professional photographer with a bit of programming experience. I know a lot about object-oriented programming from scripting languages (PHP, ASP, JavaScript), but not too much about C++. Here's what I need to do. I have a large file of photographs, numbering in the thousands. The rest of my workflow is digital on a Windows XP platform, so I'd like to integrate that with a digital database, rather than the traditional file cabinet system. First, I need to assemble a database with an entry for each photo (with information about location, category, exposure, etc.). Second, I'd like to write a small program to manage this database; it should be able to add new entries, delete old ones, categorize the data by various characteristics, etc. Pretty basic stuff right now. Rather than simply use packaged database software and manage my data from there, I'm choosing the approach of intermediate software because in the future I'll add features like automatic invoices for photos sent to publishers, e-mail notifications, searches, etc. I have Visual C++ 6.0, and I know the basics of putting together simple SDI and dialog-based apps. I know very little about how objects, classes, etc. interact with each other, and I know absolutely nothing about interfacing with databases from C++. I might be able to hack something with Visual Basic, but I'd prefer to do it the right way with solid C++ code. So first and foremost, I need some sort of database software; preferably free, because I don't have a lot of cash. I might be able to get ahold of Microsoft Access, if necessary. I do have Excel... would a spreadsheet work? If not, I need some sort of freeware or open-source software to work with (I used MySQL for my web-based work... any chance of applying that to this situation?) Next, can anybody help walk me through the steps of connecting whatever database system I choose to use to a Windows application? I know nothing about exchanging data between the database and the application. ODBC maybe? Microsoft's documentation is, of course, totally cryptic for somebody who doesn't already know how to do it. I really appreciate your help. As soon as I get the project working, I'll let you all know how it goes. Thanks! |
| jdm is offline | |
| | #2 |
| Registered User Join Date: Apr 2004
Posts: 14
| Oh, by the way, I don't need to add any actual images to the database, at least not at this point. At most there will be a field for the path to a file, but only simple text strings.
__________________ // Visual C++ 6.0... newbie with many questions! |
| jdm is offline | |
| | #3 |
| Registered User Join Date: Apr 2004
Posts: 14
| Ok, so I see that MFC has some classes dedicated to database interfacing. Still, I have no idea how to set up a database to use with a Windows program, nor the needed code to pass data between the two. Can anybody help me, or am I totally barking up the wrong tree? |
| jdm is offline | |
| | #4 |
| Registered User Join Date: Oct 2001
Posts: 2,936
| I can't help you much, as I haven't done any database programing, but I'm pretty sure you can use MySQL, because if you check out the thread below (from the C Programming forum), there's a MYSQL_ROW in there. So that poster must be using it. Of course I don't think he's using Windows, but there's probably a library for Windows. 2-3 Second delay with alarm()
__________________ http://www.freechess.org |
| swoopy is offline | |
| | #5 |
| Registered User Join Date: Jan 2004
Posts: 92
| Wouldnt it be easier to install PHP/MySQLAdmin/Apache? Its free to download, and quite simple to get the MySQLAdmin working, from there you can add/delete tables/data with the click of a few buttons. |
| ventolin is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A database sort of management system | relyt_123 | C++ Programming | 5 | 07-01-2008 03:11 AM |
| Database Management Programming. | Shamino | C++ Programming | 2 | 01-17-2006 05:03 PM |
| What Version Management Software Do You Use? | DeepBlackMagic | A Brief History of Cprogramming.com | 1 | 11-05-2003 07:17 AM |
| did SDL support software developing ? | black | Game Programming | 4 | 11-08-2002 09:04 AM |
| Database Software Ideas... | Visual Develope | A Brief History of Cprogramming.com | 1 | 05-29-2002 02:07 PM |