Solved

Embedded dll resource

Posted on 2004-10-14
7
242 Views
Last Modified: 2008-03-17
Once a dll file is embedded into a program as a resource how can you call it in code and use it as if it was sitting in a directory or can this be done with VB.NET 2002?
0
Comment
Question by:teamdad
  • 4
  • 3
7 Comments
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 500 total points
ID: 12315248
You don't embed the DLL as a resource in your application.

Instead, you add a reference to it and invoke its objects/methods from in your code.

When you deploy your application, the DLL should be packaged with the app so it will be on the target machine.

What DLL are you trying to use or is this just a generic question?

~IM
0
 

Author Comment

by:teamdad
ID: 12315739
Well, I have been trying to find something the dll at this url http://www.codeproject.com/vb/net/ToolBarEx.asp I know you have helped me make a moch method to make a menu kinda like this but I was hoping to use the file as embedded if/when I ever found one.  I guess it makes more sence to just deploy and invoke it.  

I either wish I had vb.net 2003 or a version of that dll that would work with my vb.net 2002.  It seems like a pretty good control to use.
0
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 12315810
Does vb.net 2002 not have a ToolBar control?

~IM
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:teamdad
ID: 12315843
It does.... but not a very good one. It don't allow you to do the hover effects on the buttons etc... It's just a basic row of bland buttons you can put pictures into and use.
0
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 12315867
The VB.Net 2003 ToolBar has an Appearance property that can be set to either "Normal" or "Flat".  In Normal mode, the buttons appear as standard buttons.  In Flat mode, they all run together but as you pass over them, a "raised" button appears over the current button.

Does the Vb.Net 2002 Toolbar have this option?

~IM
0
 

Author Comment

by:teamdad
ID: 12315868
On a whim I added a toolbar, a few buttons and tried using a manifest file but then the application won't start. It gives an error that the configuration settings is not correct.  Here's what I tried using as the WindowsApplication32.exe.manifest

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><assembly xmlns="urn:schemas-microsoft-com:asm.v1"
    manifestVersion="1.0"><assemblyIdentity    version="1.0.0.0"    processorArchitecture="x86"    name="MyApp"        type="win32"        /><description>My Great Solution</description><dependency>   <dependentAssembly>     <assemblyIdentity type="win32"          name="Microsoft.Windows.Common-Controls"          version="6.0.0.0"          processorArchitecture="X86"          publicKeyToken="6595b64144ccf1df"          language="*"      />   </dependentAssembly></dependency></assembly
0
 

Author Comment

by:teamdad
ID: 12315908
After hours of playing with it.... all I found it could do is make the button change borders when it was pressed. It has the same option for Normal or Flat but neither change the look of it I can tell.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question