I am running Visual Studio 2005, Visual C++, and I have downloaded and installed PostgreSQLDirect.NET2.
I fired up the VisualC.sln in the Samples directory. Tried to do a build on DataReader and received the following output:
------ Build started: Project: DataReader, Configuration: Debug Win32 ------
Compiling...
stdafx.cpp
Compiling...
MainForm.cpp
c:\program files\corelab\postgresqldirect.net2\samples\datareader\vc\..\..\Common\Vc\ConnectForm.h(137) : error C3867: 'CoreLab::ConnectForm::cbSchema_DropDown': function call missing argument list; use '&CoreLab::ConnectForm::cbSchema_DropDown' to create a pointer to member
c:\program files\corelab\postgresqldirect.net2\samples\datareader\vc\..\..\Common\Vc\ConnectForm.h(137) : error C3350: 'System::EventHandler' : a delegate constructor expects 2 argument(s)
c:\program files\corelab\postgresqldirect.net2\samples\datareader\vc\..\..\Common\Vc\ConnectForm.h(153) : error C3867: 'CoreLab::ConnectForm::cbDatabase_DropDown': function call missing argument list; use '&CoreLab::ConnectForm::cbDatabase_DropDown' to create a pointer to member
c:\program files\corelab\postgresqldirect.net2\samples\datareader\vc\..\..\Common\Vc\ConnectForm.h(153) : error C3350: 'System::EventHandler' : a delegate constructor expects 2 argument(s)
c:\program files\corelab\postgresqldirect.net2\samples\datareader\vc\..\..\Common\Vc\ConnectForm.h(252) : error C3867: 'CoreLab::ConnectForm::btConnect_Click': function call missing argument list; use '&CoreLab::ConnectForm::btConnect_Click' to create a pointer to member
c:\program files\corelab\postgresqldirect.net2\samples\datareader\vc\..\..\Common\Vc\ConnectForm.h(252) : error C3350: 'System::EventHandler' : a delegate constructor expects 2 argument(s)
c:\program files\corelab\postgresqldirect.net2\samples\datareader\vc\MainForm.h(122) : error C3867: 'DataReader::MainForm::btDisconnect_Click': function call missing argument list; use '&DataReader::MainForm::btDisconnect_Click' to create a pointer to member
c:\program files\corelab\postgresqldirect.net2\samples\datareader\vc\MainForm.h(122) : error C3350: 'System::EventHandler' : a delegate constructor expects 2 argument(s)
c:\program files\corelab\postgresqldirect.net2\samples\datareader\vc\MainForm.h(130) : error C3867: 'DataReader::MainForm::btConnect_Click': function call missing argument list; use '&DataReader::MainForm::btConnect_Click' to create a pointer to member
c:\program files\corelab\postgresqldirect.net2\samples\datareader\vc\MainForm.h(130) : error C3350: 'System::EventHandler' : a delegate constructor expects 2 argument(s)
c:\program files\corelab\postgresqldirect.net2\samples\datareader\vc\MainForm.h(138) : error C3867: 'DataReader::MainForm::btClear_Click': function call missing argument list; use '&DataReader::MainForm::btClear_Click' to create a pointer to member
c:\program files\corelab\postgresqldirect.net2\samples\datareader\vc\MainForm.h(138) : error C3350: 'System::EventHandler' : a delegate constructor expects 2 argument(s)
c:\program files\corelab\postgresqldirect.net2\samples\datareader\vc\MainForm.h(146) : error C3867: 'DataReader::MainForm::btExecute_Click': function call missing argument list; use '&DataReader::MainForm::btExecute_Click' to create a pointer to member
c:\program files\corelab\postgresqldirect.net2\samples\datareader\vc\MainForm.h(146) : error C3350: 'System::EventHandler' : a delegate constructor expects 2 argument(s)
c:\program files\corelab\postgresqldirect.net2\samples\datareader\vc\MainForm.h(158) : error C3867: 'DataReader::MainForm::pgSqlConnection_StateChange': function call missing argument list; use '&DataReader::MainForm::pgSqlConnection_StateChange' to create a pointer to member
c:\program files\corelab\postgresqldirect.net2\samples\datareader\vc\MainForm.h(158) : error C3350: 'System::Data::StateChangeEventHandler' : a delegate constructor expects 2 argument(s)
c:\program files\corelab\postgresqldirect.net2\samples\datareader\vc\MainForm.h(170) : error C3867: 'DataReader::MainForm::tbSql_Leave': function call missing argument list; use '&DataReader::MainForm::tbSql_Leave' to create a pointer to member
c:\program files\corelab\postgresqldirect.net2\samples\datareader\vc\MainForm.h(170) : error C3350: 'System::EventHandler' : a delegate constructor expects 2 argument(s)
c:\program files\corelab\postgresqldirect.net2\samples\datareader\vc\MainForm.h(199) : error C3867: 'DataReader::MainForm::MainForm_Load': function call missing argument list; use '&DataReader::MainForm::MainForm_Load' to create a pointer to member
c:\program files\corelab\postgresqldirect.net2\samples\datareader\vc\MainForm.h(199) : error C3350: 'System::EventHandler' : a delegate constructor expects 2 argument(s)
c:\program files\corelab\postgresqldirect.net2\samples\datareader\vc\MainForm.h(245) : error C2819: type 'System::String' does not have an overloaded member 'operator ->'
c:\windows\microsoft.net\framework\v2.0.50727\mscorlib.dll : see declaration of 'System::String'
did you intend to use '.' instead?
ConnectForm.cpp
c:\program files\corelab\postgresqldirect.net2\samples\common\vc\ConnectForm.h(137) : error C3867: 'CoreLab::ConnectForm::cbSchema_DropDown': function call missing argument list; use '&CoreLab::ConnectForm::cbSchema_DropDown' to create a pointer to member
c:\program files\corelab\postgresqldirect.net2\samples\common\vc\ConnectForm.h(137) : error C3350: 'System::EventHandler' : a delegate constructor expects 2 argument(s)
c:\program files\corelab\postgresqldirect.net2\samples\common\vc\ConnectForm.h(153) : error C3867: 'CoreLab::ConnectForm::cbDatabase_DropDown': function call missing argument list; use '&CoreLab::ConnectForm::cbDatabase_DropDown' to create a pointer to member
c:\program files\corelab\postgresqldirect.net2\samples\common\vc\ConnectForm.h(153) : error C3350: 'System::EventHandler' : a delegate constructor expects 2 argument(s)
c:\program files\corelab\postgresqldirect.net2\samples\common\vc\ConnectForm.h(252) : error C3867: 'CoreLab::ConnectForm::btConnect_Click': function call missing argument list; use '&CoreLab::ConnectForm::btConnect_Click' to create a pointer to member
c:\program files\corelab\postgresqldirect.net2\samples\common\vc\ConnectForm.h(252) : error C3350: 'System::EventHandler' : a delegate constructor expects 2 argument(s)
AssemblyInfo.cpp
Generating Code...
Build log was saved at "file://c:\Program Files\CoreLab\PostgreSQLDirect.NET2\Samples\DataReader\VC\Debug\BuildLog.htm"
DataReader - 27 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I figure I better get the sample app running before I attempt anything. Any help?
Troubles getting started
Samples were initially created for VS2003. That's why they don't compile in VS2005 C++.
To cope this you have to fix all the errors like:
with this one (as appropriate):
We are going to fix this problem in the next build.
To cope this you have to fix all the errors like:
Substitute each of those strings"error C3867: 'CoreLab::ConnectForm::cbSchema_DropDown': function call missing argument list; use '&CoreLab::ConnectForm::cbSchema_DropDown' to create a pointer to member"
Code: Select all
"this->cbSchema->DropDown += new System::EventHandler(this, cbSchema_DropDown);"
Code: Select all
"this->cbSchema->DropDown += new System::EventHandler(this, &CoreLab::ConnectForm::cbSchema_DropDown);"
Ok, I figured as much, but wanted confirmation. Thank you very much and I will do as told.
Alexey wrote:Samples were initially created for VS2003. That's why they don't compile in VS2005 C++.
To cope this you have to fix all the errors like:Substitute each of those strings"error C3867: 'CoreLab::ConnectForm::cbSchema_DropDown': function call missing argument list; use '&CoreLab::ConnectForm::cbSchema_DropDown' to create a pointer to member"with this one (as appropriate):Code: Select all
"this->cbSchema->DropDown += new System::EventHandler(this, cbSchema_DropDown);"
We are going to fix this problem in the next build.Code: Select all
"this->cbSchema->DropDown += new System::EventHandler(this, &CoreLab::ConnectForm::cbSchema_DropDown);"