|
The error message indicates a sharing violation.
If no other processes are using the file then make sure you haven't opened it twice without
appropriate share flags.
|
|
|
|
|
suppose i delete or hide a icon from system tray, the icon gets removed but there is a blank space at that place, how can i refesh the tray or when i delet an icon how the tray should clean that blank space,
any idea
|
|
|
|
|
|
Are you using Shell_NotifyIcon(NIM_DELETE... to remove the icon?
|
|
|
|
|
no i am using SendMessage with TB_delete ( soemthing i dont remember now), i dont want to use sheelnotify cas i am deleting some other app icon,
|
|
|
|
|
I don't know what you'd do then. The tray icons are tied to a HWND in the app they are associated
with and that app also receives messages from the shell related to the icon.
Doesn't the app have a setting to hide the tray icon?
Good luck!
|
|
|
|
|
hi mark,
my doubt is , i am making a application which can hide or delet other icon present in system tray or tray noification area, when i delete an icon from there, the icon gets removed but there is blank space or empty space is there, how to refesh the tray or what i can do so tht when i remove or hide an icon, the icon as well as the empty space will also be removed,
if you want the code i can post it here
|
|
|
|
|
I have no ides. The icons belong to other apps so you may get them to disappear but that
doesn't mean they've been removed.
|
|
|
|
|
hi guys,
i got the idea, if anyone needs help let me know i am willing to help my best.
|
|
|
|
|
Hi,
How can I remove the project list on the Startup page?
Thanks,
|
|
|
|
|
Is it possible to open and access/process information in cemapi.vol? or is there any other way to read sms that is already received in phone?
|
|
|
|
|
KongHL wrote: Is it possible to open and access/process information in cemapi.vol? or is there any other way to read sms that is already received in phone?
i am not sure, but i get the feeling that u have asked the question in wrong forum.
vijay.
|
|
|
|
|
Hi,
I want to develop a multi-language application, so I want to use dlls that containg a string table to support multiple locales.
Anybody knows how to export a string table from a DLL??
Thanks
Mohammad
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
|
There's no "exporting" involved (that term doesn't even apply in this situation). You load the DLL with LoadLibrary() and use the returned HINSTANCE to load resources from it.
|
|
|
|
|
void CNoteDlg::OnSalveazaCr()
{
CWaitCursor wait; // Display a wait cursor
for(int i=0; i {
if(m_list.GetCheck(i))
{
CString sTemp,sTemp1,sTemp2,sTip1,sTip2,sTest1,sAnul1,
sLuna,sLuna1,sZiua1,sData;
CMainSpace *pMainSpace = new CMainSpace;
pMainSpace->m_sTextDatabase.Empty();
pMainSpace->m_sTextDatabase1.Empty();
pMainSpace->m_sTextDatabase2.Empty();
pMainSpace->m_sTextDatabase3.Empty();
m_cod.GetWindowText(pMainSpace->m_sTextDatabase);
pMainSpace->m_sTextDatabase.TrimLeft();
pMainSpace->m_sTextDatabase.TrimRight();
m_nrNota.GetWindowText(pMainSpace->m_sTextDatabase1);
pMainSpace->m_sTextDatabase.TrimLeft();
pMainSpace->m_sTextDatabase.TrimRight();
m_datanota.GetWindowText(sLuna1);
m_datanota3.GetWindowText(sZiua1);
m_datanota1.GetWindowText(sAnul1);
pMainSpace->m_sTextDatabase3 = m_list.GetItemText(i,22);
pMainSpace->m_sTextDatabase2 = sLuna1 + "/" + sZiua1 + "/" + sAnul1;
CDatabase_Note pBun;
pBun.m_strFilter="note1="+ pMainSpace->m_sTextDatabase;
pBun.m_strFilter="note2="+ pMainSpace->m_sTextDatabase1;
pBun.m_strFilter="note3="+ pMainSpace->m_sTextDatabase3;
pBun.Open();
pBun.Edit();
while (!pBun.IsEOF())
{
int nIndexA = pBun.m_note1.Find(pMainSpace->m_sTextDatabase);
int nIndexB = pBun.m_note2.Find(pMainSpace->m_sTextDatabase1);
if ((nIndexA != -1) & (nIndexB != -1))
{
pBun.Edit();
pMainSpace->m_sTextDatabase3 = m_list.GetItemText(i,22);
pBun.m_note2 = pMainSpace->m_sTextDatabase3;
pBun.Update();
pBun.Close();
delete pMainSpace;
break;
}
}
m_list.DeleteItem(i);
i--;
}
}
}
this is my code ... but somethig is wrong because it say SQL: Statement too long ! what can i do ?!
please help me !
i will wait your answer !
because i dont have one !
-- modified at 8:32 Monday 18th December, 2006
-- modified at 8:33 Monday 18th December, 2006
Bravoone
|
|
|
|
|
Hi friend!
Instead of putting title as please help me, please try to keep related right title for your question. Then you could get the answer as soon. Please never mind as I am pointing out you. Just I like to tell you as a friend in code project.
and please try to put what is your expectation (Expected output) from this code try to write that. Please try to keep your code between <pre> your code... ... </pre> tags.
With Thanks & Regards.
Nice talking to you.
If you judge people, you have no time to love them. -- Mother Teresa
|
|
|
|
|
See here.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hello Friend
I want some help regarding Multi-lingualapplication.
Plz help me out.
I can create and set Keyboard layout for diff diff lanuages but how to get a text and how strlen and such operation perform on them????
thanking you!!!
|
|
|
|
|
Hello,
i have a problem with this funktion to read a key from the registry!
This confusing me, becouse this function fails only in release version, newer in debug version!!
Does any one have an idea for me why that occurs??
I like to read this regkey and schow them i CStatic field on my dialog, thats all!
regards
break;
|
|
|
|
|
break; wrote: becouse this function fails only in release version
What type of failure is this? Can you show code ?
|
|
|
|
|
Hello prasad,
they are no errors to shown, nothing, i say, in debug version works, not in release, ok here is my code:
<code>
TCHAR acData[10000];
DWORD type = 0;
DWORD SizeOfBuffer;
if (ERROR_SUCCESS != RegQueryValueEx(hKey, csValueName, NULL, &type, (PUCHAR)acData, &SizeOfBuffer))
{
RegCloseKey(hKey);
AfxMessageBox(L"Error reading registry!");
return ;
}
modify:
i change that code to:
<code>
TCHAR acData[10000];
unsigned char acChar[10000];
DWORD type = 0;
DWORD SizeOfBuffer;
if (ERROR_SUCCESS != RegQueryValueEx(hKey, csValueName, NULL, &type, acChar, &SizeOfBuffer))
{
RegCloseKey(hKey);
AfxMessageBox(L"Error reading registry!");
return ;
}
wcscpy(acData, ( const TCHAR*) acChar);
and now i have that keyvalue from the registry...
I dont know why that func dont work with TCHAR array, or how to call this func with an TCHAR array?
regards
break;
-- modified at 7:11 Monday 18th December, 2006
|
|
|
|
|
lpType of RegQueryValueEx expects LPBYTE , because its value is determined based on type of registry value. So always use same value.
|
|
|
|
|
hello,
thank you very much, i change it to LPBYTE!
with best regards
break;
|
|
|
|
|
The most likely cause is that you failed to initialize your SizeOfBuffer before calling RegQueryValueEx. In debug, that value is probably initialized to something like 0xcccccccc, but in release, since it's on the stack, it's probably 0.
The last parameter to RegQueryValueEx is an in/out parameter and tells the function how big your buffer (acChar) is. In this case, you should initialize it to 10000 since that's the size of your buffer.
Hope that helps.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|