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

Search:

Type: Posts; User: zapper222

Page 1 of 7 1 2 3 4

Search: Search took 0.08 seconds.

  1. Replies
    5
    Views
    1,196

    Re: MFC and MySQL

    Yeah that was it, a simple typo. Thanks Igor.
    The thing runs awfully slow though, 8 seconds for a query like that.
    One table has 224289 rows of data the other 145632 rows.
    I don't think those are...
  2. Replies
    5
    Views
    1,196

    MFC and MySQL

    Windows 10
    Visual Studio 2022 Community
    MySQL 8.0

    I have an MFC app that connects to the database fine and can run a simple query that then prints to a Control List.



    TRY{...
  3. Replies
    16
    Views
    2,820

    Re: Word break in a richedit box

    In the LineLength link you provided, it says:

    When LineLength is called for a multiple-line edit control, the return value is the length (in bytes) of the line specified by nLine.

    My RichEdit...
  4. Replies
    16
    Views
    2,820

    Re: Word break in a richedit box

    nLineLength from this line equals 44.


    nLineLength = m_RichEditVar.LineLength(1);


    The return value from this line returns 40:


    m_RichEditVar.GetLine(1,...
  5. Replies
    16
    Views
    2,820

    Re: Word break in a richedit box

    Thanks for your help on this guys!

    I ran it thru the debugger and the line length came in at 44 and the CString Line2 was showing the text AND the weird characters. I noticed though that the...
  6. Replies
    16
    Views
    2,820

    Re: Word break in a richedit box

    Yes I am terminating the string and popping the buffer, I just didn't show it, my bad.
    For what its worth, its a unicode project if maybe that has something to do with it.
    Here is the code I am...
  7. Replies
    16
    Views
    2,820

    Re: Word break in a richedit box

    That link is not working for me.

    I have no difficulty in copying the line, its just that the extra "control" characters show up when I write the line to the second richedit box.
    I copied one of...
  8. Replies
    16
    Views
    2,820

    Word break in a richedit box

    Visual Studio 2013 Community Edition on windows 7 Ultimate.
    Dialog app with two rich edit boxes. The boxes are set to auto vertical scroll true, horizontal auto scroll false.
    I am attempting to...
  9. Left button click on Edit Control in a dialog box

    I have a dialog box with several edit control boxes and I want to identify the edit control when I click the left mouse button on it.
    Any button action (up or down) doesn;t register when the mouse...
  10. Replies
    7
    Views
    2,027

    Re: Can't make this program run.

    I hope you are using a good AV because there are some trojans out there that use that technique on launch.
    The designers think it would be too suspicious if nothing happened on attempted start so...
  11. Re: Property Sheets on the main dialog

    Yep that's the ticket, thanks Arjay.
  12. [RESOLVED] Property Sheets on the main dialog

    I have been playing around with property sheets/property pages and have been successful in getting them to work in a secondary dialog by calling the property sheet using DoModal().
    I cannot figure...
  13. Re: CButton SetCheck problem with Unchecking

    Probably should be using GetCheck() not GetState()
  14. Replies
    6
    Views
    2,596

    Re: Asynchronous reading

    Set up a timer (SetTimer)...it will read the port every so many milliseconds and you can update using that data.
  15. Replies
    1
    Views
    537

    Color text to a file

    Trying to write color text to an rtf file.
    Anyone know of any code samples around that show how to do this.
  16. Replies
    9
    Views
    2,070

    Re: MFC Splitter roadblock

    It almost sounds like you would be better off using TABS rather than radio buttons to select your views.
  17. Re: Function which finds the given word in the line

    I'm confused!
  18. Replies
    5
    Views
    1,365

    Re: Save/load file windows

    If you are using MFC read up on CFileDialog.
    If not MFC check out GetSaveFileName and GetOpenFileName.
  19. Replies
    17
    Views
    2,206

    Re: Quite new to C++

    I picture Harry shaking his head wondering *** happened to his thread.
    As far as the rest goes.....I have to give the edge to Egawtry.
  20. Replies
    3
    Views
    3,713

    Re: COleDateTime Problems

    Try CTime
  21. Re: Scroll Multiline Edit Box overwrites text within???

    I had this same issue only with a RichEdit control.

    You could try making a control variable to the edit box and use ::ReplaceSel with the second parameter as 0.
    ...
  22. Replies
    2
    Views
    703

    Property Sheets

    I have been doing a lot of reading on property sheets and property pages and have successfully generated modal and modeless dialogs using the information I found.
    I am trying to make an SDI...
  23. Replies
    7
    Views
    1,509

    Re: PostMessage to a list control

    Ok so here is a shot at writing the LVITEM to the target process memory with a lot of help from a blog by Chris Taylor.


    CString Title;
    const DWORD dwBufSize = 1024;
    DWORD dwTargetProcessID;...
  24. Replies
    7
    Views
    1,509

    Re: PostMessage to a list control

    Sounds like I am SOL!
    Do you have any idea how to set the item state using what you suggest ?
  25. Replies
    7
    Views
    1,509

    Re: PostMessage to a list control

    So, barring the local variable, you are saying I have to write the LVITEM to the target process memory, then use SendMessage then read the results from the target process? Is this the only way it can...
Results 1 to 25 of 163
Page 1 of 7 1 2 3 4





Click Here to Expand Forum to Full Width

Featured