No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi, I have an abstract class like this: [code]class Descriptor { public: virtual ULONG dispatch(char*, size_t, Stream) = 0; };[/code] and I have a subclass like this: [code]class ConsoleShell : public Descriptor { public: ULONG dispatch(char*, size_t, Stream*); }; #include "services/console/Console.cpp"[/code] and in Console.cpp: [code]ULONG ConsoleShell::dispatch(char *cmd, size_t len, Stream … |
|
Hi, I get a segfault when I try to instantiate a class I wrote. I don't know what the problem is here. The constructor is never entered. Details: [code] /* Connection.h: */ class Stream { private: ACE_Message_Queue<CONNECTION_SYNCH> *serverq; Provider *provider; ACE_Event_Handler *serverp; public: Stream(ACE_Message_Queue<CONNECTION_SYNCH>*, Provider*, ACE_Event_Handler*); ULONG send(char*, size_t); ULONG … |
|
|
Re:
hello everoyne, I am nu 2 this so pleaz b kind. I need 2 make a program which does the factorial. But i not no how to do this. It is urgent so if you could help me i would be greatfull. God bless. i have this so far. [code]#include<iostream.h> … |
If I have two templates that are mutually dependent, is there a way to declare one without defining it? |
|
I'm trying to do something like this: [code]public: ULONG dispatch(char *command, size_t length, Stream<T> *stream);[/code]<< moderator edit: fixed code tags >> Where Stream is a template. I can make the class I'm putting it in a template as well - no big deal, I just don't know how anyways. Here's … |
|
this is probably something extremely stupid but I can't fix it no matter what I try :sad: I have a "Service.h" file that looks like this: [code]#ifndef _SERVICE_H__ #define _SERVICE_H__ #include "nm.h" #include "ServiceProvider.h" class Service { public: virtual ULONG register(ServiceProvider *sp); }; #endif[/code] gcc gives me error: /export/home/levk/r2/Service.h:10: error: … |