TheSwamp

Code Red => .NET => Topic started by: TR on April 28, 2005, 10:48:15 AM

Title: adui16res.dll not found
Post by: TR on April 28, 2005, 10:48:15 AM
I'm doing some BOO testing in SharpDevelop trying to create an AutoCAD command that returns a string to the command line. I have references to acmgd.dll and acdbmgd.dll but when I try to compile my program I get an error message saying "adui16res.dll not found". This doesn't make sense because adui16res.dll is located in the same directory as acmgd.dll and acdbmgd.dll. I'll keep working on it but if anyone has any thoughts or ideas I'd love to hear them.

Here is a Screenshot (http://www.theswamp.org/screens/tjr/sd.png) of my error.

tjr
Title: adui16res.dll not found
Post by: MP on April 28, 2005, 10:54:24 AM
Hmmm, dunno. What's on lines 21 and 22?

Off topic: Is it good to have a namespace and class share the same name?
Title: adui16res.dll not found
Post by: TR on April 28, 2005, 11:03:12 AM
Quote from: MP
Hmmm, dunno. What's on lines 21 and 22?

21: [assembly: AssemblyTitle('BooHoo')]
22: [assembly: AssemblyDescription('A test for using BOO with AutoCAD')]

Assembly information for my dll.


Quote from: MP
Off topic: Is it good to have a namespace and class share the same name?

I don't think it matters as I've seen it done before. If someone where to import my assembly they would just be referencing BooHoo.BooHoo.
Title: adui16res.dll not found
Post by: MP on April 28, 2005, 11:33:31 AM
Sorry Tim, have no ideas.
Title: adui16res.dll not found
Post by: Kerry on April 28, 2005, 05:34:42 PM
Does anyone know what adui16res does. ?
Can I assume some sort of user interface Resources stuff ?
.. similarly acui16 and acui16res and adui16

I'm guessing .. paletes ???

I <just now> tried to reference it into a C# project .. no go, not compatible .. but I AM using ac2005, not 2006 .. if that makes a difference.
Title: adui16res.dll not found
Post by: MP on April 28, 2005, 05:43:27 PM
It's not on this pc so my guess is right along side yours.  

On the other hand it could be A Damned Unavailable Interface (for AutoCAD 16) Requiring Exhaustive Searching ...
Title: adui16res.dll not found
Post by: Kerry on April 28, 2005, 05:48:02 PM
heh, good guess
... that opens the door for some interesting<perhaps> acronyms.
Title: adui16res.dll not found
Post by: MP on April 28, 2005, 05:53:36 PM
Hey hey hey keep it clean ...

:)
Title: adui16res.dll not found
Post by: Keith™ on April 28, 2005, 06:52:42 PM
Quote from: Kerry Brown
Does anyone know what adui16res does.


It contains the resources required for adui16.dll
It is required for the interface to the ToolPalette object and transparency settings.

The file contains bitmaps, cursors, dialogs, string tables, menus and the such.
Title: adui16res.dll not found
Post by: Kerry on April 28, 2005, 07:00:02 PM
Thanks Keith, that was my Guess ..
Wonder why Tim's stuff is trying to reference it ?

<kwb definition> stuff : technical term relating to a wide variety of stuff.
Title: adui16res.dll not found
Post by: MP on April 28, 2005, 07:01:37 PM
Quote from: Kerry Brown
<kwb definition> stuff : technical term relating to a wide variety of stuff.

Oooh, recursive def'n.

:)
Title: adui16res.dll not found
Post by: Kerry on April 28, 2005, 07:14:44 PM
hehehehe .. I thought you'd recognise that ..
Title: adui16res.dll not found
Post by: MP on April 28, 2005, 07:23:02 PM
Oh the shame to be so predictable.

:oops:
Title: adui16res.dll not found
Post by: Kerry on April 29, 2005, 04:58:40 AM
Quote from: Tim Riley

Quote from: MP
Off topic: Is it good to have a namespace and class share the same name?

I don't think it matters as I've seen it done before. If someone where to import my assembly they would just be referencing BooHoo.BooHoo.


Tim, I missed this comment,
... actually, It does make a difference :

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconnamespacenamingguidelines.asp
Title: adui16res.dll not found
Post by: MP on April 29, 2005, 05:03:41 AM
I knew I had read that at some point; good eye there Mr. Brown.
Title: adui16res.dll not found
Post by: Keith™ on April 29, 2005, 06:53:52 AM
That all looks good, but in a practical application does it really matter. I would suspect that provided the application does not interfere with another class or namespace it "shouldn't" make a difference. It would be an obvious problem if you duplicated the class name of an already existent class, such as in the example, Microsoft.Office ~ I don't see that being a problem while being used on a small scale, but it has broader implications on a large scale deployment.

The info is a good rule to follow, at least then you won't have to try and guess if the naming convention is what is creating your problem.
Title: adui16res.dll not found
Post by: TR on April 29, 2005, 02:28:52 PM
I really have no idea why booc.exe (the boo compiler) is looking for adui16res.dll. The only assemblies I am referencing in my project are acdbmgd.dll and acmgd.dll so one of them must be referencing that file. If I have local copy set to True on both dll's it will also copy the adui16res.dll into my bin/debug directory. I am assuming that this is something to do with BOO as I have not seen that dll in any C# projects I have compiled. Also I've checked the references of both dll's and I do not see anything pointing to adui16res.dll.

(http://www.theswamp.org/screens/tjr/acdbmgd_dll.png)

(http://www.theswamp.org/screens/tjr/acmgd_dll.png)
Title: adui16res.dll not found
Post by: MickD on April 29, 2005, 07:13:36 PM
Hi Tim,
This may be a dumb question but we have to start somewhere, are both of the managed wrapper dll's visible in your project solution explorer?
Title: adui16res.dll not found
Post by: Kerry on April 29, 2005, 08:06:37 PM
Good point. This is a snap of a solution view with VC#2005

Note that the DLL's are included as References.
You seem to have them as a Viewable/editadle file ??

(http://www.theswamp.org/screens/kerry/SolutionExplorer.png)

user tip : when posting images do NOT have spaces in the file name.
This is the format, using img, not ximg, of course.
[ximg]http://www.theswamp.org/screens/kerry/SolutionExplorer.png[/ximg]
Title: adui16res.dll not found
Post by: TR on May 02, 2005, 11:57:56 AM
Quote from: MickD
Hi Tim,
This may be a dumb question but we have to start somewhere, are both of the managed wrapper dll's visible in your project solution explorer?


Yes both dlls are there.

(http://www.theswamp.org/screens/tjr/boo_ref.png)
Title: adui16res.dll not found
Post by: MickD on May 02, 2005, 05:10:59 PM
Ok, next...(probably should have been first ;) )
Is this a class library project or an windows application (.exe)?
If it is an .exe, you can't use the managed wrappers, you will have to use the COM interface.
And what is 'BOO' (I hope that isn't a silly question  :oops: )
Title: adui16res.dll not found
Post by: daron on May 03, 2005, 08:18:00 AM
Mick, have a read of this (http://www.theswamp.org/phpBB2/viewtopic.php?t=4870) thread.
Title: adui16res.dll not found
Post by: MickD on May 03, 2005, 03:08:49 PM
aahhh....Thanks Daron, that clears that piece of the puzzle up :)