|
|
|
If you a priori know where the DLL should be then your strategy might be good. On the other hand if you need to follow the same procedure the OS does for searching the DLL then you'll meet the same hanging conditions, I suppose.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
It's probably more important to investigate why the program hangs. LoadLibrary() should merely search through all paths in the PATH variable to find the named DLL. If it hangs during that process then there is something wrong with your system.
I must get a clever new signature for 2011.
|
|
|
|
|
Hi, the problem occurs when the user do sleep/resume test with the computer. We try to load the dll with LoadLibrary and a few milliseconds after the LoadLibrary call the user puts the system into sleep. Maybe thats why I got the problem?
|
|
|
|
|
This is a joke, right? You really expect your program to continue running when the OS enters sleep mode?
I must get a clever new signature for 2011.
|
|
|
|
|
Of cours not, are you stupid or??? It very difficult to know when the user puts the system into sleep. And I don't see the meaning of your comment, you have no idea how big our application is and how it work.
The application stops working ~1/100 sleep resume tests.
Thanks for your answer!
|
|
|
|
|
marca292 wrote: are you stupid or?
No, how about you?
marca292 wrote: ou have no idea how big our application is and how it work.
I did not say I did?
marca292 wrote: The application stops working ~1/100 sleep resume tests.
I have no idea what this is supposed to mean.
I must get a clever new signature for 2011.
|
|
|
|
|
i am trying to hide the file or folder in win32 is any a=way to hide the it any API or any idea ...
thanking you all...
|
|
|
|
|
We know your information from your website and learn about your company are selling Jcop OS card or Java chip card.
We are OPRFID Technologies. Our company produce RFID products, include lots of Jcop OS and Java card products.
If you interested in our Jcop OS/Java card, plesase kindly check our website:
http://www.oprfid.com/java-card%20and%20jcop-card.html.
Hope we can cooperate with your company at Jacop OS/Java card !
If you have any question ,pls feel free to contact us.
Best Regards
Vera.
OPRFID Technologies., LTD
2-603 Room, Hong Feng Jia Yuan , 270# BeiMo Street ChengXiang Putian City Fujian, P.R, China.
Tel: (0086)594 2790031
Fax: (0086)594 2790185
Email: oprfid.sales@oprfid.com
|
|
|
|
|
|
i use SetFileAttributes() but its showing in blinking form i am trying to totally invisible the folder
|
|
|
|
|
sarfaraznawaz wrote: use SetFileAttributes() but its showing in blinking form
Sorry, I don't understand what you mean by "blinking form".
I must get a clever new signature for 2011.
|
|
|
|
|
its shows like system file trying to hide totally
|
|
|
|
|
actually i am tyring to to similar as when we click the check box of don't show the hidden file
|
|
|
|
|
So where are you trying to show or hide it? In your own program, in a third party program, in Windows Explorer? Your questions (and answers) are not very clear.
I must get a clever new signature for 2011.
|
|
|
|
|
sorry...........
trying to hide the folder existing folder in my own program
|
|
|
|
|
sarfaraznawaz wrote: trying to hide the folder existing folder in my own program
Yet another meaningless comment. If you have a problem in your code then try posting a snippet of the code, explain what you expect it to do and what results you see. Vague statements like the above tell us nothing.
I must get a clever new signature for 2011.
|
|
|
|
|
if(!SetFileAttributes(_T("C:\\Documents and Settings\\Sarfaraz\\Desktop\\hiddenhiddenhiddenhiddenhiddenhidden"), FILE_ATTRIBUTE_HIDDEN))
{
MessageBox(_T("Fail to find the folder "),_T(" "),MB_OK | MB_ICONERROR);
return -1;
}
the FILE_ATTRIBUTE_HIDDEN only hide but still we see it i want make the folder invisible from the user is there any way to do it.
thanking you ...
|
|
|
|
|
sarfaraznawaz wrote: the FILE_ATTRIBUTE_HIDDEN only hide but still we see it i want make the folder invisible from the user
I still have not the remotest idea what this means. Invisible where, how is this file/folder visible, in what application ... ?
I must get a clever new signature for 2011.
|
|
|
|
|
I suspect that the original poster wishes prevent the file from showing up in list of files in a directory.
You can set the FILE_ATTRIBUTE_HIDDEN, which is the accepted method.
However, if someone uses Windows Explorer with the "Show Hidden files, folders, and drives" open turned on (non-default setting), then hidden files are shown.
The original poster is saying "Screw you end user, I don't care that you want to see hidden files, I want to keep my hidden files really hidden!"
In that case, use the combination of FILE_ATTRIBUTE_HIDDEN along with FILE_ATTRIBUTE_SYSTEM to hide the flie even more so.
Of course, one has to wonder why an application must go to such lengths to prevent determined end users from seeing what files are on their file system.
Charles Oppermann
|
|
|
|
|
Which is broadly what I told him/her. However the OP has still not explained clearly what the problem is. Just saying "the file is visible" tells us nothing; a common problem on these forums.
|
|
|
|
|
trying to hide in windows explorer .
just as the third party software doing such as folder lock and hide folder 2009 ..
when we click hide after selecting the file or the folder it will not visible to the user ...
i tried with the CLSID which turn into special folder like recycle bin or control panel.by creating the batch file ....
|
|
|
|
|
|
download.cnet.com/Folder-Lock/3000-2092_4-10063343.html
check it this utility which does not make any system file just make invisible in the explorer from the user i dont know how he is doing once we hide the folder again it does not allow to create the same name of another folder please help me out from this ..............
i am not looking for the
configure the items Windows Explorer suppresses from the list from the Folder Options control panel. You can even choose to show Hidden items and “protected operating system files” (known internally as “Super-Hidden,” as if they had a giant H printed on their shirts).
i am already done this hiding the folder by changing its attribute like (+H,+S) by cmd prompt and by setting the properties of it ...
totally am not looking for this trying to make folder invisible from the user ....
please reply fast .....
thanking you sarfaraz
|
|
|
|