|
I am afraid, i am confusing you.. I said instead of
LPNMLISTVIEW pLVHdr = reinterpret_cast<LPNMLISTVIEW>(lParam);
i used
LPLVITEM pLVHdr = reinterpret_cast<LPLVITEM>(lParam);
|
|
|
|
|
But why, since LPNMLISTVIEW and LPLVITEM are two different structures. The documentaton plainly states that the lparam that accompanies the LVN_ITEMCHANGED notificaton is a pointer to a NMLISTVIEW structure, not a pointer to a LVITEM as you are trying to use.
That said, I do not know why your code "works" on Windows XP but not on Vista. I do not have the latter to test on.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I think, i am disturbing you.
Anyways Thank you very much for your time and help.
|
|
|
|
|
pidl = (LPCITEMIDLIST) ctl.GetItemData(pLVHdr->iItem);
SHGetPathFromIDList(pidl, tszBuffer);
pidl is '0x000000'. Hence tszBuffer is "".
|
|
|
|
|
As i said, GetItemData returns NULL, hence i used SendMessage() but in vain.
|
|
|
|
|
BeliefInMe wrote: This works in XP but not in Vista.
That sounds like you were relying on an internal implementation detail of the file dialog. It's no surprise that it broke in a new OS.
|
|
|
|
|
Hello all,
I have made a SDI application.My problem is when i exit this application after 2 sec i get a Don't Send error.
i have placed a AfxMessageBox in exit instance. It is working fine.
I m not getting why i m getting this problem
i have used multithreading in application.Explicitly closed all the thread before exiting and also have used CCriticalSection Lock unclok
Unlocked the protio in exit instance
but still the problem persists
Can anybody help me in this
Thanks in advance
|
|
|
|
|
The problem is with u'r closing of the Threads. Ensure, how the thread r closed.
Come online at:-
jubinc@skype
|
|
|
|
|
Did you try and debug ur code? What errors?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I think the problem is with the User thread.
U may be manipulating the User thread
shiva
|
|
|
|
|
Ths rdculs omsn of ltrs is strtng 2 gt on my nrvs.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Whats meaning of
John Simmons / outlaw programmer wrote: Ths rdculs omsn of ltrs is strtng 2 gt on my nrvs.
|
|
|
|
|
WhiteSky wrote: Whats meaning of
John Simmons / outlaw programmer wrote:
Ths rdculs omsn of ltrs is strtng 2 gt on my nrvs.
I'll take a guess:
This ridiculous omission of letters is starting to get on my nerves.
|
|
|
|
|
Thank you for your answer
|
|
|
|
|
hi all
I had created two Satellite DLLs corresponding to two resource files in same project.
Any body have an idea about how to load two satelite dlls at same time to my exe at run time
regards,
aji
|
|
|
|
|
Try this link may it'll help u
http://msdn2.microsoft.com/en-us/library/8fkteez0(VS.71).aspx
Regards,
Pankaj Sachdeva
|
|
|
|
|
CMyApp::InitInstance()
{
// one of the first things in the init code
HINSTANCE hInst = LoadLibrary(“myres.dll”);
if (hInst != NULL)
AfxSetResourceHandle(hInst);
// other initialization code would follow
.
.
.
}
This will help u loading the satellite dlls
Regards,
Pankaj Sachdeva
|
|
|
|
|
Thank you.
It seems to be useful for me
|
|
|
|
|
Hi
I Wrote a program to Communicate with a Serial Port in MFC.The problem is if i use WriteFile and ReadFile immediately i get the correct data.But if i Start a thread and use WaitCommEvent then the Program gets stuck up in WriteFile.
I hav filled the DCB structure too.
what could be the problem with WriteFile??
PS:I am not using Overlapped I/O
Any Links Would do Fine.
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
I think you have to post the relevant code.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
QuickDeveloper wrote: if i Start a thread and use WaitCommEvent then the Program gets stuck up in WriteFile.....I am not using Overlapped I/O
If you're not using overlapped I/O, you can only issue one request at any given time to the driver. If you issue another it will block waiting for the previously issued request, which is exactly what happens in your case: ::WaitCommEvent() is waiting for something to happen before returning while blocking the ::WriteFile() call.
If you're writing an application that is supposed to issue both read and write requests, you should only consider the overlapped alternative.
Have a look at an example on overlapped I/O here[^].
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Thanks Roger ...i am using Overlapped I/O and it's Working Fine.
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
I want to get a particular testsuite for execution of cppunit testcases in vc++
|
|
|
|
|
|
Hi,
I am new to vc++.
I am trying to creat file using the following code.but it is not creating the file.INVALID_HANDLE_VALUE is returned. what may be the reason for the failure.
hFile = CreateFile(m_storagePath,GENERIC_REA|ENERIC_WRITE, FILE_SHARE_READ, NULL,OPEN_ALWAYS,FILE_ATTRIBUTE_NORMAL,0);
if (hFile == INVALID_HANDLE_VALUE)
{
AfxMessageBox( "File cant be created ");
//return 0;
}
Help Ever Hurt Never
|
|
|
|