Solved

Embedded dll resource

Posted on 2004-10-14
7
238 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

706 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now