Questions tagged [members]

175 questions
0
votes
4 answers

How to access private members of superclass in override?

I want to inherit from NHibernate's SqlClientBatchingBatcher class exactly like this (code taken from TooManyRowsAffectedException with encrypted triggers): public class NonBatchingBatcherWithoutVerification : SqlClientBatchingBatcher { public…
cdbeelala89
  • 2,066
  • 3
  • 28
  • 39
0
votes
1 answer

How can I access button group members within a slot?

I have designed my current GUI with QT Designer. The underlying code creates and starts multiple threads. For each thread I have a set up several QPushButtons: Start, Stop, Pause, Resume, and Status. I'd like to group them, but they are not…
0
votes
1 answer

ldap member attribute

Simple question: how can we retrieve "mobile" attribute from all member of an Active Directory with shell command "ldapsearch" ? I can already retrieve members using the following command: ldapsearch -LLL -x -H $LDAP_HOST -D $LDAP_USER -w $LDAP_PASS…
Gael
  • 1
  • 1
0
votes
1 answer

CollectionBase no IList implementation?

Would anyone explain to me why in the abstract CollectionBase class (in System.Collections which derives from IList) it does not have the IList members implemented? I thought it was obligatory.
Mikatsu
  • 530
  • 2
  • 4
  • 15
0
votes
1 answer

Does a member of a C++ base class really needs to be virtual to be overridden by a derived class?

class A { public: virtual int test()=0; }; class B : public A { public: int test(){return 10;} }; B *b = new B(); b->test(); // would return 10; whereas: class A { public: int test(){return 0;} }; class B : public A…
user1511417
  • 1,880
  • 3
  • 20
  • 41
0
votes
3 answers

C++ Can't access to object member while accessing the object holding this member

I have the following code snippet: A.h include B.h class A { public: void createB(); B* getB(); private: B *b; }; A.cpp void A::createB() { b = new B(); } B* A::getB() { return b; } Main.cpp int main() { int n = 3; …
Kun
  • 1
  • 2
0
votes
1 answer

Vector expression must have class type

I have a class that acts like a basic stack. In my member function definitions i get an error at every instance of vec. The error tells me that the expression must have a class type. What must I do to fix this issue? class Stack{ public: …
Painguy
  • 565
  • 6
  • 13
  • 25
0
votes
2 answers

Classes and file reading

Can an object of ifstream type used for file reading be a static member of a class? I want to read a file and store each line in an array of objects of a class i have created. I want the file reading object to belong to the entire array of objects…
Aaksha
0
votes
3 answers

class member is not attached c++

I read in data from an XML file, depending on the tags in the xml file, data gets attached to class member variables. Is it possible if for example a value in the xml file contains "!", which in this case is not valid thus I can't accept that…
user1008531
  • 491
  • 2
  • 8
  • 17
0
votes
1 answer

If a member is not logged in, in Umbraco Contour prevalues works not correctly

I have upgraded Contour to 1.1.9 for the use of {member.property} in the forms on the site (umbraco 4.0.3). Works fine when your member are logged in (shows content in the input field), but if the member is not logged in, the form input will just…
Niller2000
  • 51
  • 1
  • 9
0
votes
1 answer

Exchange transport agent : How can I retrieve members of a Exchange Distribution List?

I have to write a custom transport agent in C# for Exchange 2007 that check if sender sending mail belong to a specific distribution list. My agent works well but all i need to do now is how retrieve members of a distribution list ?? How can i do…
0
votes
3 answers

DB design : members table separate or all in one table?

I want to create a table of friends with personal information and log on details. What better to separate the members table to 2 tables , one contain minimal details , second with Other details. or remain in one table ? i have a lot of tables that…
Haim Evgi
  • 123,187
  • 45
  • 217
  • 223
0
votes
1 answer

MDX Make a set of all cousins

Can anyone help me to solve the followinig MDX related problem ? I'd need to aggregate a value over a specific set of members. This set consists of the currentmember and all his cousins (members at the same relative position from their parents as my…
-1
votes
1 answer

Difference in the number of count when count is static and non static in Java

I am trying this below program class Car1 { static int count; Car1() { System.out.println("Car instance has been created..."); } Car1(int arg) { System.out.println("Car instance has been created..."); } …
Nirmala
  • 1
  • 1
  • 5
-1
votes
1 answer

How can C# allow interface's to have member variables with getters/setters?

-For as long as I can remember, I always thought that interfaces in Java and C# would only allow the following in an interface --constants --method signatures 1) How can C# allow interface's to have member variables with getters/setters? public…
crazyTech
  • 1,379
  • 3
  • 32
  • 67
1 2 3
11
12