VS 2008 Class Libraries - Not Compilled?
Oct 19, 2009
I'm looking to create a bunch of re-usable classes. I understand the strength of creating a DLL that is reusable, but I would rather keep them un-compilled. When adding an existing .vb file, visual studio makes a copy of that object instead of a simply reference.Is there any way to do this or creating a class library with .DLL the only way?
View 6 Replies
ADVERTISEMENT
Dec 17, 2010
I designed 7 class libraries for 1 project.The project references all 7 libraries.3 of the 7 libraries make references to the other 4 libraries.I thought of just duplicating the code that's referenced in the other 4 libraries, but thats a lot of code.
Example:
PrjctA makes reference to LibA, LibB, LibC, & LibD.If LibA references LibB & LibC also will this fail?
View 5 Replies
Jun 8, 2010
i created a Class library (.dll) and loaded it as reference into a main project. In the code for the class i've handled exceptions using try..catch subs, however when debugging the main project exceptions that are handled in the DLL still get thrown! (the class ".vb" file gets loaded into the debugger and the line of the exception shows up)
Up till now i've found it useful that when an unhandled error occurs in the imported reference, it shows up in the main project with tracing back to the referenced class. But i dont want the exceptions that are handled in the reference class to be thrown when debugging the main project!
As you can see the exception thrown was handled with try...catch this class exception.vb belongs to the project that created the class library (.DLL that i referenced). i didnt even load the project that built the reference so it amazes me that it could find the coding class to begin with.
View 3 Replies
Dec 3, 2009
I'm creating an application that will utilize a lot of functions for performing scientific calculations. There will also be a lot of 3D and 2D rendering in my application. Hence i will have a lot of common functions that will be utilized frequently.
I have noticed that class libraries (DLL's) are utilized in applications similar to mine, and am wondering if i should utilize them in my application. The trouble is, i can't really think of what use they will be to me. The functions in my application will only be called upon by my application, so i do not need to make my functions accessible to others. The only other benefit i can see from using DLL's is reduced memory usage and .exe size.
Whats the benefit of using DLL's instead of just creating a bunch of modules in my application to store my functions? I have read that another benefit of using DLL's is they are easier to maintain and update as you can update the DLL rather than your entire application. I dont quite understand this, as if you are going to utilize new and updated functions you have added to your DLL's, then you will need to update the code that calls them as well. So again i don't see the benefit in using DLL's in my application.
View 4 Replies
Dec 6, 2009
I'm creating a class library that contains a series of functions with Try...Catch blocks to handle errors. When i run another application that uses the class library, and call a function in the library using parameters that i know should cause an error (i.e. divide by zero), i don't get an exception thrown.
Can you not use Try.. Catch blocks in external libraries? If not, how are you suppose to handle errors in these functions?
View 6 Replies
Aug 31, 2009
I've just about finished my WPF app, but I just hit a hurdle: my app needs to be totally localized (I've achieved this using databinding/RESX files & multiple cultures), and the actual program does this My problem is that I have a window where you generate reports on your progress.It's designed so that programmers will be able to design their own 'report sections', using interfaces & class libraries.Just one problem though: when I use RESX files inside these class libraries, they won't actually change even if I set their culture to the relevant culture I want to test.
View 2 Replies
Mar 22, 2012
im searching for .net class libraries that could help me in accounting and calculating payrolls and other financial processes is there any libraries like that?
View 2 Replies
Jan 14, 2010
I want to create a library (.dll) of custom dialog forms. Which type of project do i make? Class Library, Windows Forms Control Library, other? Whats the difference between the two?
View 3 Replies
Dec 7, 2009
why intellisense does not work for MessageBox.Show() in a class library? It works for MsgBox.
View 2 Replies
Jan 14, 2011
I've wrote a class library in vb. it only has a class called MathEx. Now when i add a reference to a test project, i had to refer to the class as MathEx.MathEx is there anyway i could refer to the class as simply MathEx? (in other words i do not wish to have the default namespace added to my class libraries)
View 1 Replies
Mar 13, 2009
I've got a bunch of DLL projects that I'm pulling into my application, each contains their own Settings.settings/app.config. When I compile the app and run for debugging, everything works just fine, but come deployment time I can't get my DLLs to read their own settings files.I've been doing some reading and it has become apparent that there's a couple of methods to getting each dll to read its own configuration - one is to dedicate a .dll.config to the library and the other is to embed the dll's configuration in the process.exe.config.I'm having significant issues trying to implement either and I wondered if anyone has any good docs on this - there appears to be a shortage on the Net.
I'd like a separate .dll.config for each of the libraries if possible, but in a pinch, getting each of my libraries to read their own section of the process.exe.config will he right direction because I'm so close to rolling this application out but this stumbling block is causing me a significant headache.Edit: When I merge the configuration files, I start getting TypeInitializer exceptions when I initialize objects withing my libraries. This is likely just me being retarded, but does someone have a working example of a merged config file and some basic demonstrative code for reading it from multiple assemblies?
View 3 Replies
Dec 28, 2009
After successfully running an executable file several days ago, I am suddenly encountering a number of inexplicable errors. One concerns the lack of recognition of two libraries:
microsoft.office.core
microsoft.office.interop.excel
How could they previously be found but not now?I am using another workstation but loaded (so I thought) the same application and references.
View 5 Replies
Feb 22, 2010
I'm upgrading a VB6 project that uses the DriveListBox and DirListBox controls to select one or more folders. They're not available in VB 2008 except via the Compatibility DLL, so I'm thinking about using the Windows 7 Libraries concept instead. But I don't see support for libraries anywhere; does it exist in VB2008, or will it be in VB 2010?
View 1 Replies
Jan 17, 2010
I was wondering if anyone knows of any way of statically linking all dependant DLL's to the vb.net program? I know there are ways to find the dependencies using dependency walker and other tools like that. But was curious since c++ supports the static ability to load DLL's. If not, what tools can i use to quickly package the required DLL's without having to install .net on all my systems?
View 4 Replies
Apr 21, 2011
sorry for my English, I don't speek well... I need to compile assembly in memory, that can compile another one. There is a form with one button. Here is a code of the form
Imports System
Imports System.Threading
Imports System.CodeDom
Imports System.CodeDom.Compiler
Imports System.Collections
[Code]...
View 1 Replies
Apr 11, 2009
I'm currently maintaining some old code for a company. As it would happen, the current app I'm modifying uses an older version of the in-house library (we'll call this Lib1.dll). They also have a new version of the library called Lib2.dll that improves upon the previous library in many ways.
Unfortunately, Lib2 is not backward compatible with Lib1. What's worse is that they both use the same namespace Product.Common.
How do I use Lib2 and Lib1 in the same project? Right now if I add references to both of them, VS tells me that certain classes are ambiguous (which makes sense, since they using the same namespace).
Basically, I need something like:
Imports Lib1:Product.Common.Class
I'm using VB.NET 1.1.
View 4 Replies
Jun 30, 2011
I need to access the raw .NET framework libraries ( such as System ) and etc. All of the libraries that are required by .NET programs to run. Is there a specific place on my harddrive that I can find them all?
View 1 Replies
Nov 1, 2010
I'm looking at a small remoting project in VB.NET. Initial research turns up references to msrdp.ocx which my Windows 7 Ult system doesn't have; a filesystem search on the same platform turns up MsRdpWebAccess.dll which doesn't appear to be well documented; finally hunting through COM references in Visual Studio turns up rdpencom.dll labeled "rdpcomapi 1.0 Type Library" which seems to be best documented via personal developer blogs (which isn't encouraging but is a lot better than other options).
My goal is a lightweight remoting application I can deploy to Windows 2000 Client/Server, WinXP x86/x64, Win2k3 Server, Vista x86/64, and Win2k8 Server.Is there anything DotNET Native I can use instead of one of these COM libraries? Is one of these COM libraries better for the job overall than others; and then am I going to have platform-specific compatibility issues if I don't provide support for more than 1 of them in my app?
View 5 Replies
Jul 27, 2009
I was wondering if you could tell me of any free libraries for the .NET framework (2.0) that you know of that can convert a PDF file to HTML or XML. I've seen several components that do the opposite, meaning HMTL to PDF, but not what I need. Essentially, I need the html version of my PDFs because I need to search through the text. Also, the Adobe Acrobat SDK is not an option for me, even though I know it has the exact functionality I need.
View 3 Replies
May 20, 2009
I'm looking for a library that will disassemble x86 code into some sort of object model that I can then use to write routines that analyze the code. I'm not interested in a library that converts x86 code to text disassembly--I've found more than a few of those, but they're not that useful since I want to do some work on top of the code that I disassemble. Oh, and I'd like it to be .Net code (VB or C# preferable).Program / C# x86 disassembler libraries?
View 2 Replies
Jun 21, 2010
I am trying to create an list or an array of a class.Here is my "Ingredient" class that I am trying to create a list of:[code]In my "recipe" class, I am want to create a list (or array) and I am drawing a big blank on how to do it. Can anyone point me in the right direction?
View 2 Replies
Nov 21, 2009
I am searching for the Component Class. When I go to "Add New Item" ,in my project their is no Component Class Item in VS 2008. I would like to Drag and Drop control onto my new class and I can't see how to do this ?
View 6 Replies
Apr 11, 2009
I have a 'property management class' that contains several functions and properties. I have several other classes that use the 'management class' as a property to derive the value of several of its other properties.Is there a way for me to reference the outer class from the 'management class' functions without having to pass it as a parameter? I ask because several different classes can have this 'management class' as a property and am having a hard time typing the parameter.
View 7 Replies
Feb 14, 2011
how do you compress audio file wmv with net libraries to wma MP3?
View 4 Replies
Jul 28, 2010
If you create a COMClass, I've noticed that the values in the XML Summary tag do not show in the object browser of VB6/VBA when you reference the resulting tlb file. Is there a way to have these values show up?
View 1 Replies
Dec 23, 2009
what libraries can i use to make http connections in visual basic? like cURL library for VB ?i am looking for something like cURL for visual basic.
View 1 Replies
Feb 19, 2012
At my workplace, we're having troubles with Windows 7. Folders that are supposed to be in the libraries (e.g. Documents Library) aren't appearing. While we sort the issue out via Group Policy, I'd like a "DIY fix" that people can run and keep working instead of flooding IT support with requests. From snooping around, I've found that the folders are stored in an XML file here:
[Code]...
I can edit it by hand or programatically, but there is a node called <serialized> which is a long string of alphanumeric characters. It's not necessary (I can manually add folders without this and it works fine) but I was thinking there must be a better way to go about this, so my question is:
Is there a VB.NET function or class that lets me add and query folders in the library without manually creating the XML and inserting it myself? I'm happy to do it myself, but if there is a better way to go about it, I'm all for it!
View 1 Replies
May 4, 2011
Maybe this is a stupid question....I'm looking at a project that would require me to burn a video to DVD in such a way that a traditional DVD player could play it. I've found several '3rd party tools' that do this, which is great and the direction I'll probably take.
But, I can't, for the life of me, fathom how to sit down and write a video to DVD. I know this is largely academic (Just use the available libraries!) still, I'd really like some direction on how I would/could go about doing this myself.
View 2 Replies
Apr 7, 2010
I am deploying the batch process on a production server and need to have the excel libraries loaded. The process runs at 6am and creates an excel spreadsheet that is ftp'd elsewhere. Anyhow - I cannot seem to find a way to load the libraries I need without loading Office on the production server which for obvious reasons we do not want to do. So how do I deploy this application?
View 1 Replies
Jun 6, 2012
Am writing a GPS application but I need APIs or Libraries I can easily use. It's supposed to work real time...
View 5 Replies