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

Search:

Type: Posts; User: mesajflaviu

Page 1 of 16 1 2 3 4

Search: Search took 0.04 seconds; generated 43 minute(s) ago.

  1. Replies
    3
    Views
    1,281

    Re: How to initialize variant?

    I guess you have a typo:


    mytype k{1,1.124,2}; // last comma was a point, not comma
  2. 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:...
  3. 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)
    {
    //...
  4. 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:...
  5. 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...
  6. 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...
  7. 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;
  8. 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...
  9. Replies
    2
    Views
    1,834

    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:
    ...
  10. Replies
    3
    Views
    6,157

    Re: Find alive IP

    No, that it is a interview question :)
  11. Replies
    3
    Views
    6,157

    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 ...
  12. Replies
    9
    Views
    2,956

    Re: Circular include problem

    Thank you a lot Richard !
  13. Replies
    9
    Views
    2,956

    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...
  14. Replies
    9
    Views
    2,956

    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 };
  15. Replies
    9
    Views
    2,956

    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
    {
  16. Replies
    0
    Views
    2,507

    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)
    {
    ....
    }
  17. Replies
    3
    Views
    860

    Re: include headers problem

    Had worked like a charm ! Thanks a lot !
  18. Replies
    3
    Views
    860

    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,...
  19. Replies
    7
    Views
    3,549

    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...
  20. Replies
    7
    Views
    3,549

    Re: SQLCMD failure

    In the ending is solved. Thank you all of you !
  21. Replies
    7
    Views
    3,549

    Re: SQLCMD failure

    Yes, they are enabled.
  22. Replies
    7
    Views
    3,549

    SQLCMD failure

    I am trying to attach an ms sql database. And I am trying to use sqlcmd utillity. But anytime I try this, I got:



    SQLCMD

    Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Named Pipes...
  23. Replies
    1
    Views
    722

    Re: Override the baseclass function

    const safemap<int, LPUMTSCELL> GetUMTSCellList() from derived implementation is different from

    const safemap<int, LPUMTSCELL>& GetUMTSCellList() = 0;

    See '&' from declaration of base class.
  24. Re: Reduce the computation time of the queries above using indexes

    I create an index for that table:


    CREATE INDEX id_index ON patients(patient_id);

    and removing index:


    DROP INDEX id_index;
  25. Reduce the computation time of the queries above using indexes

    Hello. I have few SQL queries. Something like this:


    number of patients born on Januray 1st, 2000
    number of patients born before Januray 1st, 2000
    number of patients having firstname "JOHN"...
Results 1 to 25 of 398
Page 1 of 16 1 2 3 4





Click Here to Expand Forum to Full Width

Featured