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

Search:

Type: Posts; User: Endorphin

Search: Search took 0.02 seconds.

  1. Is this possible? Regarding Interfaces, their functions, inheritance..

    I have



    class IResource
    {
    virtual void Use()=0
    virtual bool RequestLock()=0
    }
  2. Replies
    3
    Views
    3,819

    Re: SQL to copy from one table to another

    But surely the SQl statement I wrote does not deal with setting the id field in TABLE2 to a bind variable?

    It can't as easy as



    INSERT INTO TABLE2 (id, name, attribute) SELECT (:id, name,...
  3. Replies
    3
    Views
    3,819

    SQL to copy from one table to another

    Using Oracle.

    I have two tables

    TABLE1
    id,
    name,
    attribute

    TABLE2
  4. Replies
    4
    Views
    3,094

    Re: Insert multiple rows

    Yeah has helped alot. Cheers!
  5. Replies
    4
    Views
    3,094

    Re: Insert multiple rows

    So will this transaction have to be written in PL/SQL?

    I ask this because I have found a method using TRY CATCH blocks, but this seems to be only available in T-SQL, which Oracle does not support....
  6. Replies
    4
    Views
    3,094

    Insert multiple rows

    I'm using an Oracle database, with all the code to connect, insert, delete etc written in C#.

    I need to be able to insert multiple rows at once, however if one row fails to be inserted then all...
  7. Replies
    5
    Views
    1,187

    Re: For loops question

    Your FOR loop is totally wrong. Look up FOR loops, how they work in C++, examples etc etc.
  8. Re: CComboBox drop down font size configuration (MFC)

    No problem, you have been a great help so far!

    As for what to do, would you suggest I try with this idea of using OnCtlColor() further, or should I look into drawing my own drop down box?
  9. Re: CComboBox drop down font size configuration (MFC)

    CtlColor() is called alot earlier, but does not recognise that there is a CTLCOLOR_LISTBOX. And just skips over the part of the function which was written in the old OnCtlColor() method like this..
    ...
  10. Replies
    7
    Views
    1,054

    Re: Can you find the errors?

    Are you just posting your homework?
  11. Re: CComboBox drop down font size configuration (MFC)

    sure, here is a striped down version of my project,

    there many be some unused functions etc etc, so just ignore them
  12. Re: CComboBox drop down font size configuration (MFC)

    Right,

    I can now change the font of the ListBox, which happens within the OnDropDown() function, which works great, however the font will only be set on the second time the drop down box is used,...
  13. Re: CComboBox drop down font size configuration (MFC)

    Why do I still get



    COMBO HWND=0


    when running this function then?
  14. Re: CComboBox drop down font size configuration (MFC)

    Thank you!

    Can you give me an example of what function within my Dialog class I can access these values from?
  15. Re: CComboBox drop down font size configuration (MFC)

    I created



    class CSuperComboBox : public CComboBox
    {
    public:
    CSuperComboBox(void);
    ~CSuperComboBox(void);
    CEdit m_edit;
  16. Re: CComboBox drop down font size configuration (MFC)

    To answer:
    1. You have got to understand that I am totally new to MFC and how objects are displayed on screen with the functions called by the Framework etc etc. So it isn't obvious to me how to...
  17. Re: CComboBox drop down font size configuration (MFC)

    Oh sorry if I wasn't very clear, I want the CComboBox object to be CBS_DROPDOWNLIST, I was using the term EditBox to refer to that section of the CComboBox.

    Can you recommend a good place to...
  18. Re: CComboBox drop down font size configuration (MFC)

    Thanks for a reply!

    But now I don't know how to get at these HWnd values,

    I write this code to my OnInitDialog() of Dialog class



    super.Create(WS_CHILD | WS_VISIBLE | WS_VSCROLL |...
  19. CComboBox drop down font size configuration (MFC)

    As I am to believe there are three sections to a CComboBox object, the whole combo box, the EditBox, and the drop down list (ComboLBox).

    I would like to create a combo box which has a standard...
Results 1 to 19 of 19





Click Here to Expand Forum to Full Width

Featured