| Author |
Message |
giggio
Guest
|
Posted:
Fri Mar 25, 2005 9:53 pm Post subject:
Autocad's Version |
|
|
Help me...
I have a vb6's application that use "autocad 202 lybrary"
If customers have Autocad 2004 I must change library from references by VB6... then i must compile the project and change the file .exe.....
is there a way in order to avoid it?
Thanks!!!
|
|
| Back to top |
|
 |
Terry W. Dotson
Guest
|
Posted:
Fri Mar 25, 2005 10:12 pm Post subject:
Re: Autocad's Version |
|
|
giggio wrote:
| Quote: | is there a way in order to avoid it?
|
Don't early bind, remove the reference and dim acadapp as object.
Terry |
|
| Back to top |
|
 |
Mike Tuersley
Guest
|
Posted:
Sat Mar 26, 2005 10:02 am Post subject:
Re: Autocad's Version |
|
|
| Quote: | Don't early bind, remove the reference and dim acadapp as object.
Anything specifically declared as an AutoCAD object needs to be an object - |
AcadLine, AcadCircle, etc.
Terry knows that, I'm just "fine" tuning the response
-- Mike
___________________________
Mike Tuersley
___________________________
the trick is to realize that there is no spoon...
|
|
| Back to top |
|
 |
James Allen
Guest
|
Posted:
Sat Mar 26, 2005 7:33 pm Post subject:
Re: Autocad's Version |
|
|
Hi Terry and Mike,
I've been wondering about this as I'm relatively new to vba, but basically
aware of early vs. late binding. I've seen people explain that you get
performance benefits with early binding. This makes sense, but is the
difference significant? And is the difference only in load time, or run
time as well?
Thank you,
--
James Allen, EIT
Malicoat-Winslow Engineers, P.C.
Columbia, MO
"Mike Tuersley" <mtuersley_NOT_@rand.com> wrote in message
news:vr407vv7h27.m8urfh902hx6.dlg@40tude.net...
| Quote: | Don't early bind, remove the reference and dim acadapp as object.
Anything specifically declared as an AutoCAD object needs to be an
object -
AcadLine, AcadCircle, etc.
Terry knows that, I'm just "fine" tuning the response
-- Mike
___________________________
Mike Tuersley
___________________________
the trick is to realize that there is no spoon... |
|
|
| Back to top |
|
 |
Mike Tuersley
Guest
|
Posted:
Sat Mar 26, 2005 7:47 pm Post subject:
Re: Autocad's Version |
|
|
You greased it good to me, Bob =)
James, you typically do not use late binding with vba, though. It is used
with non-hosted languages - vb, c#, etc.
-- Mike
___________________________
Mike Tuersley
___________________________
the trick is to realize that there is no spoon... |
|
| Back to top |
|
 |
James Allen
Guest
|
Posted:
Sun Mar 27, 2005 3:31 am Post subject:
Re: Autocad's Version |
|
|
Thank you both, Bob and Mike.
Mike, would vba also be considered non-hosted when it is accessing an
external application (like accessing Excel from AutoCAD)? My work in vba so
far is almost exclusively early bound. But I wished I had used late binding
when we upgraded versions of Excel and I had to go through and update
references to the new library. I think maybe that was when I became aware
of the concept. But I've been branching out a little more lately and
wondered if I should be using more late binding when controlling other apps
from acad. I've also wondered about the merits of designing and debugging
code with early binding and then converting it to late binding for
production code to avoid that kind of upgrade issue.
Thanks to both of you for the extra info.
James
"Mike Tuersley" <mtuersley_NOT_@rand.com> wrote in message
news:1sop8j8hkx07c$.1u3wmdsb6za34.dlg@40tude.net...
| Quote: | You greased it good to me, Bob =)
James, you typically do not use late binding with vba, though. It is used
with non-hosted languages - vb, c#, etc.
-- Mike
___________________________
Mike Tuersley
___________________________
the trick is to realize that there is no spoon... |
|
|
| Back to top |
|
 |
Mike Tuersley
Guest
|
Posted:
Sun Mar 27, 2005 9:54 am Post subject:
Re: Autocad's Version |
|
|
| Quote: | Mike, would vba also be considered non-hosted when it is accessing an
external application (like accessing Excel from AutoCAD)?
|
Yes, James, that assumption is correct. I've been writing stand alone for
so long, I forgot about someone calling from another app like excel or
access
-- Mike
___________________________
Mike Tuersley
___________________________
the trick is to realize that there is no spoon... |
|
| Back to top |
|
 |
James Allen
Guest
|
Posted:
Sun Mar 27, 2005 7:54 pm Post subject:
Re: Autocad's Version |
|
|
Thanks again Mike.
James
"Mike Tuersley" <mtuersley_NOT_@rand.com> wrote in message
news:1pfdf9fyz15as.1ahkgo0h3u66j.dlg@40tude.net...
| Quote: | Mike, would vba also be considered non-hosted when it is accessing an
external application (like accessing Excel from AutoCAD)?
Yes, James, that assumption is correct. I've been writing stand alone for
so long, I forgot about someone calling from another app like excel or
access
-- Mike
___________________________
Mike Tuersley
___________________________
the trick is to realize that there is no spoon... |
|
|
| Back to top |
|
 |
