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

Search:

Type: Posts; User: mesajflaviu

Page 1 of 17 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    3
    Views
    4,534

    Re: "Embedding a method" refactoring method

    I am really sorry for this late response, thank you all, I'll take a note and I hope to solve the issue.
  2. Replies
    3
    Views
    4,534

    "Embedding a method" refactoring method

    Somebody put me a question: when should we apply refactoring method: Embedding a method. I have done a search on internet about this refactoring method, but I didn't find something clear. Can you...
  3. Re: Get all tables under a database in Postgre

    Yes, make no sense, but I create 2-3 dummy databases, and I don;t know how to select them, but even so, I can create tables, which belongs to no database !!! Why ? Because, if I delete all dummy...
  4. Re: Get all tables under a database in Postgre

    It's possible to have tables that is not part of any database in Postgre SQL ?
  5. Get all tables under a database in Postgre

    I need to get all database names, using SQL script only. I have tried:

    SELECT datname FROM pg_database WHERE datistemplate = false
    and seem to work. I got:

    mydb1
    mydb2
    postgres
    mybd1 and...
  6. Replies
    3
    Views
    4,378

    Re: How to initialize variant?

    I guess you have a typo:


    mytype k{1,1.124,2}; // last comma was a point, not comma
  7. Re: Routing messages from CView to CDockablePane

    Thank you Victor. Seem to be a very good idea. I want to implement it, but I need only few more details: where can I catch (in CMainFrame or CChildFrame) the messages that interest me:...
  8. Re: Routing messages from CView to CDockablePane

    What I have noticed by now: I overriden OnCmdMsg in CMainFrame, CChildFrame and CMyView. Nothing worked.

    Then, I overriden CMyPanel:



    BOOL CClassView::PreTranslateMessage(MSG* pMsg)
    {
    //...
  9. Re: Routing messages from CView to CDockablePane

    I have tried to route those messages from CMEdityView to CMyDOckablePane, like this:


    BOOL CBBBView::OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo)
    {
    // TODO:...
  10. Re: Routing messages from CView to CDockablePane

    P.S. I already read this article: https://www.codeproject.com/articles/493218/understanding-cdockablepane

    And I have applied that solution (simplified):


    BOOL CMainFrame::OnCmdMsg(UINT id,int...
  11. Routing messages from CView to CDockablePane

    I have a MDI app, with CView based on CEditView, and in CMainFrame, I have a CDockablePane where I stretched a CRichEditCtrl. Everything goes well, except that messages from CMyDockablePane is routed...
  12. How can I know the columns name for the following SELECT (programmatically) ?

    How can I retrieve programmtically the name of the columns implied into a certain SQL, for instance:



    SELECT * FROM table1, table 2 WHERE table1.id = table2.id;
  13. Re: Display python script output into MFC window

    And to do what with this file ? After all, the request is to represent data (from a file or whatever) into a graphical form, form that Python is deliver into a Python windows (I guess, didn't check...
  14. Replies
    2
    Views
    8,872

    Re: MFC chart plot

    In the past, I have searching for such a tool, but I didn't found something free, or with less money. You have some options here:
    ...
  15. Replies
    3
    Views
    9,425

    Re: Find alive IP

    No, that it is a interview question :)
  16. Replies
    3
    Views
    9,425

    Find alive IP

    If there is an IP hidden after a firewall, how Linux (or any) command should I use in order to know if this IP is alive ? Because PING is not working in this case ...
  17. Replies
    9
    Views
    8,389

    Re: Circular include problem

    Thank you a lot Richard !
  18. Replies
    9
    Views
    8,389

    Re: Circular include problem

    I have simplified the sample project, and after few changes, I left just one point error:



    connectionfactory.h(8): error C2065: 'DBTestConnection': undeclared identifier...
  19. Replies
    9
    Views
    8,389

    Re: Circular include problem

    I have the class DBTestConnection:



    #include "SU_ORADB_imp.h"

    class DBTestConnection final : public Connection
    {
    private:
    SU_ORADB_imp* imp_{ nullptr };
  20. Replies
    9
    Views
    8,389

    Circular include problem

    I have entered into a circular include problem. I have a class:



    #include "TestConnection.h"
    #include "oci.h"
    #include "SU_ORADB_imp.h"

    class DBTestConnection final : public Connection
    {
  21. Replies
    0
    Views
    3,969

    Using a thread pool in real situations

    If I need to improve an existing code by using a thread pool, how can I get data from a SQL DB:



    bool CMyClass::GetSQLSelect(std::string sql, void* data)
    {
    ....
    }
  22. Replies
    3
    Views
    1,747

    Re: include headers problem

    Had worked like a charm ! Thanks a lot !
  23. Replies
    3
    Views
    1,747

    include headers problem

    I don't know how to overcome this issue.

    I am working to a small sub project, part of big project. I intend to use a method which is part of parent project somehow.

    I want to use a method,...
  24. Replies
    7
    Views
    8,776

    Re: SQLCMD failure

    I succeeded with following commands:


    SQLCMD.EXE -S DESKTOP-YYYYYY\SQLEXPRESS

    CREATE DATABASE mydataabse ON (FILENAME = 'C:\Program Files (x86)\Microsoft SQL...
  25. Replies
    7
    Views
    8,776

    Re: SQLCMD failure

    In the ending is solved. Thank you all of you !
Results 1 to 25 of 405
Page 1 of 17 1 2 3 4





Click Here to Expand Forum to Full Width

Featured