CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: ChessMaster

Page 1 of 6 1 2 3 4

Search: Search took 0.05 seconds.

  1. Auto Format file in Visual Studio - .cpp & .cs files

    I would like to develop a small tool, that helps make my life easier. Basically I am working in a large organization where all code that i see is of the below format. It makes my life hard as it is...
  2. Replies
    63
    Views
    10,266

    Re: Compare 2 objects in 2 different classes

    From what I have read about your problem.....
    Well, you need a man cclass & a zombie class to do what they are supposed to do. If the men and zombies are in a room.....you can have an initial point...
  3. Replies
    14
    Views
    6,754

    Re: A Design problem

    I hope not
    ...will know soon enough :)
  4. Replies
    63
    Views
    10,266

    Re: Compare 2 objects in 2 different classes

    I dont think this is good object oriented programming. Allow me to explain why i feel so?
    Well, a co ordinate does not define a person object. So it does not belong there. The co ordinate here...
  5. Replies
    14
    Views
    6,754

    Re: A Design problem

    Point taken.
    My previous post, 1st item should clarify this point. The sales tax will change. Question is when.



    Maybe while adding to inventory, while one scans the bar code, once can...
  6. Replies
    14
    Views
    6,754

    Re: A Design problem

    It is tax percent of an item. Who assigns the tax percent?
    Me? you? Someone who wants to an application designed? or is it your state/federal government? the government can change the taxing rules...
  7. Replies
    14
    Views
    6,754

    Re: A Design problem

    I fail to see in any case, where i can/should classify my item into 2 types based on if imported or not. An item is either imported or exported, hence i stored it as a state.



    :rolleyes: It is...
  8. Replies
    14
    Views
    6,754

    Re: A Design problem

    I classified Item into different types for 2 reasons.
    1. I need to have a differentiation of different Types of Item as the tax is different for the different types, and it can change overnight...
  9. Replies
    14
    Views
    6,754

    A Design problem

    Hi,

    I have a small design task, that was part of the initial first round of interview. This is a pretty famous problem. I am looking for feedback so i can see what flaws are there in my design &...
  10. Replies
    4
    Views
    1,096

    Re: delete shortcuts through code

    thx a bunch

    looks like i am becoming old :(
  11. Replies
    4
    Views
    1,096

    Re: delete shortcuts through code

    thanks....i am able to delete for the current user like above

    i need to remove for each user....anyone?
    for both vista & XP
  12. Replies
    4
    Views
    1,096

    delete shortcuts through code

    I have an application which creates shortcuts for itself (start up folder). While uninstalling i need to write an application to remove the shortcuts. The uninstaller does not remove the same as the...
  13. Replies
    4
    Views
    880

    Re: windows users

    anyone??
  14. Replies
    4
    Views
    880

    Re: windows users

    ok some progress finally :)



    ArrayList GetSystemUsers()
    {
    ArrayList users = new ArrayList();
    DirectoryEntry root = new DirectoryEntry("WinNT://" + Environment.MachineName);
    DirectoryEntry...
  15. Replies
    4
    Views
    880

    Re: windows users

    will need both on different circumstances
  16. Replies
    4
    Views
    880

    windows users

    i am trying to list all windows users on a system using C#. An user with administrator rights will be using the application.

    i found very few links for the same using google.
    How can i achieve...
  17. Re: Can a base class pointer call methods in the derived class?

    The OP needs to clarify what exactly he is trying to achieve. From the naming of classes, and him trying to call methods in derived class from base class, i presume it is lack of understanding of...
  18. Re: Can a base class pointer call methods in the derived class?

    I presume you missed the following in the OP's post. :rolleyes:



    This says he is trying to call the derived class method using the base class pointer, while the base class has not defined it....
  19. Re: Can a base class pointer call methods in the derived class?

    If you want, a method in the derived class to execute when you make a call from the base class, then read about polymorphism. :)
    In the car example, if you want to start your McLaren then you can...
  20. Re: Can a base class pointer call methods in the derived class?

    It would be a terrible design, if your base case had any information related to any of its derived classes. A base class should never ever ever refer to any of its derived classes.
    A base class...
  21. Replies
    10
    Views
    1,771

    Re: events n delegates...in a seperate class

    I was trying to make my code look more structured.. and yes, i seem to be running into problems, especially in terms of design. In terms of design, the events truly belong to the class itself rather...
  22. Replies
    10
    Views
    1,771

    Re: events n delegates...in a seperate class

    thanks...that worked :)
  23. Replies
    10
    Views
    1,771

    Re: events n delegates...in a seperate class

    The event 'EventsNDelegates.eventsEmployeeManager.CreateEvent' can only appear on the left hand side of += or -= (except when used from within the type 'EventsNDelegates.eventsEmployeeManager')
  24. Replies
    10
    Views
    1,771

    events n delegates...in a seperate class

    what is wrong with the following code?
    i have an EmployeeManager class, and for all the events for this class i have added another class called eventsEmployeeManager
    but i come across a compile...
  25. Replies
    4
    Views
    898

    Re: Doubt, What its Meaning?

    it also means, when you are done using it, destroy it
    delete always goes hand in hand with new

    delete[] pMyObject;
Results 1 to 25 of 138
Page 1 of 6 1 2 3 4





Click Here to Expand Forum to Full Width

Featured