Declaring only public class members - doesn't work
From: Chee Liang (cheeliang_at_DIESPAM.iname.com)
Date: 04/12/04
- Next message: Cy Edmunds: "Re: Declaring only public class members - doesn't work"
- Previous message: Bryan Parkoff: "Re: Friend in Class Can't Access Private Function"
- Next in thread: Cy Edmunds: "Re: Declaring only public class members - doesn't work"
- Reply: Cy Edmunds: "Re: Declaring only public class members - doesn't work"
- Reply: Julie: "Re: Declaring only public class members - doesn't work"
- Maybe reply: Christopher Benson-Manica: "Re: Declaring only public class members - doesn't work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 12 Apr 2004 11:34:17 +0800
Hi all,
I was writing some C++ class stuff in VC. After adding a strcpy(),
whenever the program is exiting I receive a "Unhandled exception: user
breakpoint". Growl, I traced assembly line by line, spend one night
wondering why my strcpy() is overwriting data space. But I couldn't
find anything!
When I replace a header file which exports the class declaration as
class xxx{
public:
xxx
}
with the whole declaration
class xxx{
public:
protected:
private:
}
everything falls in place. Big Oops!
So I gather we are not allowed to declare just the public members when
exporting? Are there any other ways to hide private declarations?
Thanks a bunch!
- Next message: Cy Edmunds: "Re: Declaring only public class members - doesn't work"
- Previous message: Bryan Parkoff: "Re: Friend in Class Can't Access Private Function"
- Next in thread: Cy Edmunds: "Re: Declaring only public class members - doesn't work"
- Reply: Cy Edmunds: "Re: Declaring only public class members - doesn't work"
- Reply: Julie: "Re: Declaring only public class members - doesn't work"
- Maybe reply: Christopher Benson-Manica: "Re: Declaring only public class members - doesn't work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|