Solved

Handwritten signature verification using visual c++

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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…
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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now