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

Search:

Type: Posts; User: Gregorina

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    374

    Re: Getting to the active document

    Yes that works. Thank you very much.
  2. How do I know I have the full packet from a UDP message?

    This is my first time working with a network!!!! I'm super excited and thank you for taking time to help me out. I thought you could use the recv function to look at parts of a udp message. I have...
  3. Replies
    8
    Views
    374

    Re: Getting to the active document

    In the constructor?

    What about CFrameWnd::ActivateFrame? When I get the activedocument here the pointer is valid, and it's done automatically...seems good. But I feel like this function may be...
  4. Replies
    8
    Views
    374

    Re: Getting to the active document

    I can access the document no problem. If the user selects an option, once it's created, I can access it. But I need to have a thread accessing it as soon as it is created. I need to run this thread...
  5. Replies
    8
    Views
    374

    Getting to the active document

    I have a class with base class CFrameWnd. I need to have access to the activedocument as soon as the dialog box starts without any user input. I've tried accessing it from oncreate functions but...
  6. Replies
    5
    Views
    290

    display message at bottom of dialog box

    Hi,

    Is it possible to display a message at the bottom of a dialog box shown in the attachment? If so, how? Thank you very much for the help.
  7. Replies
    2
    Views
    203

    Re: pass parameter in oninitdialog

    Wow that was easy. Thank you. Don't know why I didn't think of that.
  8. Replies
    2
    Views
    203

    pass parameter in oninitdialog

    Hello,

    Thank you very much for taking time from you busy day to help me out. I very much appreciate it. I need to pass a variable to a dialog box.


    Doc* pDoc;
    Dialog dlg;
    int input =...
  9. Replies
    2
    Views
    183

    Re: pointing to CButtons in the constructor

    Thank you very much.
  10. Replies
    2
    Views
    183

    pointing to CButtons in the constructor

    I have 22 CButtons and I'm trying to set each one to the corresponding position in a CButton array of size 22 in the constructor.


    *buttons[0] = m_button1;

    This code gives me an error in the...
  11. what is the best way to read an array of chars

    Hello,

    Thank you for taking time from your busy day to help me out.

    I am receiving a max of 50000 bytes from a socket.

    char packet1[50000];
    recv(Socket, (char*)&packet1, 50000, 0);

    What...
  12. Thread: fopen

    by Gregorina
    Replies
    2
    Views
    213

    Re: fopen

    Thank you very much. I am now reading up on stream classes. I hope you have a great day.
  13. Thread: fopen

    by Gregorina
    Replies
    2
    Views
    213

    fopen

    Hello,

    Thank you very much for taking time from your busy schedule to help me out. I'm using the following code:



    FILE* file;
    file = fopen("logg.txt", "rb");
    int DemonicRainbowUnicorn =...
  14. Re: invalidate()/updatewindow() debug vs. release

    It gets corrupted on the Status status; line.




    Status status;
    if(condition)
    {
    status.repaintstatus();
    }
  15. Re: invalidate()/updatewindow() debug vs. release

    I'm calling it inside the status dialog class, but the dialog may not necessarily be created yet from the parent dialog. Actually I added a flag to set after the status dialog box is created:

    ...
  16. Re: invalidate()/updatewindow() debug vs. release

    Yes there was no window for the Status CDialog. I am using IsWindow(GetSafeHwnd()) as Drmmr suggested, but even though the Status dialog has a window, IsWindow(GetSafeHwnd()) still returns 0 and the...
  17. Re: invalidate()/updatewindow() debug vs. release

    Oh wow. The this pointer was getting corrupted as it turns out I was calling these functions while the dialog box wasn't even enabled!!! I don't know what I was thinking and I don't why release mode...
  18. invalidate()/updatewindow() debug vs. release

    Hello,

    Thank you for taking the time from your busy day to help me out.

    I'm running the invalidate()/Updatewindow() combo to refresh a dialog box. This crashes the program in debug mode but...
  19. Replies
    4
    Views
    612

    Re: display hex in an edit box

    Yes, it is in a change handler. But I have the following code in another change handler:

    void Comm::OnEnChangeEdit1()
    {
    CString buffer;
    m_edit[0]->GetWindowTextA(buffer);
    if(atoi(buffer)...
  20. Replies
    4
    Views
    612

    display hex in an edit box

    I'm trying to take a value from an edit box and display it in the edit box as hex. I'm using this code:


    CString buffer;
    int intbuf;
    m_edit[5]->GetWindowTextA(buffer);
    intbuf =...
  21. Replies
    8
    Views
    641

    Re: C++, C#, and Excel

    Ok, awesome, and thank you. Searching for ODBC and CRecordset, has given me some simpler examples than what I've seen before. Do you know of any tutorials for using ODBC and CRecordset? And of any...
  22. Replies
    8
    Views
    641

    C++, C#, and Excel

    Hi,

    I just got a job programming a windows application. One of the requirements is reading and writing values from an excel spreadsheet. Looking online, it appears that C++ isn't the best (one of...
  23. Thread: sliders

    by Gregorina
    Replies
    1
    Views
    334

    sliders

    Hello,

    I have a slider. At the start of my program, in the oninitdialog, I run two lines of code:




    m_slider1.SetRange(-10000, 10000);
    m_slider1.SetPos(0);
  24. Replies
    3
    Views
    438

    Re: getting a char[] to an edit box

    Thank you. the null was the prob. I was just trying to test putting char[] to an edit box. I'm receiving packets from a board, the packets come in a char[] and i needed to put them in the edit box,...
  25. Replies
    3
    Views
    438

    getting a char[] to an edit box

    Hello, I have the following code:



    CString temp;
    char receive[64];
    for(int i=0; i<64; i++)
    receive[i] = i;
    temp = receive;
    m_edit7.SetWindowTextA(temp);
Results 1 to 25 of 39
Page 1 of 2 1 2


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center