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.
bhanu_8509
Posts
-
Problem in windows7 -
Problem in windows7Hello 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.
-
User permission problem with MFCIf 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.
-
User permission problem with MFCDear 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
-
Displaying cyrillic alphabetHello, 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
-
CEdit problem in displaying CR and LF [modified]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); -
CEdit problem in displaying CR and LF [modified]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"
-
CEdit problem in displaying CR and LF [modified]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 SetWindowTextWBut, 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
-
Converting ANSI to UNICODEDear 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.
-
Unicode againDear 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
-
Modeless dialog hangs upDear 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.
-
Displaying unicode value in MFC CEdit text boxThe CEdit control displays only ??. Please advice some other way.
wchar_t mySymbols[]={9664, 9824, 0000};
CString symbolText(mySymbols);
Edit.SetWindowText(symbolText); -
Modeless dialog hangs upDear 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.
-
CreateImageEx problem with CListCtrl drag and dropPlease anybody help me!!!
-
CreateImageEx problem with CListCtrl drag and dropDear 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();
} -
Combo box in CListCtrlI cannot find useful information for the comboboxes to be added in a row. The implementation is given for a column. Please help me.
-
Combo box in CListCtrlDear 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
-
Balloon tip in Tray IconDear 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.
-
Displaying unicode value in MFC CEdit text boxI 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.
-
Displaying unicode value in MFC CEdit text boxI have given the information in another reply.