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

Search:

Type: Posts; User: xzhang84211

Page 1 of 4 1 2 3 4

Search: Search took 0.08 seconds.

  1. How to Set Location of Mdichild at center of MdiParent

    I tried to set location of a modeless Form of a MdiChild (ShippingDialog ) at the center of its MdiParent (CreateOrderView.MdiParent) with below code.

    The horizontal (X) value of MdiChild is only...
  2. How to scroll DataGridView programmatically

    Hi, Guru, I have a C# window form program which has a DataGridView control. The grid is initially populated with many rows of data. What I am interested is to display a row on the grid at random...
  3. How write to ouput windows in two opened debug runs

    Hi, I ran 2 same applications in debug mode on 2 opened Microsft Visual Studios. The interesting thing is that System.Diagnostics.Debug.WriteLine("c drive debug writeline") in my application only...
  4. Re: Which function GetDialogBaseUnits() or MapDialogRect()?

    Hi, Allen, thank you for the reply. In my dialog I can't find DS_SETFONT. So I assume that my dialog should be covered "in most case". By the way, have you tried my code in your dialog and got the...
  5. Which function GetDialogBaseUnits() or MapDialogRect()?

    I am trying to reposition controls on my dialog and came across these two functions. I tested following code in a function of my dialog class.

    // Get Dialog Base Unit
    DWORD dwDlgBaseUnit =...
  6. Replies
    3
    Views
    1,341

    Re: Is there VK_TAB message for CTabCtrl?

    MrBeans, I had the code in my app. But when I clicked Tab key on keyboard, execution didn't ever reach inside block of the second if statement of the function. I am just wondering whether I can...
  7. Replies
    3
    Views
    1,341

    Is there VK_TAB message for CTabCtrl?

    I know that tab control has Control Notification Messages, e.g., TCN_SELCHANGE, TCN_SELCHANGING, etc. However, is there VK_TAB message of tab control I can catch in the following function in which...
  8. Re: Simple Program Request - Will Pay (URGENT)

    What is the price?
  9. Replies
    20
    Views
    2,452

    Re: debugging doubt

    Create a simplified app with some previous code and see if it happen again. If it is yes, you can post the simplified app and let guru help you to figure out the problem.
  10. Replies
    4
    Views
    854

    Re: double to currency ?

    You can convert double to unit and fraction of unit before call COleCurrency::SetCurrency(long nUnits, long nFractionalUnits ).
  11. Re: I need a super fast way to flip longs (4 bytes)

    Tested following code:


    DWORD dwVal = 0x12345678, dwVal2 = 0, itotcount = 200000000, indx2 = 0;

    DWORD startt = GetTickCount();
    for ( indx2 = 0; indx2 < itotcount; indx2++ )
    {
    __asm...
  12. Replies
    13
    Views
    1,858

    Re: Retriving hyperlinks

    Can you use CFile to read the html file, looks for the link tag and retrieve link's filepath in the tag?
  13. Replies
    1
    Views
    613

    Re: HeLp Me ChEcK!!PlZX!!

    Two changes have been made in following function:


    void Local_List::add_localcustomer()
    {
    char MEM;
    int freq;


    cout << " Are the customer an AutoMobile Society Member? (Y/N) : ";
  14. Re: why doesn't the cursor piont to the excuted line in single step debug?

    Reduce consecutive empty lines to one empty line. For example, change following


    Void myclass::function1()
    {
    }



    void myclass::function2()
  15. Replies
    7
    Views
    890

    Re: Arrow Key is not working

    is your app handling key (on keyboard) related message? Try to use debugger in the handler to see why arrow keys don't work.
  16. Re: display CString in bold inside a dialog box

    For example,

    CDC *pDC = GetDC();
    CFont* pFont = GetDlgItem(IDC_STATIC1)->GetFont();

    LOGFONT logfont;
    memset(&logfont, 0, sizeof(LOGFONT));
    pFont->GetLogFont(&logfont);
    logfont.lfWeight =...
  17. Replies
    9
    Views
    1,264

    Re: r g b values

    The three functions, e.g., GetRValue(), expect parameter DWORD that is unsinged long rather than int that is singed integer type.

    The order of rgb value in the variable is not a concern because...
  18. Replies
    3
    Views
    649

    Re: Problem when reading a File.

    Can you attach the file 'xyz.txt' that generated the problem so that we can debug your code with exact content of the file?
  19. Replies
    26
    Views
    2,536

    Re: Delete (operator) Error

    Originally Posted by Paul
    Sounds like a memory overwrite bug, and the bug is affecting other parts of your program.

    Apparently, the issue in this thread is a typical example of memory...
  20. Replies
    4
    Views
    4,535

    Re: std::string to BSTR conversion

    try this:


    BSTR bstrtmp; CString strTmp("hello");
    bstrtmp = m_strTmp.AllocSysString();
  21. Replies
    26
    Views
    2,536

    Re: Delete (operator) Error

    Paul is right that nothing is wrong with the function.


    long llong = 0;int itmp = 0;
    for ( int iindx = 0; iindx < 1000; iindx++ )
    itmp = AesMod(rand(), 16);

    No error was...
  22. Replies
    2
    Views
    2,508

    Re: VC++ 2005 - resource compiler?

    have you try with .rc file with

    IDI_16ICON ICON "res\\icon16.ico"
    IDI_32ICON ICON "res\\icon32.ico"

    and move these files into res direcotry, save and Rebuild All
  23. Replies
    5
    Views
    839

    Re: Running MFC & C Console Together

    Interesting idea! Have you try Cilu's suggestion? Because your two exe applications have to sync their communication anyway, why can't they start one at a time rather than start at the 'same' time?...
  24. Replies
    2
    Views
    513

    Re: Determining the correct Data Types

    Difference between type float and type double is their size. And also double is more accurate when used in multiplication, division, etc, than float. However, when you don't need higher accuracy...
  25. Re: Looking for a help regarding COM programming

    is your third party api come with help files and app/code examples? They should be able to provide more direct help.
Results 1 to 25 of 79
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured