OCCI + VS2010 + C++/CLI - help!
I have a basic "prove you can connect" app written in C++ under VS2010 using a console app - it works.
The same code adapted to a C++/CLI Windows Forms app will not link.
#include <iostream>
#include <occi.h>
namespace oc = oracle::occi;
int main()
{
try
{
oc::Environment* env = oc::Environment::createEnvironment();
oc::Connection* conn = env->createConnection("user", "pword", "svr");
oc::Statement* stmt = conn->createStatement("select * from core.master_cmdy");
oc::ResultSet* res = stmt->executeQuery();
while(res->next())
{
std::cout << res->getString(1) << std::endl;
}
stmt->closeResultSet(res);
conn->terminateStatement(stmt);
env->terminateConnection(conn);
oc::Environment::terminateEnvironment(env);
}
catch(const oc::SQLException& e)
0