Hi,
Ik heb wat problemen om het onderstaande stukje code te compileren:
#include <vcl.h>
#include <windows.h>
#include <sql.h>
#include <sqlext.h>
#include <sqltypes.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
SQLHENV hEnv;
SQLAllocHandle(SQL_HANDLE_ENV, SQL_NULL_HANDLE, &hEnv);
// SQLAllocEnv(&hEnv);
return(NULL);
}
Ik heb bij het project 'odbc32.lib' geadd, maar ik blijf linker error's (unresolved external error's) krijgen op de SQL call's.
Wat moet ik daar aan doen?
Ik heb wat problemen om het onderstaande stukje code te compileren:
#include <vcl.h>
#include <windows.h>
#include <sql.h>
#include <sqlext.h>
#include <sqltypes.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
SQLHENV hEnv;
SQLAllocHandle(SQL_HANDLE_ENV, SQL_NULL_HANDLE, &hEnv);
// SQLAllocEnv(&hEnv);
return(NULL);
}
Ik heb bij het project 'odbc32.lib' geadd, maar ik blijf linker error's (unresolved external error's) krijgen op de SQL call's.
Wat moet ik daar aan doen?