|
I would use CFileDialog to select the file, show the path in an editbox and let the user press delete.
This way the user can rethink his/her decision.
so my advice would be:browse button to select (show path in editbox)
delete button for the obvious action of deleting the selected file;)
MessageBox to confirm.
hope it helps.
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
|
|
|
|
|
here your solution->
Use this little Piece of code
CFileDialog a(TRUE);
a.DoModol();<br />
CString sr=a.GetPathName();<br />
::Unlink(sr);
-----------------------------
"I Think It will Work"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
I created a MFC dll in which I created a dialog and i placed a OCX over it.But when i domodal that dialog from a exe the dialog is not displaying but when i remove the ocx control the dialog is displaying properly.what will be the problem?
thanks,
john
|
|
|
|
|
Sounds like AfxEnableControlContainer() has not been called?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
hi,
i want to include any animated images(.gif) into richedit box. Is it possible or not.if, tell me how it can be done.
thank you.
|
|
|
|
|
I m building my own installer,
and want to install my application at client machine . where VC++ is not installed .. wt dll's r required or files required to sent with my EXE ... ,, that build was using static Link library n Release mode configuration. r they ( files/dll)differ with operating system version Win 98 / XP /2000
or any other way
thanx
|
|
|
|
|
The easiest way to find which DLLs are required by your program is to use the application Depends.exe
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
Hi
I have created three property-page(Page1,Page2 and page3)on a property sheet.Now I want to set the font to the arial 24 of static text on page1 and I want to change the background colour of static text box on page 1.
How do I write code on page1 to have arial 24 font?
rajesh
|
|
|
|
|
|
Hi,
I want to do one project based on interface between external hardware and system. for that i need one API ( system function) which will connect to the port. Through that requesting to the hardware and getting respond from it.
|
|
|
|
|
The key question is WHAT is the interface you plan to use ? COM port ? Printer port ? USB port ? PCI bus ? IrDA port ?
APIs and system functions are not the same thing. Win32 API (application programming interface) offers access to a limited set of Win32 platform functions (functions that can command the operating system).
Be more specific on the project if you want us to help. We can't help you unless we know what you wish to do
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Hi,
I isn't know what it done, but I runned sysutil from Alok and is desktop now blank, and things not work. Was this program a trojan? What is done? I way to fix what broke?
|
|
|
|
|
Based solely on the context and professionality of the article in question, I decided not to even download/run this application on my computer. Basically, it seems you have locked yourself out from your own computer by using a software incorrectly. I believe, however that it is not a virus. It's just a software that locks/disables features from your computer and you've used it incorrectly.
For an attempt to fix it, run your computer in Safe Mode, then run the Sysutil again. This time, enable ALL options, and allow access to ALL hard drives. Then reboot. If this fixes the problem, then DELETE the Sysutil program, run a virus scanner on your machine, and NEVER install or run a software that you don't know, or can't find a proper manual/details to.
All in all, all you can blame now is yourself. 99% of viruses loose out there spread because of actions taken by the users. If every people suddendly knew how to use a computer properly and what files/file extensions/web sites should be avoided, then the virus writers would have a much harder time indeed...
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Thanks for your advises on what is need to do.
Antti Keskinen wrote:
All in all, all you can blame now is yourself.
I know. But is meaning that should never be run any programs from CodeProject? When is OK to try, and when is not OK?
I wanted to seeing how is works this program, and I realized too later that is not seeming to be OK. Now, I is afraid to be trying programs.
|
|
|
|
|
hello buddy,
i see,you are facing problem using my SysUtil.
i think you have applied the hiding desktop icon restriction.
now here is solution->
1->first logon to computer with that user where restriction is applied.
2-Run sysutil again and uncheck every check boxes you see there in s/w.
3.click on apply/disapply button
4.logooff the computer.
and every thing will work fine.
thanks for using my S/W.
-----------------------------
"I Think It will Work"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
Alok the programmer wrote:
2-Run sysutil again and uncheck every check boxes you see there in s/w.
3.click on apply/disapply button
Why is unchecking? Is not I want to check the boxes that I want to apply? What is check marking for? Is select? Or is something else?
|
|
|
|
|
quzi wrote:
Why is unchecking? Is not I want to check the boxes that I want to apply? What is check marking for? Is select? Or is something else?
Here your solution,the checked boxes showing the restriction u applied on your computer using my software when you uncheck that box and click apply disapply button ,it will remove that restriction.
after that reboot your system,and you will see you desktop.
pls not : you can direclty contact me before publically insulting me abt my software,i am system programmer i thoughly researched on my s/w before posting it on CP.
-----------------------------
"I Think It will Work"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
Alok the programmer wrote:
pls not : you can direclty contact me before publically insulting me abt my software,i am system programmer i thoughly researched on my s/w before posting it on CP.
Is very sorrow that you think was insult. I asked question on what happened? Is excuse?
|
|
|
|
|
Ok i am soory,
i reacted very awkward way.the problem is that you have to ask me yuor problem before directly start critising my S/W.basically it hurt the morale of emerging Developer's like me.
ok anyway i am soory,ok tell is you computer is now ok.
and tell how you like my S/W,hope u like it
-----------------------------
"I Think It will Work"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
Alok the programmer wrote:
ok tell is you computer is now ok.
Thanks you. Now is computer working OK after doing what you said.
Alok the programmer wrote:
and tell how you like my S/W,hope u like it
Is very afraid to try software now. You is need to put warn to everyone to be of careful use. Good luck
|
|
|
|
|
quzi wrote:
Why is unchecking? Is not I want to check the boxes that I want to apply? What is check marking for? Is select? Or is something else?
Here your solution,the checked boxes showing the restriction u applied on your computer using my software when you uncheck that box and click apply disapply button ,it will remove that restriction.
after that reboot your system,and you will see you desktop.( i think you have applied desktop icon restriction uncheck that box and press apply and disapply button)
pls note : you can directly contact me before publically insulting me at forum abt my software,i am system programmer i have thoughly researched on my s/w before posting it on CP.
-----------------------------
"I Think It will Work"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
Antti Keskinen wrote:
For an attempt to fix it, run your computer in Safe Mode, then run the Sysutil again. This time, enable ALL options, and allow access to ALL hard drives. Then reboot. If this fixes the problem, then DELETE the Sysutil program, run a virus scanner on your machine, and NEVER install or run a software that you don't know, or can't find a proper manual/details to.
Don't call my application virus,that's a insult for an emerging Programmer.
do u see i have provided sourecode for my project???? do you see that.
if i want to send virus though my application to my fellow programmer i not going to tell my full identity in codeproject site.???do you seen my Profile in CP.
if user don't know how to run aplication,do u recommand that it is the virus??you insulted me.
thats very very wrong.
-----------------------------
"I Think It will Work"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
First, borrowing on my own response:
"I believe, however that it is not a virus. It's just a software that locks/disables features from your computer and you've used it incorrectly."
Next, if I have insulted you, then all I can say is that I am sorry. However, after reading your article, I became a bit suspicious, mostly because the article was poorly written, and there were many abbreviations used where normal english words were available. If this is your style in writing articles, or if your command of the English language is not so good, then it is okay, and I admit I made a pre-emptive judgement. However, what I wrote to the other user about your software and the article, they were completely valid points.
My instructions, which you have borrowed, apply just as well to every other software that an user might download or accidentally run. Most software here on Code Project is checked before it's placed available. However, articles that are placed in the Purgatory have not undergone as strict checking as those in the actual articles section. This leaves a security risk for malicious article writers. I am not saying that your article is malicious. But it resides in the Purgatory. Hence the suspicion.
Alok the programmer wrote:
Don't call my application virus,that's a insult for an emerging Programmer.
Your entire project depends heavily on an external DLL (NMPRegDll.dll). For this DLL, you have not provided any actual source code. Neither have you documented it very properly. Specifically, you have not documented any of the methods. What do they do ? How do they work ?
The article speaks about your system utility, but you have not given any background information. Why would you create this application ? How does the application work ? Through registry keys ? If not, then how ?
All these missing information pieces lead the reader to think that perhaps it would be unwise to run any sample executables or build the source code. In plain english, it just looks suspicious. It looks incomplete. It looks dangerous.
But it might not be. If the article was edited, you'd spend a few hours/days to writing it properly, using indents, topics, titles and proper code sections, then it would probably receive more attention, more feedback and more users.
I am neither insulting you or trying to push you down in any way. If your system utility is good and someone finds it useful, then that's a great thing. But for situations as the one discussed here, you should place warnings and detailed usage instructions plus possible catastrophe-case instructions to your articles, because accidental misuse (the greatest harm of software) of your program can seemfully cause serious damage to a computer system.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
I agree 100%.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
thanks for this wonderfull response.i apolize to u.
yeah i will take time to describe whole article again and provide sourcecode of NMPRegDll.
thanks for taking valuable time taken by u to explain me every thing about how to write article.
thanks again.Let's be Friend
-----------------------------
"I Think It will Work"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|