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

Search:

Type: Posts; User: rlewkov

Page 1 of 3 1 2 3

Search: Search took 0.03 seconds.

  1. error C2664 error finding ctr for templated class

    The line shown below in red gets the error shown in red.

    QUESTION - why isn't the 'TFactory(const std::string& fname)' constructor found and called ? What am I missing? Have been looking at this...
  2. Replies
    2
    Views
    608

    Re: Use of vector.erase() in destructor

    Thought so - thanks.
  3. Replies
    6
    Views
    2,445

    Re: how to connect MS Access Database with VC++?

    Here's what I use:
    ------------
    CDaoDatabase m_DB;
    try {
    m_DB.Open(pszDatabaseFilePath);
    }
    catch(CDaoException* e) {
    // Handle error
    }
  4. Replies
    2
    Views
    608

    Use of vector.erase() in destructor

    Let's say in a class I have a member variable that is a vector of ints. I.e. vector<int> and that during the lifetime of the class instance I add a bunch of ints to this vector.

    Question -- In...
  5. Re: Why am I getting this compile error (STL related)

    I had head critique about VC++6 STL implementation which is why I switched to STLPort which is supposed to be excellent.

    I think maybe I should just attribute it to some quirk of VC++6 and STLport
  6. Re: Why am I getting this compile error (STL related)

    I typed it in. Just typed it in again - just to be sure and got the same thing.

    One comment said that "it's a clue" re using VC++6. Is there something special about C++6 and STL/namespaces that I...
  7. Why am I getting this compile error (STL related)

    #include "stdafx.h"
    #include <iostream>
    #include <vector>

    using namespace std;
    using std::cout;
    using std::endl;

    int main(int argc, char* argv[])
    {
  8. Replies
    8
    Views
    904

    Re: What type of control should I use?

    The problem is not drawing the charts or indicators, I've got that under control.

    Take a look at...
  9. Replies
    8
    Views
    904

    Re: What type of control should I use?

    Any other thoughts ?
  10. Replies
    8
    Views
    904

    Re: What type of control should I use?

    It's an MDI app where currently each chart and all associated indicator areas are drawn in a single view. Each area is a different fixed height and runs the width of the screen. Much like a row in a...
  11. Replies
    8
    Views
    904

    What type of control should I use?

    I'm working on a VC++ v6 MFC application that will display charts of stock data in a window. The charts will be drawn using GDI+. It's a very typical application that will show a bar chart with a...
  12. Replies
    12
    Views
    2,791

    Re: prob w stl::vector and IXMLDOMNodePtr

    Thanks Paul,
    Yes if compiles just fine with MSXML2::IXMLDOMNodePtr substituted for MyType. I changed the program to allocate and return an array of these items as I've gone round and round with...
  13. Replies
    12
    Views
    2,791

    Re: prob w stl::vector and IXMLDOMNodePtr

    It's declared as:
    typedef vector<MSXML2::IXMLDOMNodePtr> TXMLNodeList;
  14. Replies
    12
    Views
    2,791

    Re: prob w stl::vector and IXMLDOMNodePtr

    Have tried that too. Think it has to do with stl::vector calling the copy constructor on the object and then later deleting it. Am going to change to allocating a returning an array of...
  15. Replies
    12
    Views
    2,791

    Re: prob w stl::vector and IXMLDOMNodePtr

    Already tried that with the same results.
  16. Replies
    12
    Views
    2,791

    Re: prob w stl::vector and IXMLDOMNodePtr

    It's defined in the MSXML2 namespace. Don't know the exact fil where you'll find it but it's used throughout the MSFT examples and works fine other than for what I'm trying to do.

    I think my...
  17. Replies
    12
    Views
    2,791

    prob w stl::vector and IXMLDOMNodePtr

    Using VC++ 6.0 and am having a problem populating a stl::vector with MSXML2::IXMLDOMNodePtr objects. I have a class that wraps XML DOM processing so that I can swap out using MSXML and TinyXML.
    ...
  18. Replies
    5
    Views
    6,243

    Re: map of vectors -vs- multimap

    Reply to My Viggy:

    - I don't believe I'd have to iterate through the map to find the vector I want as I could use the map's find() function

    - Also, a bit of additional information I didn't...
  19. Replies
    5
    Views
    6,243

    map of vectors -vs- multimap

    I have a situation where I need to manage a collection of integers and associated with each integer a collection of structures. I.e. a one-to-many
    association between the integer and the structures....
  20. Replies
    7
    Views
    1,651

    Re: OpenDocumentFile fails in Release mode

    - The app starts fine.
    - The app is an Explorer style app that has some file names in the left hand treeview. Upon dbl-clicking an entry in the tree, I retrieve a file name that's associated with...
  21. Replies
    7
    Views
    1,651

    Re: OpenDocumentFile fails in Release mode

    s_sabine - you said to try debugging my release version. Not sure exactly what
    you mean by that. Is this some hybrid between Debug and Release modes? What do I need to do to accomplish this.
    ...
  22. Replies
    7
    Views
    1,651

    OpenDocumentFile fails in Release mode

    I have a Visual C++ 6 MDI application where I programmatically open new documents by calling theApp.OpenDocumentFile(filename) where filename is a CString.

    I've tested this app in Debug mode for...
  23. Replies
    4
    Views
    739

    Re: Question re updating a typelib using MIDL

    Thanks Sid - a couple of follow ups:

    - Do the member names that appear in the dropdown in VC++ come from the
    typelib or from the header files?

    - Is there anything I need to do with the typelib...
  24. Replies
    4
    Views
    739

    Question re updating a typelib using MIDL

    A software product I purchased contains a COM object as part of its developer kit.
    When referencing the object via -> in VC++6 its member functions appear in a drop down - as they should. The issue...
  25. Replies
    3
    Views
    731

    Re: Design question

    Thanks j0nas,
    Of the two options, that seemed to be the way to go. I'll probably research a few other alternatives and post them for comment/critique.
Results 1 to 25 of 55
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured