Hello, I am having the following problem while running my C++ ATMI Tuxedo client application:
When I call "tpcall()" in this way:
tpcall((char*)svc_name, (char*)buf, 0, (char**)&o_buf, &o_len, 0)
It returns me the following error + message:
TPESVCERR - server error while handling request
The...
More details on the code (with some corrections):
// class A declaration
class A
{
virtual void do_one_something() = 0;
};
// class Atemplate declaration
template<class T>
class Atemplate:public A
{
public:
void do_one_somenthing(); //implementation is provided...
About downcasting:
I must confess that I never saw these terms: up- or downcasting. It seems to me, that in a class hierarchy, one normally represents derived classes as being below base classes. Anyway, this is not the issue.
The attribute "T* itsXX" has been set in another part of...
Well,
first of all, I am downcasting from a base class A to a template class A<W>.
The reason to use this approach is because I am trying to develop a sort of API that has to handle implementatation specific types. The class templates are exposed to the API user and he will generate appropriate...
Hi all,
consider the following problem:
// class A declaration
class A
{
virtual void do_one_something() = 0;
};
// class Atemplate declaration
template<class T>
class Atemplate:public A
{
public:
void do_one_somenthing(); //implementation is provided...
Hello,
I've have defined some templates in a .h file and implemented some of the declared functions in a separate .cpp file.
The problem is that the linker recognizes all those functions implemented in the .h
files (i.e. inline functions), but does not recognize the
ones in the .cpp files...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.