Click here to Skip to main content
15,896,915 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: modeless dialog with modal dialog problem Pin
Farhat Aisha20-Dec-05 4:36
Farhat Aisha20-Dec-05 4:36 
QuestionCOnnecting UPS with PCS using Windows Management Ins Pin
abhiramsss19-Dec-05 17:58
abhiramsss19-Dec-05 17:58 
AnswerRe: COnnecting UPS with PCS using Windows Management Ins Pin
vikas amin19-Dec-05 20:04
vikas amin19-Dec-05 20:04 
QuestionHow to control word before print? Pin
sharkmouse19-Dec-05 17:48
sharkmouse19-Dec-05 17:48 
QuestionHow to change the button style of Console Application Pin
IsaacLitingjun19-Dec-05 16:44
IsaacLitingjun19-Dec-05 16:44 
Questionblock popups Pin
neliocc19-Dec-05 16:42
neliocc19-Dec-05 16:42 
AnswerRe: block popups Pin
Owner drawn19-Dec-05 18:15
Owner drawn19-Dec-05 18:15 
QuestionQuestion about using MATLAB COM builder & VC++ Pin
QuangDien19-Dec-05 16:07
QuangDien19-Dec-05 16:07 
Hi everybody,

Let me introduce myself. My name is Quang Dien, a Vietnamese students. This term, I have to do a project about the fingerprint detecting.
About my profect, I had a source code on MATLAB, it can run on MATLAB perfectly. But, my program is written by VC++ 6.0, so, I have to use MATLAB COM Builder to build a component to use in VC++. I use MATLAB 6.5 R13 comtool to build it. "Standalone built completed !" , no problems. But, when I call it in VC++, no thing happen ! No error but no reaction. The input parameter is the same with itself when initializing. About my function, I can summarize for you as below :

Function score = cubs_match(input_file1, input_file2)

where :
input_file1 : the string holds the path to the fingerprint image1
input_file2 : the string holds the path to the fingerprint image2
score : a number between 0 to 100, show how much do 2 fingerprint images look like rach others.

When I built it, I use VC++ 6.0 call it as below :

// --> Set the input arguments to the COM method
VARIANT f1_Variant, f2_Variant;
VariantInit(&f1_Variant);
f1_Variant.vt = VT_BSTR;
f1_Variant.bstrVal = SysAllocString(L"C:/MATLAB6p5/work/Fingerprint/1_1.fp");
VariantInit(&f2_Variant);
f2_Variant.vt = VT_BSTR;
f2_Variant.bstrVal = SysAllocString(L"C:/MATLAB6p5/work/Fingerprint/1_2.fp");
// --> Set the output arguments to the COM method
VARIANT result;
// --> Create an instance of the COM object
IFingerprintClass *pImyclass;
hr=CoCreateInstance(CLSID_FingerprintClass,NULL, CLSCTX_INPROC_SERVER, IID_IFingerprintClass, (void **)&pImyclass);
// --> Access the method with arguments and receive the output out1
hr = (pImyclass -> cubs_match(1, &result, f1_Variant, f2_Variant));
// --> Print the result
CString Show_Screen;
Show_Screen.Format("Matching score : %g",result.dblVal );
MessageBox(Show_Screen);

Note : + My component has the name as "Fingerprint" and the Class name is "FingerprintClass"
+ The *.fp format is my own format.
But when run it, the result doesn't change. It return : -9.25596e+061

What is my problem ? How to solve it ? Please kindly answer for me if you know about my problems ...
Thanks a lot.
Best regards,

Quang Dien
____________________
PS : + Please reply your ans to me to : quangdien12jan@yahoo.com
+ About the Fingerprint Toolbox, you can download it form mathworks.com, search for "fingerprint recognition toolbox"
Questionglobal anonymous unions Pin
zildjohn0119-Dec-05 10:44
zildjohn0119-Dec-05 10:44 
AnswerRe: global anonymous unions Pin
vikas amin19-Dec-05 18:53
vikas amin19-Dec-05 18:53 
AnswerRe: global anonymous unions Pin
vikas amin19-Dec-05 20:03
vikas amin19-Dec-05 20:03 
NewsRe: global anonymous unions Pin
zildjohn0120-Dec-05 9:04
zildjohn0120-Dec-05 9:04 
AnswerRe: global anonymous unions [edited] Pin
toxcct19-Dec-05 21:38
toxcct19-Dec-05 21:38 
GeneralRe: global anonymous unions Pin
vikas amin19-Dec-05 22:01
vikas amin19-Dec-05 22:01 
GeneralRe: global anonymous unions Pin
Eytukan19-Dec-05 22:16
Eytukan19-Dec-05 22:16 
GeneralRe: global anonymous unions Pin
toxcct19-Dec-05 22:17
toxcct19-Dec-05 22:17 
GeneralOT Pin
Eytukan19-Dec-05 22:25
Eytukan19-Dec-05 22:25 
GeneralRe: OT Pin
toxcct19-Dec-05 22:41
toxcct19-Dec-05 22:41 
GeneralRe: OT Pin
ThatsAlok20-Dec-05 1:15
ThatsAlok20-Dec-05 1:15 
GeneralRe: OT Pin
vikas amin20-Dec-05 1:53
vikas amin20-Dec-05 1:53 
GeneralRe: OT Pin
Eytukan20-Dec-05 3:29
Eytukan20-Dec-05 3:29 
GeneralRe: OT Pin
Eytukan20-Dec-05 3:27
Eytukan20-Dec-05 3:27 
GeneralRe: OT Pin
ThatsAlok20-Dec-05 17:18
ThatsAlok20-Dec-05 17:18 
Questionwhere is the mistake. Pin
iiscodered19-Dec-05 8:18
iiscodered19-Dec-05 8:18 
AnswerRe: where is the mistake. Pin
Chris Meech19-Dec-05 8:47
Chris Meech19-Dec-05 8:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.