Joe Sutphin
Guest
|
Posted:
Mon Mar 28, 2005 2:27 am Post subject:
Re: Autocad's Version |
|
|
There is no point late binding when using VBA.
Joe
--
"James Allen" <JamesA~AA~mwengrs~DD~com> wrote in message
news:424555fc_3@newsprd01...
| Quote: | Hi Terry and Mike,
I've been wondering about this as I'm relatively new to vba, but basically
aware of early vs. late binding. I've seen people explain that you get
performance benefits with early binding. This makes sense, but is the
difference significant? And is the difference only in load time, or run
time as well?
Thank you,
--
James Allen, EIT
Malicoat-Winslow Engineers, P.C.
Columbia, MO
"Mike Tuersley" <mtuersley_NOT_@rand.com> wrote in message
news:vr407vv7h27.m8urfh902hx6.dlg@40tude.net...
Don't early bind, remove the reference and dim acadapp as object.
Anything specifically declared as an AutoCAD object needs to be an
object -
AcadLine, AcadCircle, etc.
Terry knows that, I'm just "fine" tuning the response
-- Mike
___________________________
Mike Tuersley
___________________________
the trick is to realize that there is no spoon...
|
|
|
| Back to top |
|
 |
rwilkins
Guest
|
Posted:
Wed Mar 30, 2005 3:35 am Post subject:
Re: Autocad's Version |
|
|
As Joe stated,
There is no need to late bind in VBA. That is as long as when you save the VBA .dvb file, it is saved in the earliest version of AutoCAD that will be using it and with references to the earliest type libraries you might need to use.
For example:
1. The .dvb file will be used in 2002, 2004, 2005, and 2006.
2. You will be using Excel 2000, 2002(XP), and 2003.
You will want to write and save the .dvb file while working in AutoCAD 2002. If you open the VBA file in 2006 and save, then someone using 2002 tries to run the file, they most likely will get an error regarding missing type library. Same thing if you save the .dvb while it's referencing Excel 2003 and someone who only has Excel 2000 tries to run the program.
Because VBA is compiled at runtime, the needed type libraries will, for the most part, automatically update the latest version. They will not however, downgrade to an earlier version. |
|
| Back to top |
|
 |
Terry W. Dotson
Guest
|
Posted:
Wed Mar 30, 2005 8:51 am Post subject:
Re: Autocad's Version |
|
|
rwilkins wrote:
| Quote: | As Joe stated, There is no need to late bind in VBA.
|
How did it get to this point, the original poster said they were using VB6.
Terry |
|
| Back to top |
|
 |
Joe Sutphin
Guest
|
Posted:
Mon Apr 04, 2005 9:22 pm Post subject:
Re: Autocad's Version |
|
|
Read all the posts and voila ...
"Terry W. Dotson" <nospam@invalid.com> wrote in message
news:424a222d$1_3@newsprd01...
| Quote: | rwilkins wrote:
As Joe stated, There is no need to late bind in VBA.
How did it get to this point, the original poster said they were using
VB6.
Terry |
|
|
| Back to top |
|
 |
Jorge Jimenez
Guest
|
Posted:
Mon Apr 04, 2005 9:39 pm Post subject:
Re: Autocad's Version |
|
|
I have the feeling that people who use Outlook
and other newreaders, like myself
are not getting all the post in this NG
--
Saludos, Ing. Jorge Jimenez, SICAD S.A., Costa Rica
"Joe Sutphin" <joesutphin@earthlink.net> wrote in message
news:425177ec_2@newsprd01...
| Quote: | Read all the posts and voila ...
"Terry W. Dotson" <nospam@invalid.com> wrote in message
news:424a222d$1_3@newsprd01...
rwilkins wrote:
As Joe stated, There is no need to late bind in VBA.
How did it get to this point, the original poster said they were using
VB6.
Terry
|
|
|
| Back to top |
|
 |
Joe Sutphin
Guest
|
Posted:
Mon Apr 04, 2005 10:18 pm Post subject:
Re: Autocad's Version |
|
|
Maybe, I never use anything but Outlook Express for viewing newsgroups.
Joe
--
"Jorge Jimenez" <jorge@nospam.com> wrote in message
news:42517b40_1@newsprd01...
| Quote: | I have the feeling that people who use Outlook
and other newreaders, like myself
are not getting all the post in this NG
--
Saludos, Ing. Jorge Jimenez, SICAD S.A., Costa Rica
"Joe Sutphin" <joesutphin@earthlink.net> wrote in message
news:425177ec_2@newsprd01...
Read all the posts and voila ...
"Terry W. Dotson" <nospam@invalid.com> wrote in message
news:424a222d$1_3@newsprd01...
rwilkins wrote:
As Joe stated, There is no need to late bind in VBA.
How did it get to this point, the original poster said they were using
VB6.
Terry
|
|
|
| Back to top |
|
 |
|
|
|
|