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

Search:

Type: Posts; User: ZhiYi

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. Re: Can a derived class contain a vector of pointers to the parent class?

    You mean the code looks strange? Are there better alternatives to the above code?

    I do feel that the question is a little odd though.
  2. Can a derived class contain a vector of pointers to the parent class?

    Lets say I have a parent class called:

    class Car
    {
    .....
    };

    Then there is a derived class called Toyota, which has a method returning a pointer to the parent class and a vector of pointers...
  3. Replies
    2
    Views
    619

    When to use pointer template parameters?

    I created a templated class which searches for a path between 2 points in a graph. The template parameter takes in a class representing the graph.

    template <class graph_type>
    class...
  4. Replies
    4
    Views
    2,306

    Re: What does # and \ represent in C++ ?

    thanks for the explanations! :o
  5. Replies
    4
    Views
    2,306

    What does # and \ represent in C++ ?

    I came across a piece of code which is a RTTI class. (run time type information). The class is called "RTTI".

    There are a few defines below the class declaration and one of them is this:
    ...
  6. Re: How to remove compile warnings in VC++ 2008?

    Ok........it works now, thanks! :D
  7. [RESOLVED] How to remove compile warnings in VC++ 2008?

    I am using visual studio 2008 professional and during compilation, the errors and warnings are all displayed together, making it hard to identify the error messages.

    How do I remove the compile...
  8. Re: How to serialise objects to memory?

    yes, the data is in memory.

    Well i guess i'll use structures instead. Thanks all for the advice :)
  9. [RESOLVED] How to serialise objects to memory?

    I would like to save in-game data like player's health, ammo power etc into memory.

    The reason is that the game is split into states with each level represented by a state. When a level loads,...
  10. Re: Can a base class pointer call methods in the derived class?

    I have tried using this:

    BaseClass* bc = dynamic_cast<DerivedClass*>ReturnClassType();
    bc->Print();


    But there was still an error. Is the dynamic cast done correctly?
  11. Can a base class pointer call methods in the derived class?

    I have a base class pointer which is assigned a derived class. Can this pointer call methods in the derived class which are not declared in the base class?

    i.e.

    class BaseClass
    {
    ...
  12. Replies
    4
    Views
    506

    Re: Value of Global variable not consistent

    No wonder the values are so strange.

    Is declaring an extern float in a .h file and including the header file in the 2 classes the correct method to use that global variable?
  13. Replies
    4
    Views
    506

    Value of Global variable not consistent

    I have created a program wide global variable in a .h file called globals.h
    Inside the .h file, the global variable is declared as:

    extern float g_fFrameTime;

    2 other classes use this global...
  14. Re: How to rotate a bitmap image cleanly in GDI+ without a string of images appearing?

    Is it to create a new window sized bitmap for copying and clearing for each frame?

    Is there an alternative method to this as the window already has 2 bitmaps, one of which is a 2D terrain which is...
  15. How to rotate a bitmap image cleanly in GDI+ without a string of images appearing?

    I have drawn a bitmap image using GDI+ in C# on a windows form and would like to rotate the image while the up arrow key is pressed.

    The effect I would like to get is to see the image move in a...
  16. Replies
    0
    Views
    872

    How to retrieve a folder inside a zip file?

    There is a zip file which contains a folder inside it. The folder itself contains a few files. I would need to know how to extract the folder (with its contents) from inside a zip file.

    I have...
  17. How to make a bitmap image cover part of a picturebox?

    I created a bitmap object and used it to draw a 2D terrain programatically. Then I also added a picturebox control to display an image near the terrain.

    However, the picturebox control is...
  18. Re: Cant figure out why this zipping code produces an exception

    i've printed out the exception message and it says that the zip file must have at least 1 entry.



    java.util.zip.ZipException: ZIP file must have at least one entry
    at...
  19. Re: Unable to set picturebox location programatically

    Yep, I guess the problem is that the control is not actually added to the form. Thanks!~ :)
  20. Cant figure out why this zipping code produces an exception

    I have a method which performs zipping. I took the zipping code found on the net and modified it to make sure that folders can be zipped as well.

    When using the code to zip a folder, it always...
  21. [RESOLVED] Unable to set picturebox location programatically

    I have a picturebox which was created programatically and its location should be determined when the form loads.

    I set the location property to a point but no matter what point is set, the...
  22. Replies
    1
    Views
    2,137

    How to create a batch file for a java program?

    I have a java project in JCreator and the project is organised into packages. I have also configured JCreator to provide 2 arguments to the main method when the project is executed.

    I would want...
  23. What is the difference between these 2 const pointers?

    For these 2 types of const pointers, what is the difference between them?

    const int * pData2; and

    int * const pData3;

    ?
  24. How to put < > brackets inside an XML element value?

    If I have a <file> </file> element in an XML file and I want to insert a filename of the form PED<yyMMdd>232, how do I insert the < and > brackets as an element value inside the <file> tag?

    I use...
  25. Replies
    0
    Views
    1,103

    SAXParser unable to read an xsd file

    I have an xsd file which the SAXParser is to parse and use it to validate some xml files.

    I used the setEntityResolver and parse methods of the SAXParser and a custom class called...
Results 1 to 25 of 203
Page 1 of 9 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center