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

Search:

Type: Posts; User: lucky6969b

Page 1 of 25 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: I'd like to rewrite this comparison method.

    Hello laserlight,
    Forgot to show that
    here it is


    bool Unit::Equals(Unit *other)
    {
    return this->id == other->id;
    }
  2. I'd like to rewrite this comparison method.

    bool Unit::Equals(object *o)
    {

    return (dynamic_cast<Unit*>(o) != 0) ? equals(static_cast<Unit*>(o)) : false;
    }


    If I use
  3. Re: I was constantly calling ostrstream? But private member access violation..

    Oh... is ostringstream better? thanks
    Let me try..

    Update:
    Same thing happening, I don't know where I touched it. But I just called oss.str(), oss.str().c_str(),
    and use it as a parameter of...
  4. I was constantly calling ostrstream? But private member access violation..

    std::ostrstream oss;
    oss << "path for " << unit << "\n\t" << path;
    puts(oss.str());




    class ostrstream
    : public ostream
    { // output stream associated with a character array
  5. How do I remove an element of a vector and returning it?

    pop_back just returns void, so I just can't use that?
    erase is okay but it doesn't return anything....
    Do I use a combination of both?
    Thanks
    Jack
  6. Replies
    7
    Views
    192

    Re: Using Comparables.

    class NodePool
    {
    public:
    class Node : public TimeAStar::Node
    {
    public:
    int x;
    int z;
    long long t;
  7. Replies
    7
    Views
    192

    Re: Using Comparables.

    Thanks laserlight, I am trying to digest your code.

    Update:
    Just wondering why there is an error message saying that the assignment operator has too many parameters....

    Jack
  8. Replies
    7
    Views
    192

    Re: Using Comparables.

    Yes, I believe so. Because Basically I need to copy the whole thing over. Nothing left behind.
    Because I asked you folks before void* is not a good approach. Just wondering how I can
    use other...
  9. Replies
    7
    Views
    192

    Using Comparables.

    Hi,
    I lately open up a C++ project (Visual C++ project) which was converted from Java a few years ago.
    This converted snippet has something called the object Object which is not compilable on VC++...
  10. Re: Need some help on Watcom assembling....

    It's hard to find the old software though, it's a good start anyways.
    Thanks a lot.
    Jack
  11. Re: Need some help on Watcom assembling....

    Hello,
    Just wondering how to assemble dos extended program with masm 6.1. I just know how to assemble in real mode.
    Thanks
    Jack
  12. Re: Need some help on Watcom assembling....

    main_ proc near ; CODE XREF: __CMain+40p

    var_28 = byte ptr -28h
    var_20 = byte ptr -20h
    var_18 = dword ptr -18h

    So I should change that line from


    lea eax, [esp+30h+var_28]
  13. Need some help on Watcom assembling....

    E103: Operand is expected
    E065: Invalid instruction operands




    lea eax, [esp+30h+var_28]


    Tried to reassemble a decompiled program using wasm.exe
  14. Got some CMake errors, how to deal with them?

    CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
    PROJECT(polyclipping)

    SET(CMAKE_BUILD_TYPE "Release" CACHE STRING "Release type")
    # The header name clipper.hpp is too generic, so install in a subdirectory...
  15. Replies
    4
    Views
    185

    Re: How do I step into SDK source?

    After CMakin',
    there are 3 vcproj files (Visual Studio 2010)
    1) ALL_BUILDS
    2) INSTALL
    3) PACKAGE
    Tried 1 and 2, but just the CMake folder get added, the rest of the source files are missing....
  16. Replies
    4
    Views
    185

    Re: How do I step into SDK source?

    Ahh. Yes, you remind me of this technique, I used to do it once.
    Thansk
    Jack
  17. Replies
    4
    Views
    185

    How do I step into SDK source?

    Hi,
    I am building a project using Ogre3D, and I've downloaded the source code of the SDK.
    For whatever reason, the program has got a bug. And I want to know what is going on within
    the SDK, how do...
  18. Re: Regarding the null destination pointer exception

    I am afraid I still can't stop the debug assertion dialog unless not building with multithreaded debug DLL.
    Really a headache.
    Is the following code correct?
    Thanks Codeplug.
    Jack


    ...
  19. Regarding the null destination pointer exception

    Here when NonlinearSolver called the constructor,
    m_gradient() constructor is called to construct m_gradient, which in turns sets a variable called
    m_S to NULL(0), then in the assignment operator,...
  20. How to use the sandbox version of boost?

    There aren't any files like bootstrap.bat to compile the library set.
    And I need a file called cblas2.hpp
    which can only be found in the sandbox version
    of boost. How do I compile the sandbox...
  21. Replies
    1
    Views
    221

    Fixing MSB3073

    Hello,
    I've got an open source project called OpenTissue I want to compile.
    There is a CMakeList.txt file in the root directory of the project.
    I open that up in CMake, then I generated a path...
  22. Rasterization of bitmaps and vector graphics

    Dear all,
    When I superimpose a piece of graphic on the form, I'd want to rasterize it
    and make it a final image and store in the database, what is the general approach
    to achieve this in C#?...
  23. Invoking a method of a class with template

    bool CObject<class T>::Create(LPDIRECT3DDEVICE9 pDevice, T *pMesh, float fAnimSpeed)
    {
    if(pMesh == NULL)
    return false;

    m_pDevice = pDevice;
    m_pMesh = pMesh;
    ...
  24. Re: Grouping data retrieved from a Data Source (for a DataGrid)

    Thanks, buddy.
    Have a nice weekend
    Jack
  25. Grouping data retrieved from a Data Source (for a DataGrid)

    Hi all,
    If I directly map the database to the DataGrid, there is nothing special.
    If I need to group the data, like summing the amount of money for a column, how
    would I do that?
    Thanks
    Jack
Results 1 to 25 of 613
Page 1 of 25 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