Home » Developer & Programmer » Precompilers, OCI & OCCI » return string from dll vc++ to oracle (oracle forms 6i,windows xp)
return string from dll vc++ to oracle [message #405109] Tue, 26 May 2009 07:05
jihad
Messages: 4
Registered: May 2009
Junior Member
i m able to return integer to oracle but
please i want to return a string into oracle.

what is the command in vc++ dll for returning string
i mean what i have to put instead of int

extern "C" __declspec(dllexport) int __cdecl Car(int radius);

am sending hi from oracle into radius and i ant to get back "hello" in str.

this is my function in the dll vc++2005:

__declspec(dllexport) CString __cdecl Car(CString radius)
{
CString str = "Hello";
return str;
}

but its now working
Previous Topic: OCI programming (merged 3)
Next Topic: compile pro*c
Goto Forum:
  


Current Time: Sat Dec 07 00:14:37 CST 2024