<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Looking for  A Way to Use A .DLL without Running Regsvr32 in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155599#M21690</link>
    <description>Whatever you do as other suggested (call regsvr32.exe or DLLRegisterServer() &lt;BR /&gt;
at runtime prior to your exe calls the DLL), you need admin priviledge to &lt;BR /&gt;
proceed. Since your issue is you, as developer, does not have that required &lt;BR /&gt;
priviledge ti register a COM DLL, so, most likely, users running your code, &lt;BR /&gt;
which calling "regsvr32.exe" or "DLLRegisterServer()" do not have higher &lt;BR /&gt;
level of priviledge than you, so, your code woul fail.&lt;BR /&gt;
&lt;BR /&gt;
If you really want to avoid register COM DLL, then do not use it. Simply &lt;BR /&gt;
place code (classes) in DLL file into your exe project.&lt;BR /&gt;
&lt;BR /&gt;
Or, if you constantly modify your code in DLL (many, if not all, programers &lt;BR /&gt;
do), then try to maintain the DLL project's binary compatibility. As long as &lt;BR /&gt;
the change does not break binary compatibilty, you can simply copy/paste &lt;BR /&gt;
older version of DLL file without re-register it.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"matt_1ca" wrote in message news:5821472@discussion.autodesk.com...&lt;BR /&gt;
Thanks for the link ... I will go and look into it.&lt;BR /&gt;
&lt;BR /&gt;
Gratefully,&lt;BR /&gt;
Matt</description>
    <pubDate>Wed, 16 Jan 2008 00:24:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-01-16T00:24:09Z</dc:date>
    <item>
      <title>Looking for  A Way to Use A .DLL without Running Regsvr32</title>
      <link>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155587#M21678</link>
      <description>I was wondering if there is a way that I can make my .EXE use a .DLL without having any need to run regsvr32 to register the .DLL and things like that. &lt;BR /&gt;
&lt;BR /&gt;
Why can't .DLLs be as uncomplicated as .EXE with .EXE everything is heaven ... its just in those situations where I need to make a .DLL help my .EXE where everything gets to feel not so good because I have to register it first. &lt;BR /&gt;
&lt;BR /&gt;
The process becomes more and more painful the more times you need to edit the .DLL because then you have to unregister and then register again etc.&lt;BR /&gt;
&lt;BR /&gt;
When I deploy an .EXE everything goes smoothly but deploying an .EXE that depends on a .DLL is often a pain because I need to have the user run regsvr32 just to have the .DLL work ... its just a small department and just a small program but there are red tapes that slows down the process of implementing things with .DLL especially when it changes time and again because when that happens then I need to call up the head office again for registration permissions and things like that which of course never happens when I am just deploying an EXE.&lt;BR /&gt;
&lt;BR /&gt;
If only I had admistrative permissions on all the machines .. but that is of course a perfect world and in the absence of that perfect world I guess the next best thing is to just have the ability to use a .DLL without having any need to register it... so is there a way to do it?&lt;BR /&gt;
&lt;BR /&gt;
All suggestions welcome and thank you so much for all the kind help you can give.&lt;BR /&gt;
&lt;BR /&gt;
Gratefully,&lt;BR /&gt;
Matt</description>
      <pubDate>Tue, 15 Jan 2008 00:32:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155587#M21678</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-15T00:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for  A Way to Use A .DLL without Running Regsvr32</title>
      <link>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155588#M21679</link>
      <description>There is no reason to perform all of these gymnastics. Look into a setup &lt;BR /&gt;
creation program called Inno setup. You should have the exe file already &lt;BR /&gt;
compiled with a reference to the newly compiled DLL. The deployment process &lt;BR /&gt;
should handle the matter of registering the new DLL. I have samples of how &lt;BR /&gt;
do do all this if you choose to go this route.&lt;BR /&gt;
&lt;BR /&gt;
Dale&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"matt_1ca" wrote in message news:5820329@discussion.autodesk.com...&lt;BR /&gt;
I was wondering if there is a way that I can make my .EXE use a .DLL without &lt;BR /&gt;
having any need to run regsvr32 to register the .DLL and things like that.&lt;BR /&gt;
&lt;BR /&gt;
Why can't .DLLs be as uncomplicated as .EXE with .EXE everything is heaven &lt;BR /&gt;
... its just in those situations where I need to make a .DLL help my .EXE &lt;BR /&gt;
where everything gets to feel not so good because I have to register it &lt;BR /&gt;
first.&lt;BR /&gt;
&lt;BR /&gt;
The process becomes more and more painful the more times you need to edit &lt;BR /&gt;
the .DLL because then you have to unregister and then register again etc.&lt;BR /&gt;
&lt;BR /&gt;
When I deploy an .EXE everything goes smoothly but deploying an .EXE that &lt;BR /&gt;
depends on a .DLL is often a pain because I need to have the user run &lt;BR /&gt;
regsvr32 just to have the .DLL work ... its just a small department and just &lt;BR /&gt;
a small program but there are red tapes that slows down the process of &lt;BR /&gt;
implementing things with .DLL especially when it changes time and again &lt;BR /&gt;
because when that happens then I need to call up the head office again for &lt;BR /&gt;
registration permissions and things like that which of course never happens &lt;BR /&gt;
when I am just deploying an EXE.&lt;BR /&gt;
&lt;BR /&gt;
If only I had admistrative permissions on all the machines .. but that is of &lt;BR /&gt;
course a perfect world and in the absence of that perfect world I guess the &lt;BR /&gt;
next best thing is to just have the ability to use a .DLL without having any &lt;BR /&gt;
need to register it... so is there a way to do it?&lt;BR /&gt;
&lt;BR /&gt;
All suggestions welcome and thank you so much for all the kind help you can &lt;BR /&gt;
give.&lt;BR /&gt;
&lt;BR /&gt;
Gratefully,&lt;BR /&gt;
Matt</description>
      <pubDate>Tue, 15 Jan 2008 01:25:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155588#M21679</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-15T01:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for  A Way to Use A .DLL without Running Regsvr32</title>
      <link>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155589#M21680</link>
      <description>I confess to being mental midget but I looked at inno setup some time ago &lt;BR /&gt;
and got overwhelmed.&lt;BR /&gt;
seems like you  had to learn a whole another language (the inno setup &lt;BR /&gt;
scripting language?) to write the scripts to install your app... just didnt' &lt;BR /&gt;
have the spare brain power or time at the time to digest it all...I was &lt;BR /&gt;
overloaded with other projects at the time already, so I gave up on learning &lt;BR /&gt;
it back then. (unless I'm misremembering and it was a different installer &lt;BR /&gt;
prog I was looking at???)&lt;BR /&gt;
&lt;BR /&gt;
Maybe it's not a complicated as it seemed at the time.&lt;BR /&gt;
Hopefully some day I'll have time to learn how to use that.&lt;BR /&gt;
&lt;BR /&gt;
There's also "registry-less" com technique available to avoid regsvr&lt;BR /&gt;
www.datenhaus.de/Downloads/DirectCOMDemo.zip&lt;BR /&gt;
&lt;BR /&gt;
Maybe that would help Matt&lt;BR /&gt;
&lt;BR /&gt;
Mark&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Dale Levesque" &lt;DMLEVES&gt; wrote in message &lt;BR /&gt;
news:5820323@discussion.autodesk.com...&lt;BR /&gt;
There is no reason to perform all of these gymnastics. Look into a setup&lt;BR /&gt;
creation program called Inno setup. You should have the exe file already&lt;BR /&gt;
compiled with a reference to the newly compiled DLL. The deployment process&lt;BR /&gt;
should handle the matter of registering the new DLL. I have samples of how&lt;BR /&gt;
do do all this if you choose to go this route.&lt;BR /&gt;
&lt;BR /&gt;
Dale&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"matt_1ca" wrote in message news:5820329@discussion.autodesk.com...&lt;BR /&gt;
I was wondering if there is a way that I can make my .EXE use a .DLL without&lt;BR /&gt;
having any need to run regsvr32 to register the .DLL and things like that.&lt;BR /&gt;
&lt;BR /&gt;
Why can't .DLLs be as uncomplicated as .EXE with .EXE everything is heaven&lt;BR /&gt;
... its just in those situations where I need to make a .DLL help my .EXE&lt;BR /&gt;
where everything gets to feel not so good because I have to register it&lt;BR /&gt;
first.&lt;BR /&gt;
&lt;BR /&gt;
The process becomes more and more painful the more times you need to edit&lt;BR /&gt;
the .DLL because then you have to unregister and then register again etc.&lt;BR /&gt;
&lt;BR /&gt;
When I deploy an .EXE everything goes smoothly but deploying an .EXE that&lt;BR /&gt;
depends on a .DLL is often a pain because I need to have the user run&lt;BR /&gt;
regsvr32 just to have the .DLL work ... its just a small department and just&lt;BR /&gt;
a small program but there are red tapes that slows down the process of&lt;BR /&gt;
implementing things with .DLL especially when it changes time and again&lt;BR /&gt;
because when that happens then I need to call up the head office again for&lt;BR /&gt;
registration permissions and things like that which of course never happens&lt;BR /&gt;
when I am just deploying an EXE.&lt;BR /&gt;
&lt;BR /&gt;
If only I had admistrative permissions on all the machines .. but that is of&lt;BR /&gt;
course a perfect world and in the absence of that perfect world I guess the&lt;BR /&gt;
next best thing is to just have the ability to use a .DLL without having any&lt;BR /&gt;
need to register it... so is there a way to do it?&lt;BR /&gt;
&lt;BR /&gt;
All suggestions welcome and thank you so much for all the kind help you can&lt;BR /&gt;
give.&lt;BR /&gt;
&lt;BR /&gt;
Gratefully,&lt;BR /&gt;
Matt&lt;/DMLEVES&gt;</description>
      <pubDate>Tue, 15 Jan 2008 02:08:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155589#M21680</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-15T02:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for  A Way to Use A .DLL without Running Regsvr32</title>
      <link>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155590#M21681</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Here's an extract of a CMD file I use:&lt;BR /&gt;
&lt;BR /&gt;
regsvr32 ard08ColourSelect.dll /u&lt;BR /&gt;
regsvr32 ard08ColourSelect.dll&lt;BR /&gt;
&lt;BR /&gt;
I think it's pretty self expanatory.  The CMD file has to be in the same &lt;BR /&gt;
folder as the DLL file.&lt;BR /&gt;
&lt;BR /&gt;
You can use extra switches to control the display of the message, but I &lt;BR /&gt;
prefer to see them.&lt;BR /&gt;
&lt;BR /&gt;
Because Inno Setup is designed to do a far wider range of things it has a &lt;BR /&gt;
few more items you need to consider, but here's some Inno Setup code to do &lt;BR /&gt;
the same as the above:&lt;BR /&gt;
&lt;BR /&gt;
It will create an EXE file to run the DLL registration and also as I've set &lt;BR /&gt;
it, force the user to consider a reboot after the installation&lt;BR /&gt;
&lt;BR /&gt;
[Inno Setup Code starts]&lt;BR /&gt;
&lt;BR /&gt;
[Setup]&lt;BR /&gt;
; Publisher data&lt;BR /&gt;
AppName=MyDLLUpdater&lt;BR /&gt;
AppVerName=MyDLLUpdater&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
; Output file data&lt;BR /&gt;
OutputBaseFileName=MyDLLUpdater&lt;BR /&gt;
OutputDir=C:\Installation\MyDLLUpdater&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
; Company data&lt;BR /&gt;
AppPublisher=www.MyCompany Pty Ltd&lt;BR /&gt;
AppPublisherURL=http://www.MyCompany.com&lt;BR /&gt;
AppSupportURL=http://www.MyCompany.com&lt;BR /&gt;
AppUpdatesURL=http://www.MyCompany.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
; Installation location data&lt;BR /&gt;
AppendDefaultDirName=No&lt;BR /&gt;
AppendDefaultGroupName=No&lt;BR /&gt;
DefaultDirName={pf}&lt;BR /&gt;
UsePreviousAppDir=Yes&lt;BR /&gt;
&lt;BR /&gt;
; Working options&lt;BR /&gt;
AllowNoIcons=yes&lt;BR /&gt;
AlwaysRestart=Yes&lt;BR /&gt;
DefaultGroupName=MyCompany&lt;BR /&gt;
PrivilegesRequired=admin&lt;BR /&gt;
&lt;BR /&gt;
; Page display data&lt;BR /&gt;
DirExistsWarning=No&lt;BR /&gt;
DisableDirPage=true&lt;BR /&gt;
DisableProgramGroupPage=true&lt;BR /&gt;
&lt;BR /&gt;
DisableReadyPage=No&lt;BR /&gt;
DisableStartupPrompt=Yes&lt;BR /&gt;
EnableDirDoesntExistWarning=No&lt;BR /&gt;
&lt;BR /&gt;
[Files]&lt;BR /&gt;
&lt;BR /&gt;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;BR /&gt;
;; PROGRAM DLL files: This assumes the DLL will be in the same folder {src} &lt;BR /&gt;
as the&lt;BR /&gt;
;; file generated by Inno Setup&lt;BR /&gt;
;; Change the flags to suit your specific requirements&lt;BR /&gt;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;BR /&gt;
Source: "{src}\ard08ColourSelect.dll"; DestDir: "{app}\MyPrograms";  Flags: &lt;BR /&gt;
external ignoreversion RestartReplace  uninsneveruninstall sharedfile &lt;BR /&gt;
regserver&lt;BR /&gt;
[Inno setup code ends]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
&lt;MATT_1CA&gt; wrote in message news:5820329@discussion.autodesk.com...&lt;BR /&gt;
I was wondering if there is a way that I can make my .EXE use a .DLL without &lt;BR /&gt;
having any need to run regsvr32 to register the .DLL and things like that.&lt;BR /&gt;
&lt;BR /&gt;
Why can't .DLLs be as uncomplicated as .EXE with .EXE everything is heaven &lt;BR /&gt;
... its just in those situations where I need to make a .DLL help my .EXE &lt;BR /&gt;
where everything gets to feel not so good because I have to register it &lt;BR /&gt;
first.&lt;BR /&gt;
&lt;BR /&gt;
The process becomes more and more painful the more times you need to edit &lt;BR /&gt;
the .DLL because then you have to unregister and then register again etc.&lt;BR /&gt;
&lt;BR /&gt;
When I deploy an .EXE everything goes smoothly but deploying an .EXE that &lt;BR /&gt;
depends on a .DLL is often a pain because I need to have the user run &lt;BR /&gt;
regsvr32 just to have the .DLL work ... its just a small department and just &lt;BR /&gt;
a small program but there are red tapes that slows down the process of &lt;BR /&gt;
implementing things with .DLL especially when it changes time and again &lt;BR /&gt;
because when that happens then I need to call up the head office again for &lt;BR /&gt;
registration permissions and things like that which of course never happens &lt;BR /&gt;
when I am just deploying an EXE.&lt;BR /&gt;
&lt;BR /&gt;
If only I had admistrative permissions on all the machines .. but that is of &lt;BR /&gt;
course a perfect world and in the absence of that perfect world I guess the &lt;BR /&gt;
next best thing is to just have the ability to use a .DLL without having any &lt;BR /&gt;
need to register it... so is there a way to do it?&lt;BR /&gt;
&lt;BR /&gt;
All suggestions welcome and thank you so much for all the kind help you can &lt;BR /&gt;
give.&lt;BR /&gt;
&lt;BR /&gt;
Gratefully,&lt;BR /&gt;
Matt&lt;/MATT_1CA&gt;</description>
      <pubDate>Tue, 15 Jan 2008 05:28:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155590#M21681</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-15T05:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for  A Way to Use A .DLL without Running Regsvr32</title>
      <link>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155591#M21682</link>
      <description>You could just call the DllRegisterServer function exported by your&lt;BR /&gt;
dll from the exe before using anything else from the dll.</description>
      <pubDate>Tue, 15 Jan 2008 15:12:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155591#M21682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-15T15:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for  A Way to Use A .DLL without Running Regsvr32</title>
      <link>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155592#M21683</link>
      <description>Wouldn't this require late-binding everything that references the dll in the exe project?&lt;BR /&gt;
&lt;BR /&gt;
Laurie has given you the most effective solution, in my opinion. Create a batch file that calls regsvr32, and get whoever is installing your application to run it. &lt;BR /&gt;
&lt;BR /&gt;
Dale's suggestion is more appropriate if you want to have a professional look, as innosetup will create an installer application for you.&lt;BR /&gt;
&lt;BR /&gt;
ps: The only way (in my knowledge) to truly remove the need to register a dll is to upgrade to .NET. .NET uses assemblies to deal with this kind of thing, and it's quite good at it, from what I've seen. Autocad 2006 and later have the ability to load .NET dlls at runtime (as autocad commands) which can run any code you want. &lt;BR /&gt;
&lt;BR /&gt;
You can find plenty of information on this kind of thing in the Autocad .NET forums.</description>
      <pubDate>Tue, 15 Jan 2008 16:44:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155592#M21683</guid>
      <dc:creator>jbooth</dc:creator>
      <dc:date>2008-01-15T16:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for  A Way to Use A .DLL without Running Regsvr32</title>
      <link>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155593#M21684</link>
      <description>Thanks,   I am going to look at Laurie's sample code in more detail.&lt;BR /&gt;
&lt;BR /&gt;
I have to say that this assembly idea is a very interesting concept&lt;BR /&gt;
&lt;BR /&gt;
Thanks again,&lt;BR /&gt;
Matt</description>
      <pubDate>Tue, 15 Jan 2008 23:56:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155593#M21684</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-15T23:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for  A Way to Use A .DLL without Running Regsvr32</title>
      <link>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155594#M21685</link>
      <description>Thanks I will do some more digging on this DllRegisterServer function concept.&lt;BR /&gt;
&lt;BR /&gt;
Gratefully,&lt;BR /&gt;
Matt</description>
      <pubDate>Wed, 16 Jan 2008 00:00:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155594#M21685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-16T00:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for  A Way to Use A .DLL without Running Regsvr32</title>
      <link>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155595#M21686</link>
      <description>Hello Laurie,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for sharing with me some code, I really appreciate it. &lt;BR /&gt;
I will go and experiment using this idea.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again,&lt;BR /&gt;
Matt</description>
      <pubDate>Wed, 16 Jan 2008 00:06:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155595#M21686</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-16T00:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for  A Way to Use A .DLL without Running Regsvr32</title>
      <link>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155596#M21687</link>
      <description>Thanks for the link ... I will go and look into it.&lt;BR /&gt;
&lt;BR /&gt;
Gratefully,&lt;BR /&gt;
Matt</description>
      <pubDate>Wed, 16 Jan 2008 00:08:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155596#M21687</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-16T00:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for  A Way to Use A .DLL without Running Regsvr32</title>
      <link>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155597#M21688</link>
      <description>This Inno Setup looks promising .. I imagine its a very powerful stuff and I would try to learn it more.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again,&lt;BR /&gt;
Matt</description>
      <pubDate>Wed, 16 Jan 2008 00:13:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155597#M21688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-16T00:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for  A Way to Use A .DLL without Running Regsvr32</title>
      <link>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155598#M21689</link>
      <description>That will download a sample project showing use of Olaf's Registerless dll &lt;BR /&gt;
wrapper&lt;BR /&gt;
&lt;BR /&gt;
Heres some notes I saved from previous posts where I learned about it.&lt;BR /&gt;
&lt;BR /&gt;
From Olaf Schmidt&lt;BR /&gt;
&lt;BR /&gt;
You can use my free Helper-Tool for this&lt;BR /&gt;
purpose (DirectCom.Dll).&lt;BR /&gt;
Just look at:&lt;BR /&gt;
www.datenhaus.de/Downloads/DirectCOMDemo.zip&lt;BR /&gt;
Inside you'll find an example on how to use it for&lt;BR /&gt;
regfree instantiation of COM-Objects directly&lt;BR /&gt;
from the Filesystem or a Share (bypassing the registry).&lt;BR /&gt;
&lt;BR /&gt;
COM has always offered a way for regfree instantiation,&lt;BR /&gt;
even on Win98 - and my Dll just encapsulates the needed&lt;BR /&gt;
API-Calls.&lt;BR /&gt;
&lt;BR /&gt;
For deployment you only need to place everything in the&lt;BR /&gt;
App.Path. Assuming your App consists of two Binaries:&lt;BR /&gt;
MyStd.exe and MyAX.dll&lt;BR /&gt;
then you only need to place DirectCOM.dll beside it,&lt;BR /&gt;
declare one API-Call inside your Project, and replace&lt;BR /&gt;
all occurences, where you've instantiated Classes from&lt;BR /&gt;
MyAX.dll (usually with 'New' or 'CreateObject') with&lt;BR /&gt;
the declared API-Function GETINSTANCE.&lt;BR /&gt;
Assuming, your MyAX.dll contains two public Classes:&lt;BR /&gt;
cMyClass1 and cMyClass2&lt;BR /&gt;
then you would have to replace e.g.:&lt;BR /&gt;
Dim oMyClass1 As cMyClass1&lt;BR /&gt;
Set oMyClass1 = New cMyClass1&lt;BR /&gt;
with&lt;BR /&gt;
Set oMyClass1 = GETINSTANCE(App.Path &amp;amp; "\MyAX.dll", "cMyClass1")&lt;BR /&gt;
&lt;BR /&gt;
and/or all occurences of e.g. (if there are any):&lt;BR /&gt;
Dim oMyClass2 As cMyClass2&lt;BR /&gt;
Set oMyClass2 = CreateObject("MyAX.cMyClass2")&lt;BR /&gt;
with&lt;BR /&gt;
Set oMyClass2 = GETINSTANCE(App.Path &amp;amp; "\MyAX.dll", "cMyClass2")&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
That's all you have to do regarding AX-Dlls (DirectCOM.dll is&lt;BR /&gt;
dedicated only for AX-Dll-Instancing).&lt;BR /&gt;
&lt;BR /&gt;
hth&lt;BR /&gt;
Mark</description>
      <pubDate>Wed, 16 Jan 2008 00:17:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155598#M21689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-16T00:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for  A Way to Use A .DLL without Running Regsvr32</title>
      <link>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155599#M21690</link>
      <description>Whatever you do as other suggested (call regsvr32.exe or DLLRegisterServer() &lt;BR /&gt;
at runtime prior to your exe calls the DLL), you need admin priviledge to &lt;BR /&gt;
proceed. Since your issue is you, as developer, does not have that required &lt;BR /&gt;
priviledge ti register a COM DLL, so, most likely, users running your code, &lt;BR /&gt;
which calling "regsvr32.exe" or "DLLRegisterServer()" do not have higher &lt;BR /&gt;
level of priviledge than you, so, your code woul fail.&lt;BR /&gt;
&lt;BR /&gt;
If you really want to avoid register COM DLL, then do not use it. Simply &lt;BR /&gt;
place code (classes) in DLL file into your exe project.&lt;BR /&gt;
&lt;BR /&gt;
Or, if you constantly modify your code in DLL (many, if not all, programers &lt;BR /&gt;
do), then try to maintain the DLL project's binary compatibility. As long as &lt;BR /&gt;
the change does not break binary compatibilty, you can simply copy/paste &lt;BR /&gt;
older version of DLL file without re-register it.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"matt_1ca" wrote in message news:5821472@discussion.autodesk.com...&lt;BR /&gt;
Thanks for the link ... I will go and look into it.&lt;BR /&gt;
&lt;BR /&gt;
Gratefully,&lt;BR /&gt;
Matt</description>
      <pubDate>Wed, 16 Jan 2008 00:24:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155599#M21690</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-16T00:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for  A Way to Use A .DLL without Running Regsvr32</title>
      <link>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155600#M21691</link>
      <description>Mark,&lt;BR /&gt;
&lt;BR /&gt;
The first time I looked at Innosetup I had the same reaction and put it aside &lt;BR /&gt;
until the day came when I really needed it. Then I found it was not that bad &lt;BR /&gt;
to learn at all. Granted, it will take some effort, but well worth it. Be sure &lt;BR /&gt;
to also download the ISTool add-on (you can find a link to it on the Innosetup &lt;BR /&gt;
website. This makes Innosetup easier to use.&lt;BR /&gt;
&lt;BR /&gt;
Ken Krupa&lt;BR /&gt;
&lt;BR /&gt;
MP wrote:&lt;BR /&gt;
&amp;gt; I confess to being mental midget but I looked at inno setup some time ago &lt;BR /&gt;
&amp;gt; and got overwhelmed.&lt;BR /&gt;
&amp;gt; seems like you  had to learn a whole another language (the inno setup &lt;BR /&gt;
&amp;gt; scripting language?) to write the scripts to install your app... just didnt' &lt;BR /&gt;
&amp;gt; have the spare brain power or time at the time to digest it all...I was &lt;BR /&gt;
&amp;gt; overloaded with other projects at the time already, so I gave up on learning &lt;BR /&gt;
&amp;gt; it back then. (unless I'm misremembering and it was a different installer &lt;BR /&gt;
&amp;gt; prog I was looking at???)&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Maybe it's not a complicated as it seemed at the time.&lt;BR /&gt;
&amp;gt; Hopefully some day I'll have time to learn how to use that.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; There's also "registry-less" com technique available to avoid regsvr&lt;BR /&gt;
&amp;gt; www.datenhaus.de/Downloads/DirectCOMDemo.zip&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Maybe that would help Matt&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Mark&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; "Dale Levesque" &lt;DMLEVES&gt; wrote in message &lt;BR /&gt;
&amp;gt; news:5820323@discussion.autodesk.com...&lt;BR /&gt;
&amp;gt; There is no reason to perform all of these gymnastics. Look into a setup&lt;BR /&gt;
&amp;gt; creation program called Inno setup. You should have the exe file already&lt;BR /&gt;
&amp;gt; compiled with a reference to the newly compiled DLL. The deployment process&lt;BR /&gt;
&amp;gt; should handle the matter of registering the new DLL. I have samples of how&lt;BR /&gt;
&amp;gt; do do all this if you choose to go this route.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Dale&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; "matt_1ca" wrote in message news:5820329@discussion.autodesk.com...&lt;BR /&gt;
&amp;gt; I was wondering if there is a way that I can make my .EXE use a .DLL without&lt;BR /&gt;
&amp;gt; having any need to run regsvr32 to register the .DLL and things like that.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Why can't .DLLs be as uncomplicated as .EXE with .EXE everything is heaven&lt;BR /&gt;
&amp;gt; ... its just in those situations where I need to make a .DLL help my .EXE&lt;BR /&gt;
&amp;gt; where everything gets to feel not so good because I have to register it&lt;BR /&gt;
&amp;gt; first.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; The process becomes more and more painful the more times you need to edit&lt;BR /&gt;
&amp;gt; the .DLL because then you have to unregister and then register again etc.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; When I deploy an .EXE everything goes smoothly but deploying an .EXE that&lt;BR /&gt;
&amp;gt; depends on a .DLL is often a pain because I need to have the user run&lt;BR /&gt;
&amp;gt; regsvr32 just to have the .DLL work ... its just a small department and just&lt;BR /&gt;
&amp;gt; a small program but there are red tapes that slows down the process of&lt;BR /&gt;
&amp;gt; implementing things with .DLL especially when it changes time and again&lt;BR /&gt;
&amp;gt; because when that happens then I need to call up the head office again for&lt;BR /&gt;
&amp;gt; registration permissions and things like that which of course never happens&lt;BR /&gt;
&amp;gt; when I am just deploying an EXE.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; If only I had admistrative permissions on all the machines .. but that is of&lt;BR /&gt;
&amp;gt; course a perfect world and in the absence of that perfect world I guess the&lt;BR /&gt;
&amp;gt; next best thing is to just have the ability to use a .DLL without having any&lt;BR /&gt;
&amp;gt; need to register it... so is there a way to do it?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; All suggestions welcome and thank you so much for all the kind help you can&lt;BR /&gt;
&amp;gt; give.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Gratefully,&lt;BR /&gt;
&amp;gt; Matt&lt;/DMLEVES&gt;</description>
      <pubDate>Wed, 16 Jan 2008 13:31:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155600#M21691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-16T13:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for  A Way to Use A .DLL without Running Regsvr32</title>
      <link>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155601#M21692</link>
      <description>&amp;gt; Wouldn't this require late-binding everything that references the dll in the exe project?&lt;BR /&gt;
&lt;BR /&gt;
Not if the dll is registered on the dev machine which, if the dll is&lt;BR /&gt;
built on the dev machine, it would be.  If it isn't then register it by&lt;BR /&gt;
whatever means you choose.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Create a batch file that calls regsvr32, and get whoever is installing your application to run it. &lt;BR /&gt;
&lt;BR /&gt;
You still wouldn't need a warm body.  The exe could run the bat.</description>
      <pubDate>Wed, 16 Jan 2008 13:58:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155601#M21692</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-16T13:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for  A Way to Use A .DLL without Running Regsvr32</title>
      <link>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155602#M21693</link>
      <description>Hi Ken,&lt;BR /&gt;
Thanks for the encouragement.&lt;BR /&gt;
If I ever need it I will definitely spend the time to figure it out.&lt;BR /&gt;
:-)&lt;BR /&gt;
Mark&lt;BR /&gt;
&lt;BR /&gt;
"Ken Krupa" &lt;GO_TO_MY_WEBSITE&gt; wrote in message &lt;BR /&gt;
news:5821778@discussion.autodesk.com...&lt;BR /&gt;
Mark,&lt;BR /&gt;
&lt;BR /&gt;
The first time I looked at Innosetup I had the same reaction and put it &lt;BR /&gt;
aside&lt;BR /&gt;
until the day came when I really needed it. Then I found it was not that bad&lt;BR /&gt;
to learn at all. Granted, it will take some effort, but well worth it. Be &lt;BR /&gt;
sure&lt;BR /&gt;
to also download the ISTool add-on (you can find a link to it on the &lt;BR /&gt;
Innosetup&lt;BR /&gt;
website. This makes Innosetup easier to use.&lt;BR /&gt;
&lt;BR /&gt;
Ken Krupa&lt;BR /&gt;
&lt;BR /&gt;
MP wrote:&lt;BR /&gt;
&amp;gt; I looked at inno setup some time ago&lt;BR /&gt;
&amp;gt; and got overwhelmed.&lt;/GO_TO_MY_WEBSITE&gt;</description>
      <pubDate>Wed, 16 Jan 2008 15:12:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155602#M21693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-16T15:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for  A Way to Use A .DLL without Running Regsvr32</title>
      <link>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155603#M21694</link>
      <description>Hello,  thanks for the notes, this has given me a head start it is neat and straight forward.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again,&lt;BR /&gt;
Matt</description>
      <pubDate>Thu, 24 Jan 2008 13:59:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155603#M21694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-24T13:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for  A Way to Use A .DLL without Running Regsvr32</title>
      <link>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155604#M21695</link>
      <description>Hello Norman,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for this valuable response ... I have always read things about this binary compatibility but never really had any chance to use it... I guess now is the best time to give it a shot ...your explanation is clear ... and I know it will help me both long and short term.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again, I really appreciate it... &lt;BR /&gt;
&lt;BR /&gt;
Matt</description>
      <pubDate>Thu, 24 Jan 2008 14:02:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/looking-for-a-way-to-use-a-dll-without-running-regsvr32/m-p/2155604#M21695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-24T14:02:18Z</dc:date>
    </item>
  </channel>
</rss>

