Solved

Handwritten signature verification using visual c++

Posted on 1998-08-11
3
336 Views
Last Modified: 2013-11-20
I am building a project titled handwritten signature verification. I am using visual c++ for my project. In the project, I am to do a software to obtain a signature and do some image manipulation to calculate a few values, negative slant, positive slant and its baseline values. Once I got the values I will need to go to the database to get the pre-stored values of that particular customer and compare both of them to see if they match. How am I suppose to build the database system and make it interact with my program. I am also using visual c++ to write the database. Now I can only manage to do a database to store the values. What commands should I put in my software to call the values from the database to be compared and match.
0
Comment
Question by:cheeonn
3 Comments
 

Author Comment

by:cheeonn
ID: 1320553
Please advice..I am desperate for the answer. Thanking you in advance
0
 
LVL 7

Accepted Solution

by:
psdavis earned 40 total points
ID: 1320554
Don't try to write it yourself, you'll spend the majority of your project time on it.

Definitely use either ODBC or DAO for your database.  MFC has full support for these database schemas.  I personally like DAO for all of my development, especially if you don't have to link in with foreign databases.

You can develop your database schema with Microsoft Access and create CDaoRecordset objects from those schemas.  The documentation is not excessive, but there's enough to get you going quite well.

Take a look at the CDaoDatabase and CDaoRecordset classes.  It will definitely give you everything you need.

Phillip
0
 

Expert Comment

by:anil_ku
ID: 1320555
Hi
For the database implementation there are different ways u can implement. But i will prefer the direct ODBC functions. Because u will get flexibility here. So don't for MFC classes if u have limited access in database it is better to go for MFC classes
To use ODBC do thge following
1) Create DSN..From control pannel ( 32 bit ODBC)
2) Connect to that DSN by using SQLConnect() , U will get sample code of it from VC help
3) Then befor each sql command execution You have to call sqlAlloc() and after execution you have to execute SqlFreeMem()
4) By using SqlExecDirect you can open data from database

retcode = SQLAllocStmt(hdbc,&hstmt);
retcode = SQLPrepare(hstmt,(UCHAR                  *)(LPCTSTR)csSQLstring,SQL_NTS);
if(retcode = SQLExecDirect(hstmt,(UCHAR               *)(LPCTSTR)csSQLstring, SQL_NTS)== -1)
{
    szError = SqlError(); // Check SQLError(...)
    throw (LPSTR)(LPCTSTR)szError;
}
SQLBindCol(hstmt,i+1, SQL_C_SLONG, &(tempst[i].intvalue), 0,         &cbintfield);
//-----------
//---------( depends on the parameters - fields in the csSQLstring )
//-query)

while (TRUE)   // to do until the specified row
{
    retcode = SQLFetch(hstmt);// in the first fetch will get first //record second fetch second and soon
}

5) all types are availabel in VC help

Try this and implement in ur way
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Define unique primary key 9 93
unable to delete all specified values regedit 38 420
sum13 challenge 24 107
Message not shown 5 50
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question