Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~1K People Reached
Favorite Forums
Favorite Tags
c x 10
c++ x 1
Member Avatar for levk

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 …

Member Avatar for ~s.o.s~
0
228
Member Avatar for levk

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 …

Member Avatar for levk
0
165
Member Avatar for iamthwee

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> …

Member Avatar for bops
0
382
Member Avatar for levk

If I have two templates that are mutually dependent, is there a way to declare one without defining it?

Member Avatar for Narue
0
119
Member Avatar for levk

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 …

Member Avatar for Narue
0
99
Member Avatar for levk

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: …

Member Avatar for levk
0
56