Password on the code prevents the code from running
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Password on the code prevents the code from running

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
mgrigoriev
Guest





Posted: Fri Jan 07, 2005 1:04 am    Post subject: Password on the code prevents the code from running Reply with quote

Hi,

I have a code that programmatically puts some stuff into "This Drawing" with the help of VBEModel. The code doesn't work when I put a password on my code. What can I do about it? Once I type in the password the code works fine.

Thanks,
Mike

Back to top
MP
Guest





Posted: Fri Jan 07, 2005 4:12 am    Post subject: Re: Password on the code prevents the code from running Reply with quote

mgrigoriev

Unless I'm misunderstanding something (which is likely), I thought the VBE
model wasn't primarily for putting stuff into autocad programatically, it's
for writing/editing code programatically.
Therefore whatever you're actually doing - if you're actually using vbe -
maybe not having the password in prevents the modules you may be trying to
edit to be edited.
As far as I know a vba password only prevents the code from being viewed in
the vbaide. It doesn't in my limited experience prevent the code from
running.

Is that what you're doing? Writing code on the fly via other code using the
vbe model?

If you're just adding drawing elements to autocad I don't know where the vbe
model comes into play.
Like I said, I'm probably misunderstanding something. So sorry if this
doesn't make sense.

Perhaps a sample of your code would make things more clear.

Mark

"mgrigoriev" <nospam@address.withheld> wrote in message
news:26102600.1105041891011.JavaMail.jive@jiveforum2.autodesk.com...
Quote:
Hi,

I have a code that programmatically puts some stuff into "This Drawing"
with the help of VBEModel. The code doesn't work when I put a password on my

code. What can I do about it? Once I type in the password the code works
fine.
Quote:

Thanks,
Mike
Back to top
Laurie Comerford
Guest





Posted: Fri Jan 07, 2005 5:08 am    Post subject: Re: Password on the code prevents the code from running Reply with quote

Hi,

Did the program writer create a function to request a password each time you
run the program?

Then is the program exiting if you don't provide the password?

This can be a way of creating "Shareware". The incentive to purchase is
that you can get a permanent password.

As MP noted, having a password to hide the code from viewing/editing has no
effect on whether the program will run.

--


Laurie Comerford
CADApps
www.cadapps.com.au

"mgrigoriev" <nospam@address.withheld> wrote in message
news:26102600.1105041891011.JavaMail.jive@jiveforum2.autodesk.com...
Quote:
Hi,

I have a code that programmatically puts some stuff into "This Drawing"
with the help of VBEModel. The code doesn't work when I put a password on my

code. What can I do about it? Once I type in the password the code works
fine.
Quote:

Thanks,
Mike


Back to top
Nathan Taylor
Guest





Posted: Fri Jan 07, 2005 5:55 am    Post subject: Re: Password on the code prevents the code from running Reply with quote

I understand what your problem is and don't think there is a solution. What is the purpose of your program adding code into ThisDrawing object as you may be able to do something else to meet this purpose.
Regards - Nathan
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Contact Us
Powered by phpBB