I have a problem when I try to connect .Net and cache, is there any settings to do like Visual6 and cache.
When I connect Cach� to Visual c++ 6 it work correctly but if I export my Visual6 project to .Net it doesn't work.
Please help me.
Thanks jalil.
here is the code:
#include <cppbind.h>
int main()
{
try{
// establish the physical connection to Cache'
Db_err conn_err;
d_connection conn = tcp_conn::connect("localhost[1972]:VIDB","_SYSTEM", "SYS", &conn_err);
if (conn->is_connected())
{
std::cout << "Connection Suceeded "<<'\n';
}
else
{
std::cout <<"Connection failed" << '\n';
}
return 0;
// all objects are closed automatically
} catch(const Db_err& err) {
std::cerr << err << '\n';
return -1;
}
}