class-library

How can a .net class library be protected so it cant be referenced by other applications?

How can a .net class library project and resulting dll be protected so it cant be referenced by other applications (.net projects) except those projects in my own solution? ...

Using C++ classes in .so libraries

Hello, I'm trying to write a small class library for a C++ course. I was wondering if it was possible to define a set of classes in my shared object and then using them directly in my main program that demos the library. Are there any tricks involved? I remember reading this long ago (before I started really programming) that C++ classe...

best library to do web-scraping

I would like to get data from from different webpages such as addresses of restaurants or dates of different events for a given location and so on. What is the best library I can use for extracting this data from a given set of sites? ...

Does setbuf() affect cout?

Yet again, my teacher was unable to answer my question. I knew who may be able to... So, I've never really learned C. In C++, I would, obviously, use a cout statement all of the time. In a recent assignment, my teacher told us to make sure to put setbuf( stdout , NULL ); at the top of main() in order to get an unbuffered output, thu...

How can I call C# extension methods in VB code

I have a class library with some extension methods written in C# and an old website written in VB. I want to call my extension methods from the VB code but they don't appear in intelisense and I get compile errors when I visit the site. I have got all the required Imports because other classes contained in the same namespaces are appea...

VB .NET (.NET 2.0) Class Library configuration

I have created a class library in VB .NET. Some code in the library connects to the database. I want to create a config file that would hold the connection string. I have created a "Settings.settings" file and stored the connection string in there. When a class library having a settings file is built, it generates a ".dll.config" fil...

C# - Getting references of reference

I have built a class library project, that references a couple dll's. In the constructor of my class library project I use some enums from one of the referenced dll's. When using my class library in another project is it possible to not have to add references to my dll and the ones my class library project references internally? ...

How to create a compiled, redistributable class library in Silverlight?

Is it possible to create a small library (similar to a Flash or Flex SWC component) that can be used in Silverlight apps? Since I'm a Flash and Flex developer, I'll relate it. In Flex, if I have a SWC I can add it to my build path and then immediately use its included classes and functions in my project. Similarly, in Flash if I add a S...

Project Naming

As a beginner/intermediate developer one problem I run into as my projects get bigger and more abstracted away as i use more OOP principles I have a problem with naming things. Like when i have multiple projects or class libraries I don't know what to name them. I see things from xxx.Core to xxx.Main or have even seen xxx.BLL and xxx.D...

Where is the implementation of InternalEquals(object objA, object objB)

Hello Friends while diassembling the .Net Source Code using Reflector, I came upon the Equals implementation in the Object Class and it refers to bool InternalEquals(object objA, object objB); Which again refers to internal static extern bool InternalEquals(object objA, object objB); I am now confused regarding where to find the...

Change connection string from class library in main application at run-time

You can change the connection string at run-time like this. You make the connection string setting available for writing as a separate property inside the MySettings class: Partial Friend NotInheritable Class MySettings Public WriteOnly Property RunTimeConnectionString() Set(ByVal value) My.Settings("MyConnectionString") = value ...

Dealing with multiple standards in single class library

I'm currently working on a project which will support multiple file writing specifications (imagine if you had to support something like XML 1.0, XML 2.0, XML 3.0, etc) called ADIF. Currently there are two standards (version 1.0 and version 2.2.2), and they are both used commercially and both still heavily used. Specification version 2....

Specifying connection string in config file for a class library and re-use/modify in ASP.NET Web Application

How can one specify the connection string in a config file of a class library and later modify this when used in a ASP.NET Web Application? The Class library is a data access layer that has a Dataset connecting to a database based on a connection string specified in a config file (Settings.settings/app.config). This class library is us...

Whereabout of the RSS4J project

Anyone know what is the project home site of the RSS4J. I found several reference on Maven repositories, but can't find the original project site. Also is this project alive? ...

Enable Visual Styles for a Class Library

Hi, how do I enable visual styles when my project is a class library and it's being loaded into a program that does not have Application.EnableVisualStyles() set. I have been struggling with this for 2 days now. This is in C# (I've seen some examples for older C++ and some things that may work for VB, but nothing has been clearly laid ...

Dynamic Connection Strings for Strongly Typed DataSet in a Class Library using App.Config

This is my first question on StackOverflow.com and I'm not sure if this is the correct way to do this. I found a similar question titled: Modifying the Data Source for the Strongly Typed Dataset Connection String. However, the answer provided is not working for me. I'm not able to comment on it because I don't have enough "reputation poi...

When is it the right time to use C# class library (.dll)?

Hi, I'm a programmer who has never really used .dll files. Of cause, when I need 3rd party software, such as a graphics library, a library to help me create graphs etc. I do add the references/ddl files to my program and use them in my code. Also, it seems like you can use .dll for a lot of different things, so I'd like the topic to co...

What is the difference between a class library and a framework

I hear the whole day the terms class library, base class library, Framework, ... What highlights a framework and what a base class library? ...

Recommended Java maths/stats library

Can someone recommend a good statistics library for Java - it must include the ability to calculate the correlation of two data sets. I have been trying to compute the correlation of two ArrayLists - for some reason I am getting an incorrect answer (checked in Excel) despite what seems to be sound logic. I found one at jfree.org which ...

Listview reference in a class library

I'm trying to access the ListView class from System.Web.UI.WebControls in my class library. So I added a reference to System.Web and expected it to then show up but unfortunately it didn't. Now I can only assume it is because the ListView is part of the 3.5 release not 2.0. So I checked my class library to make sure it is targeting 3.5 ...