|
Nibu babu thomas wrote: The moment you move your cursor over a file( or a pdf file not sure ) the file dialog disappears
Hi Nibu thomas,
Yes you are correct.
The problem is happening only when the File dialog shows the location "desktop" and the mouse cursor is on top of any file.
If I uncheck Folder Options --> View --> Show pop-up description
for folder and desktop items it is not happening. The problem seems related
to tool tip for files in desktop.
Thank you very much for your great help.
Best Regards,
Suman
|
|
|
|
|
rp_suman wrote: The problem is happening only when the File dialog shows the location "desktop" and the mouse cursor is on top of any file.
Exactly.
If you unregister pdfshell.dll then it works fine. BTW I suggested newing of CFileDialog , does that help.
|
|
|
|
|
I have tried newing but that did not fix the problem. My system have Japanese OS. Can we unregister pdfshell.dll through program? If we do so, what will be the effect in end user system?
Thanks for your great help!!
Best Regards,
Suman
|
|
|
|
|
rp_suman wrote: Can we unregister pdfshell.dll through program? If we do so, what will be the effect in end user system?
End users might or might not have pdfshell. So disabling it on your machine is of no good. So you will have to find a workaround. I don't think it's due to Japaneese OS.
|
|
|
|
|
OK. I hope there will be some workaround.
Thanks for your great help.
Best Regards,
Suman
|
|
|
|
|
Hi all:
I just did not find description about when the MapViewOfFile is called, how's the file on disk is updated, It seems to be updated periodically by OS, beside to do it explicitly with FlushViewOfFile. But I'm not sure about it.
|
|
|
|
|
The web server reported the following error when attempting to create or open the web projectlocated at the following URL:'http://localhost/Webapplication1'.'HTTP/1.1 500 Internal Server Error'.
I am gettinng the above error in asp.net while running the web application.How to rectify this?.. can anyone help me?
regards,
C.Sridevi
|
|
|
|
|
csridevi wrote: in asp.net
Does it have anything to do with C++ ? If no, choose the appropriate forum.
|
|
|
|
|
Hi all,
What function does one use again to get all the information about a file.
Date created, Date modified and so on.
Many Thanks
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
Programm3r wrote: What function does one use again to get all the information about a file.
Date created, Date modified and so on.
GetFileTime
Here is a sample from MSDN...
BOOL GetLastWriteTime(HANDLE hFile, LPSTR lpszString)
{
FILETIME ftCreate, ftAccess, ftWrite, ftLocal;
SYSTEMTIME stCreate;
if (!GetFileTime(hFile, &ftCreate, &ftAccess, &ftWrite))
return FALSE;
if (!FileTimeToLocalFileTime(&ftWrite, &ftLocal))
return FALSE;
FileTimeToSystemTime(&ftLocal, &stCreate);
wsprintf(lpszString, "%02d/%02d/%d %02d:%02d",
stCreate.wDay, stCreate.wMonth, stCreate.wYear,
stCreate.wHour, stCreate.wMinute);
return TRUE;
}
|
|
|
|
|
|
Programm3r wrote: Thanks for the quick info
You are welcome, if you can use MFC then also try CFile::GetStatus , it's a static function.
|
|
|
|
|
|
And also see WIN32_FIND_DATA structure it gives you more detaily of file or files
|
|
|
|
|
|
|
GetFileInformationByHandle
|
|
|
|
|
|
I have created a single document interface application .I have provided an option in the menu button .if the button is clicked i am creating modelless dialog box.If i try to move the dialog the view flickers . Does any one know how to avoid flickering in the view.
thanks,
Ram
|
|
|
|
|
hi...
The view has flickered means,you havn't created the modeless dialog box.
To avoid that flickering you need to call thread function. you create one thread class (base class is CWINTHREAD) in that class write DO modal function for calling dialog box... and then ONbuttonclickevent() you call that thread function...
thats all very simple!!!!!!
|
|
|
|
|
If the view is flickering when you move the dialog, it is probably just being slow to redraw, Does the same thing happen if you resize the view?
If so, then you want to look for an article here on CodeProject. - http://www.codeproject.com/gdi/flickerfree.asp[^].
I use this in pretty much any non-trivial drawing code I have.
Iain.
|
|
|
|
|
when i resize it was flickering , so for that i have changed the onEraseBackground() to return true .then when i resize there was no flickering after that .But when i move the modelless dialog box the view still flickers .I have tried the way you have sent,still it didnot solve the problem . Do you have any other solution how to correct this . If you have please help me in this issue
thanks,
Ram
-- modified at 0:58 Tuesday 12th June, 2007
|
|
|
|
|
Hi.
I am calling a function from a third party DLL which takes 4 Parameter as a LPSTR.
These 4 parameters I have in CString format.
So I am using following code to convert CString to LPSTR.
CString strServer = “xyz.com”
LPSTR server = strServer.GetBuffer(strServer.GetLength());
strServer.ReleaseBuffer();
long lRetVal = ThirdPartyDLLFun(server,…….);
When I call that 3rd party DLL function in debug mode I get lRetVal = 0 as a return value.
But with same inputs the return value if something else in Release mode.
What could be the reason?
Thanks
Sameer Thakur
|
|
|
|
|
the ReleaseBuffer() call should you make AFTER the dll function.
You shuold also check the return value of the dll function.
Greetings from Germany
|
|
|
|
|
Hi,
I am new to this site.
Help me, I want to convert multiple jpeg file to single swf file in my VC++/MFC project. Can anyone give me idea or source code for this?
Thanks in Advance
|
|
|
|