Showing results 1 to 11 of 11
Search took 0.01 seconds; generated 1 minute(s) ago.
Posts Made By: levk
Forum: C Aug 16th, 2005
Replies: 1
Views: 1,085
Posted By levk
Re: SegFault on class instantiation

Man that was dumb! it was calling the class printf.... I had an infinite recursion
Forum: C Aug 16th, 2005
Replies: 1
Views: 1,085
Posted By levk
SegFault on class instantiation

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:


/* Connection.h: */
class Stream
{
private:
...
Forum: C Aug 16th, 2005
Replies: 7
Views: 1,576
Posted By levk
Re: problem instantiating a subclass of abstract class

THAT WAS IT!!! Thank You!!! I always mess these things up
Forum: C Aug 16th, 2005
Replies: 7
Views: 1,576
Posted By levk
Re: problem instantiating a subclass of abstract class

I tried that, I still get the same error. BTW, I'm instantiating ConsoleShell using new if that matters at all
Forum: C++ Aug 16th, 2005
Replies: 13
Views: 1,631
Posted By levk
Re: Help ME

int fact(int n){ return n <= 1 ? 1 : n * fact(n -1); }
Forum: C Aug 16th, 2005
Replies: 7
Views: 1,576
Posted By levk
Help problem instantiating a subclass of abstract class

Hi, I have an abstract class like this:

class Descriptor
{
public:
virtual ULONG dispatch(char*, size_t, Stream) = 0;
};

and I have a subclass like this:
Forum: C Aug 13th, 2005
Replies: 2
Views: 2,326
Posted By levk
Is it possible to forward declare a template?

If I have two templates that are mutually dependent, is there a way to declare one without defining it?
Forum: C Aug 12th, 2005
Replies: 3
Views: 1,121
Posted By levk
Re: Is it possible to have a template as an argument to a function?

it doesn't compile, that's why I'm asking. I don't know the correct syntax for this. If you don't understand what I'm asking: I'm trying to send a class template type as an argument to a function. I...
Forum: C Aug 12th, 2005
Replies: 3
Views: 1,121
Posted By levk
Is it possible to have a template as an argument to a function?

I'm trying to do something like this:
public:
ULONG dispatch(char *command, size_t length, Stream<T> *stream);<< moderator edit: fixed code tags >>

Where Stream is a template. I can make the class...
Forum: C Aug 12th, 2005
Replies: 1
Views: 936
Posted By levk
Re: Stupid compiler error

I figured it out. As predicted, it was unspeakably stupid. I can't call a function register because it's a keyword.
Forum: C Aug 12th, 2005
Replies: 1
Views: 936
Posted By levk
Stupid compiler error

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:

#ifndef _SERVICE_H__
#define _SERVICE_H__

#include...
Showing results 1 to 11 of 11

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 1:16 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC