Simple Application, just trying to setup a Visual Studio 2005 application to work with GrFinger.h (the sample C++.Net application works just fine). But when I try to create a new project, I run into issues. Code below:
// FWHLab.cpp : main project file.
#include "stdafx.h"
#include "Form1.h"
#include "GrFinger.h"
using namespace FWHLab;
[STAThreadAttribute]
int main(array
{
StatusCallBack* myCallBack;
// Enabling Windows XP visual effects before any controls are created
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
// Create the main window and run it
Application::Run(gcnew Form1());
return 0;
}
When I compile I receive the following errors:
>------ Build started: Project: FWHLab, Configuration: Debug Win32 ------
1>Compiling...
1>FWHLab.cpp
1>C:\Program Files\Griaule\Fingerprint SDK 2009\include\C++.NET\GrFinger.h(138) : error C4980: '__delegate' : use of this keyword requires /clr:oldSyntax command line option
1>C:\Program Files\Griaule\Fingerprint SDK 2009\include\C++.NET\GrFinger.h(146) : warning C4042: 'unnamed-parameter' : has bad storage class
1>C:\Program Files\Griaule\Fingerprint SDK 2009\include\C++.NET\GrFinger.h(146) : error C2143: syntax error : missing ')' before 'string'
1>C:\Program Files\Griaule\Fingerprint SDK 2009\include\C++.NET\GrFinger.h(146) : error C2143: syntax error : missing ';' before 'string'
1>C:\Program Files\Griaule\Fingerprint SDK 2009\include\C++.NET\GrFinger.h(153) : error C3699: '*' : cannot use this indirection on type 'FingerCallBack'
1> compiler replacing '*' with '^' to continue parsing
1>C:\Program Files\Griaule\Fingerprint SDK 2009\include\C++.NET\GrFinger.h(153) : error C3699: '*' : cannot use this indirection on type 'ImageCallBack'
1> compiler replacing '*' with '^' to continue parsing
1>.\FWHLab.cpp(12) : error C3699: '*' : cannot use this indirection on type 'StatusCallBack'
1> compiler replacing '*' with '^' to continue parsing
1>Build log was saved at "file://c:\
1>FWHLab - 6 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
The sample project doesn't have the /clr:oldSyntax so I think I'm doing something else wrong. Note all the errors are showing up for the GrFinger.h file. Which makes me think I need to change something in my project setup. I'm just not sure what. Please advise