|
-
Apr 23rd, 2001, 02:38 PM
#1
Thread Starter
Frenzied Member
Okay... I have some questions about MS specific additions to C++ and if there are any equivelants of various VB conventions.
First... the VB code that I'm porting is using On Error. Is there a VC++ equivelant?
Secondly... I'm converting Property Get and Property Let to __declspec( property( put = someX)) int x;. Can I do the following to make the attribute private but keep the get/put method public?
Code:
class Sample{
private:
int x;
public:
__declspec(property(get = GetX, put = SetX)) x;
};
Or do I have to declare x on the __declspec statement?
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|