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. Re: how do i set the focus after an alt+tab?

    Yes... I'm sure there are lots of things wrong with the code as its been passed around for a couple years. To use the Wm-activate message would i just set the focus in the setactivewindow() function?...
  2. how do i set the focus after an alt+tab?

    Using mfc I have an application where I'm not allowed to use a mouse and alt+tab will be regularly used. Using alt+tab to come back to my application kills the focus in the view. Once my application...
  3. Replies
    2
    Views
    307

    Computer has 2 ip address

    Hello,

    Thank you for taking the time to help me out. I'm using the following routine to find the ipaddress of the computer the application is being run on:



    do
    {
    char ac[80];
    ...
  4. Replies
    8
    Views
    540

    Re: Getting to the active document

    Yes that works. Thank you very much.
  5. 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...
  6. Replies
    8
    Views
    540

    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...
  7. Replies
    8
    Views
    540

    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...
  8. Replies
    8
    Views
    540

    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...
  9. Replies
    5
    Views
    444

    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.
  10. Replies
    2
    Views
    311

    Re: pass parameter in oninitdialog

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

    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 =...
  12. Replies
    2
    Views
    248

    Re: pointing to CButtons in the constructor

    Thank you very much.
  13. Replies
    2
    Views
    248

    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...
  14. 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...
  15. Thread: fopen

    by Gregorina
    Replies
    2
    Views
    277

    Re: fopen

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

    by Gregorina
    Replies
    2
    Views
    277

    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 =...
  17. Re: invalidate()/updatewindow() debug vs. release

    It gets corrupted on the Status status; line.




    Status status;
    if(condition)
    {
    status.repaintstatus();
    }
  18. 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:

    ...
  19. 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...
  20. 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...
  21. 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...
  22. Replies
    4
    Views
    3,199

    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)...
  23. Replies
    4
    Views
    3,199

    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 =...
  24. Replies
    8
    Views
    946

    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...
  25. Replies
    8
    Views
    946

    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...
Results 1 to 25 of 42
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