By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,057 Members | 1,363 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,057 IT Pros & Developers. It's quick & easy.

How i can type code in Dll to be called when register it

kZero
P: 23
I want make dll for example when i type in cmd
regsvr32 Dllfile.dll

the dllfile.dll show message box or do any code i will type

i attemped to put the code in Class_Initialize section but it dosnt work

Please Any one help me quickly
Nov 28 '06 #1
Share this Question
Share on Google+
9 Replies


kZero
P: 23
Please Help
Nov 28 '06 #2

sashi
Expert 100+
P: 1,754
I want make dll for example when i type in cmd
regsvr32 Dllfile.dll

the dllfile.dll show message box or do any code i will type

i attemped to put the code in Class_Initialize section but it dosnt work

Please Any one help me quickly
Hi there,

Could pls post your code segment on your next post as it would ease in providing solution. Good luck & Take care.
Nov 28 '06 #3

kZero
P: 23
thx for your reply


Function DLLMain()
MsgBox "Function Excuted"
End Function

i want when register the dll ( regsvr32 ) it excute the Function

i can do it with alot of anticrack programs but i wanna make it in the dll

this is example for what i need but it injected with anti-crack program to show message box

Download the Dll
Nov 28 '06 #4

sashi
Expert 100+
P: 1,754
thx for your reply


Function DLLMain()
MsgBox "Function Excuted"
End Function

i want when register the dll ( regsvr32 ) it excute the Function

i can do it with alot of anticrack programs but i wanna make it in the dll

this is example for what i need but it injected with anti-crack program to show message box

Download the Dll
Hi there,

I asked for code segment and not pre-compiled binary. There is nothing much can be done with pre-compiled binary. I am seriously not going to take the risk by registering this <.dll> . Take care.
Nov 28 '06 #5

kZero
P: 23
Hi there,

I asked for code segment and not pre-compiled binary. There is nothing much can be done with pre-compiled binary. I am seriously not going to take the risk by registering this <.dll> . Take care.

thx for your caring about my problem

i dunno any code segment u are talking about

all i want

normal dll file just when u going to register this dll by regsvr32 the dll show message box " Are you sure u want to register "
if vbyes then register
if vbno then dont register

there is alot of anti-crack programs do it by injection but i want do it only with VB6

Please if u can help me
Nov 28 '06 #6

sashi
Expert 100+
P: 1,754
thx for your caring about my problem

i dunno any code segment u are talking about

all i want

normal dll file just when u going to register this dll by regsvr32 the dll show message box " Are you sure u want to register "
if vbyes then register
if vbno then dont register

there is alot of anti-crack programs do it by injection but i want do it only with VB6

Please if u can help me
Hi there,

Correct me if at all am wrong, do you want someone from TheScripts to write the .dll for you?
Nov 29 '06 #7

kZero
P: 23
Hi there,

Correct me if at all am wrong, do you want someone from TheScripts to write the .dll for you?

i typed HOW bro iam not begginer to ask anyone to do it for me i know its not easy but really i need it if it possible
Nov 29 '06 #8

sashi
Expert 100+
P: 1,754
i typed HOW bro iam not begginer to ask anyone to do it for me i know its not easy but really i need it if it possible
Hi there,

In case you didn't understand the message in my earlier post, the answer is "NO", hope you understand better now. Take care.
Nov 29 '06 #9

link
P: 71
I haven't heard about dll to be done like that...is this the only solution for your anti-crack program?
Nov 30 '06 #10

Post your reply

Sign in to post your reply or Sign up for a free account.