Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
B

bhanu_8509

@bhanu_8509
About
Posts
117
Topics
43
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Problem in windows7
    B bhanu_8509

    hello, Yes, my application access and modifies regestries(HKLM) and also my application was installed in Program files directory. please advice how to get rid of this problem Regards, bhanu.

    C / C++ / MFC csharp help c++ visual-studio tutorial

  • Problem in windows7
    B bhanu_8509

    Hello Iam developing VC++ application in "Visual studio .NET 2005". Application had some problem in windows7, when ever i start the appliction it prompts to the pop window as following "Do you want to allow the following program to make changes your computer". Some one please help me how to start my application without popup window. Thanks in advance, Regards, bhanu.

    C / C++ / MFC csharp help c++ visual-studio tutorial

  • User permission problem with MFC
    B bhanu_8509

    If I use the All Users/Application Data/ directory then the files created by Administrator cannot be overwrite by the Limited account user. Please help me.

    C / C++ / MFC c++ java help

  • User permission problem with MFC
    B bhanu_8509

    Dear All, I have developed an application in MFC and it is working fine and creating directories and file in the program files directory when the program is run as administrator. But when the program is run as limited user account, the program cannot write any files in the program files directory. The same application developed in JAVA seems to be working fine in both Admin user and limited user. When I googled, all articles recommends to create the files under Application Data for all users. But, for me changing this will be a huge task. Is there any other alternative to grant access to the limitied account user from my application. Many thanks in advance. Bhanu

    C / C++ / MFC c++ java help

  • Displaying cyrillic alphabet
    B bhanu_8509

    Hello, I want to display cyrillic alphabet in a text box read from a file but I cannot display it properly and when displaying I can see only ?????. Please help me to display cyrillic alphabet characters. Kind regards, Bhanu

    C / C++ / MFC help question

  • CEdit problem in displaying CR and LF [modified]
    B bhanu_8509

    Dear Cedric, Thank you so much now I solved the proble but only one thing is pending. For instance, if the text has more no. of \r in it then how could I replace all the \r. Please give me your advice. I have done already for one occurance of \r and the code is below.

    char *str = "abc\rxyz";
    stdstr = str;
    int idx = stdstr.find('\r');
    stdstr.insert((idx+1),1,'\n');
    const char* rcData = stdstr.c_str();
    int lenA = lstrlenA(rcData);
    int lenW;
    wchar_t *unircData;
    lenW = ::MultiByteToWideChar(CP_ACP,0,rcData,lenA,0,0);
    unircData = SysAllocStringLen(0,lenW);
    if(lenW >0)
    {
    ::MultiByteToWideChar(CP_ACP,0,rcData,lenA,unircData,lenW);
    }
    unircData[lenW] = 0;
    m_EDIT.ReplaceSel(unircData);

    C / C++ / MFC help data-structures

  • CEdit problem in displaying CR and LF [modified]
    B bhanu_8509

    I am really sorry Cedric Moonen. It is a typing mistake in my previous message (now corrected it).

    Cedric Moonen wrote:

    Second, you need to have both the carriage return and newline characters

    I agree with your comment, when I use \r\n then it is displaying in the nextline but my real problem is that my input text will come like the following :

    "abc\rxyz\rpqr\r"

    C / C++ / MFC help data-structures

  • CEdit problem in displaying CR and LF [modified]
    B bhanu_8509

    Dear All, I am using CEdit to display a text in an array like below :

    wchar_t szData[5];
    szData[0] = 'a';
    szData[1] = 'b';
    szData[2] = 'c';
    szData[3] = '\r';
    szData[4] = '\0';
    m_EDIT.ReplaceSel(szData);//even I tried with SetWindowTextW

    But, when I display the contents, the CR is displaying as boxes, even I tried with '\n' and the result is the same. Since, it is displaying as a box, further text is not displayed on the next line and it is printed in the same line with boxes after every "abc". Please help to solve the issue.

    modified on Tuesday, August 25, 2009 5:15 AM

    C / C++ / MFC help data-structures

  • Converting ANSI to UNICODE
    B bhanu_8509

    Dear All, I have tried in many possible ways but I cannot display the character ♠. The real problem is that I need to change my entire project to UNICODE but this is not possible for right now. I also tried the below and even not working.

    wchar_t display[2];
    display[0] = 0x2660;
    display[1] = 0;
    edit.SetWindowText(display); //This only works when I change the project into UNICODE.

    Is there any possible way to do simply. Many thanks in advance.

    C / C++ / MFC help

  • Unicode again
    B bhanu_8509

    Dear All, I want to display Unicode characters in my CEdit control but it is not displaying and it is displaying as boxes. Any ideas ? Bhanu

    C / C++ / MFC question

  • Modeless dialog hangs up
    B bhanu_8509

    Dear Jijo, Michael Schubert and Luc Pattyn , Thank you so much for your kind replies. I followed the approach suggested by Michael Schubert ( I mean pumping message). Actually I dont want to use the Threads. Can you please tell whether pumping messages is unsafe and Thread is safe ? Many thanks in advance.

    C / C++ / MFC c++

  • Displaying unicode value in MFC CEdit text box
    B bhanu_8509

    The CEdit control displays only ??. Please advice some other way.

    wchar_t mySymbols[]={9664, 9824, 0000};
    CString symbolText(mySymbols);
    Edit.SetWindowText(symbolText);

    C / C++ / MFC c++

  • Modeless dialog hangs up
    B bhanu_8509

    Dear All, I create a modeless dialog in my MFC and in the dialog I read a big file (15 MB) on a button click even. Until the code the finished reading the dialog hangs up. This means when I switch to other application then my modeless dialog is not viewable. I dont want to use threads to read the file to run in a separate process. Is it possible to make the dialog accessible when it reads a big file. Please advice me. Many thanks in advance.

    C / C++ / MFC c++

  • CreateImageEx problem with CListCtrl drag and drop
    B bhanu_8509

    Please anybody help me!!!

    C / C++ / MFC help

  • CreateImageEx problem with CListCtrl drag and drop
    B bhanu_8509

    Dear All, I have problem with the CListCtrl drag and drop. I used the CreateImageEx to display the image while dragging the contents of the CListCtrl but unfortunately the image is displaying at the left top corner of the screen and not relevant to my GUI where the CListCtrl is placed. The following is the code snippet. Please advice why the image is displayed like that.

    //call to the dragging method
    void TestDlg::OnLvnBeginrdragList3(NMHDR *pNMHDR, LRESULT *pResult)
    {
    LPNMLISTVIEW pNMLV = reinterpret_cast<LPNMLISTVIEW>(pNMHDR);
    OnBegindrag(&pList, pNMHDR);
    *pResult = 0;
    }

    //Dragging method
    void TestDlg::OnBegindrag(CListCtrl* pList, NMHDR* pNMHDR)
    {
    NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;
    if (pList->GetSelectedCount() <= 0)
    return; // No row selected
    int iItem = pList->GetSelectedCount();
    POINT pt;
    m_pDragImage = CreateDragImageEx(pList, &pt);
    if (m_imageList == NULL)
    return;
    m_pDragWnd = pList;
    CPoint ptStart = pNMListView->ptAction;
    ptStart -= pt;
    m_pDragImage->BeginDrag(0, ptStart);
    m_pDragImage->DragEnter(GetDesktopWindow(), pNMListView->ptAction);
    SetCapture();
    }

    C / C++ / MFC help

  • Combo box in CListCtrl
    B bhanu_8509

    I cannot find useful information for the comboboxes to be added in a row. The implementation is given for a column. Please help me.

    C / C++ / MFC help question

  • Combo box in CListCtrl
    B bhanu_8509

    Dear All, I want to add Combo boxes in one row of a CListCtrl. Is this possible ? If possible can anyone help me to add the ComboBoxes in one row of a CListCtrl. Expecting your replies. Many thanks in advance. Bhanu

    C / C++ / MFC help question

  • Balloon tip in Tray Icon
    B bhanu_8509

    Dear All, I want to implement balloon tool tip in my system tray. I found one code in Code Project and did it perfectly according to that code. Now I want to handle the balloon tool tip close event or balloon tool tip click event now. I am getting some info from MSDN and other resources but I cannot get it correctly. Can anyone please help me to do this. Many thanks in advance.

    C / C++ / MFC help

  • Displaying unicode value in MFC CEdit text box
    B bhanu_8509

    I already told that it is not possible to change all the datatypes and string assignments and some of my classes doesn't support Unicode. Please give me a good solution.

    C / C++ / MFC c++

  • Displaying unicode value in MFC CEdit text box
    B bhanu_8509

    I have given the information in another reply.

    C / C++ / MFC c++
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups