Click here to Skip to main content
16,006,440 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to delete exe/dll file from itself? Pin
Iftikhar Ali2-Jan-06 19:21
Iftikhar Ali2-Jan-06 19:21 
AnswerRe: How to delete exe/dll file from itself? Pin
Steve Pullan30-Dec-05 23:56
Steve Pullan30-Dec-05 23:56 
GeneralRe: How to delete exe/dll file from itself? Pin
Iftikhar Ali2-Jan-06 3:08
Iftikhar Ali2-Jan-06 3:08 
GeneralRe: How to delete exe/dll file from itself? Pin
Steve Pullan2-Jan-06 3:37
Steve Pullan2-Jan-06 3:37 
GeneralRe: How to delete exe/dll file from itself? Pin
Iftikhar Ali2-Jan-06 3:44
Iftikhar Ali2-Jan-06 3:44 
GeneralRe: How to delete exe/dll file from itself? Pin
Steve Pullan2-Jan-06 11:29
Steve Pullan2-Jan-06 11:29 
GeneralRe: How to delete exe/dll file from itself? Pin
Iftikhar Ali2-Jan-06 19:16
Iftikhar Ali2-Jan-06 19:16 
AnswerRe: How to delete exe/dll file from itself? Pin
Dave Kreskowiak31-Dec-05 5:03
mveDave Kreskowiak31-Dec-05 5:03 
You can't delete the .DLL while it's loaded into a process, period. There's no way around this. If your code was it's own .EXE, that's a different story, but a .DLL has no chance of deleting itself.

Since you already have the mechanism to determine if the user is authorized, it's simple. On each of your method calls, or just the very important ones, run your check or check a flag that your authorization code sets, and return nothing if that check fails.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: How to delete exe/dll file from itself? Pin
AndrewPeters31-Dec-05 15:27
AndrewPeters31-Dec-05 15:27 
GeneralRe: How to delete exe/dll file from itself? Pin
Dave Kreskowiak1-Jan-06 6:19
mveDave Kreskowiak1-Jan-06 6:19 
GeneralRe: How to delete exe/dll file from itself? Pin
AndrewPeters1-Jan-06 8:32
AndrewPeters1-Jan-06 8:32 
GeneralRe: How to delete exe/dll file from itself? Pin
Dave Kreskowiak1-Jan-06 11:37
mveDave Kreskowiak1-Jan-06 11:37 
GeneralRe: How to delete exe/dll file from itself? Pin
AndrewPeters1-Jan-06 14:35
AndrewPeters1-Jan-06 14:35 
GeneralRe: How to delete exe/dll file from itself? Pin
Iftikhar Ali2-Jan-06 3:27
Iftikhar Ali2-Jan-06 3:27 
GeneralRe: How to delete exe/dll file from itself? Pin
Iftikhar Ali2-Jan-06 3:22
Iftikhar Ali2-Jan-06 3:22 
GeneralRe: How to delete exe/dll file from itself? Pin
Iftikhar Ali2-Jan-06 3:16
Iftikhar Ali2-Jan-06 3:16 
GeneralRe: How to delete exe/dll file from itself? Pin
Dave Kreskowiak2-Jan-06 7:08
mveDave Kreskowiak2-Jan-06 7:08 
GeneralRe: How to delete exe/dll file from itself? Pin
Iftikhar Ali2-Jan-06 19:06
Iftikhar Ali2-Jan-06 19:06 
GeneralRe: How to delete exe/dll file from itself? Pin
Steve Pullan2-Jan-06 19:40
Steve Pullan2-Jan-06 19:40 
GeneralRe: How to delete exe/dll file from itself? Pin
Iftikhar Ali4-Jan-06 5:09
Iftikhar Ali4-Jan-06 5:09 
GeneralRe: How to delete exe/dll file from itself? Pin
Iftikhar Ali2-Jan-06 3:13
Iftikhar Ali2-Jan-06 3:13 
GeneralRe: How to delete exe/dll file from itself? Pin
Iftikhar Ali2-Jan-06 3:10
Iftikhar Ali2-Jan-06 3:10 
GeneralRe: How to delete exe/dll file from itself? Pin
Dave Kreskowiak2-Jan-06 7:07
mveDave Kreskowiak2-Jan-06 7:07 
GeneralRe: How to delete exe/dll file from itself? Pin
Iftikhar Ali2-Jan-06 19:03
Iftikhar Ali2-Jan-06 19:03 
Questionhow do i program this array giving xxx value Pin
nickhere30-Dec-05 15:38
nickhere30-Dec-05 15:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.