Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Embedded dll resource

Posted on 2004-10-14
7
Medium Priority
?
247 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 2000 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 86

Expert Comment

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

~IM
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 86

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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

704 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