[Libpqxx-general] Has anyone succeed in using libpqxx in Visual Studio 2008 C++ ???
Ole Tetzschner
ole.tetzschner at gmail.com
Sun Feb 22 14:05:26 UTC 2009
Hi
After downloading postgresql 8.3.6 and libpqxx 3.0 on my Windows XP platform
the compilation was straight forward :)
But when i tried to create at test-project (MFC, Dialog-based with one
button executing "connection Conn("dbname=test");") and including the pqxx
library I was lost.
There was a lot of problems with the max/min macros, but after adding this
to my stdafx.h it compiled without errors:
#pragma once
#include <pqxx/pqxx>
#undef NOMINMAX
But when I tried to run the program in DEBUG-mode the program breaks in
crtlib.c:
#if defined (_CRT_CHECK_MANIFEST)
if (!_check_manifest(hDllHandle))
{
__try
{
_NMSG_WRITE(_RT_CHECKMANIFEST);
}
__except( EXCEPTION_EXECUTE_HANDLER )
{
OutputDebugString(_GET_RTERRMSG(_RT_CHECKMANIFEST));
DebugBreak();
In RELEASE mode, the program starts and when I press the button I got an
exception as expected :) but what about DEBUG-mode???
--
With kind regards
Ole Tetzschner
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://pgfoundry.org/pipermail/libpqxx-general/attachments/20090222/d941265f/attachment.html
More information about the Libpqxx-general
mailing list