Solved

Handwritten signature verification using visual c++

Posted on 1998-08-11
3
338 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Tab names are off by one 5 54
Process filename extension 3 196
difference between String.subString() and String.subSequence() 6 241
scoreUp challenge 14 64
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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…

830 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