class-library

Setting up java3d on os x leopard

I have recently installed OS X on my MBP and am wanting to set up java3d on it. I have set this up on windows which proved a lot easier with the installer provided. the mac install instructions can be found here: http://inverse.chi.googlepages.com/README-unzip.html I have placed both the j3d and jogl libs in my home directory /Users/ma...

How to get the current directory on a class library?

I've been looking around but I have not found a solution for this problem: I want to create a class library that has a configuration file under a sub-directory called Configuration. I want that class library to be deployed anywhere and I want it to find its configuration files by knowing its own location. Previous attempts with Assembly...

C# Web Service and Web Site sharing library, service returns different "type" of library object

I have a Web service and a Web site (both C#) in the same solution (For now); I also have a class library in the solution. Both the web service and the web site reference this class library. The web service has a WebMethod that creates an object from the library and returns it. The website invokes this and attempts to put it into a Trai...

VC++ Charts using Chart X

Hi, I'm new to drawing the chart using chartfx can you give me the meanings of teh following methods, they are kinda confusing...I did not find documentation anywhere. GetValue ( ) GetXValue ( ) PutItem() Thanks, Arjun ...

Where should I place additional classes in my MVC application

I have an ASP.NET MVC application which is using Linq to SQL classes placed in the Model folder. I want to create some extra classes that I would normally place in my BLL but I'm not sure how to work this with MVC. With WebForms I would have my DAL as a Class Library. My BLL as a class library that referenced my BLL. My Web Site that ...

What are best practises for developing class library in general and database layer specifically ?

I am going to develop a database layer to expose set of functionlaity that will provide reading and writing into our database. I have set of questions related to this, and I want someone to advice How can I handle the database exceptions ?(i.e: timeout exceptions) or leave the dll client handle them The dll will not be thread safe, so ...

Project Settings and Not set to an instance error

I am hoping someone can help point me in the right direction. I was having a StackOverFlow error with my Settings.Designer.cs file. I manually regenerated the file according to this post HERE Now my Designer file looks like it is supposed to, so they tell me, but everywhere in my Class Library(30 places) that was accessing the Settings...

How do I make Visual Studio automatically add references when I add a project to the solution?

Programming is (so far) just a hobby for me, so I try to find ways to improve, learn some basic algorithms and programming skills that might come in handy in the future. Currently I'm working my way though Project Euler and solving the puzzles there. I'm working in C#, and have set up a solution named ProjecEuler in which I add one new ...

Design strategies for class libraries that span Javascript and C#

I'm implementing some objects which will have about an equal amount of richness on both the client-side and server side. In this particular case, I'll be building a (hopefully) little class library to deal with search tokens. So as a pseudo-code example, I'll want to be able to do the equivalent of the following in both Javascript and ...

XNA Text Drawing from a DLL

I am planning on building a 2D game library for XNA, and one of the components I want to include is a simple text drawer for debug purposes. Now, to draw text with SpriteBatch you need a .spritefont file, which is an xml format file, and these seem to need to compile into a separate folder. I would prefer not to have to copy that around ...

Java Array sort: Quick way to get a sorted list of indices of an array

The problem: Consder the following floats[]: d[i] = 1.7 -0.3 2.1 0.5 What I want is an array of int[] that represents the order of the original array with indices. s[i] = 1 3 0 2 d[s[i]] = -0.3 0.5 1.7 2.1 Of course it could be done with a custom comparator, a sorted set of custom objects, or by simply sorti...

how to find java classes?

I am new to programming, I was wondering if there is a way to find the java classes I need for a particular thing other than asking people for them on forums? I have seen the APIs on sun website but there is no good search option to find the class that will work for me. ...

Why is this C# Class Library project unable to create a COM compatible DLL?

I've downloaded a C# Class Library called TreeViewAdv, that I need to use in another project as a COM DLL. It builds successfully (Release, not Debug). Registering the built DLL using "regasm" says "Types registered successfully" Registering with "gacutil" says "Assembly successfully added to cache" In the C# project settings: App...

Class library modification / migration

I have 3 class libraries. A BBL, a DAL, and a DATA (about 15 datasets). Currently 4 [major] applications utilize the functionality in these DLL's. I'm rewriting one of those applications and I need to (1) Use some of the existing functionality in the libraries (2) Change some of it (3) Add new functionality (4) Add new datasets. I'm bac...

Development/runtime Licensing mechanism for a C# class library?

I'm developing a .Net class library (a data provider) and I'm starting to think about how I would handle licensing the library to prospective purchasers. By licensing, I mean the mechanics of trying to prevent my library from being used by those who haven't purchased it, not the software license (i.e., Apache, Gnu, etc). I've never dea...

Class library with service references

Hi! I have a class library (.NET) with a reference to a web service (in some server, not a project in the same solution). The class library has a class that is exposed to COM. This class invokes the web service. When I add the service reference, this adds code to the class library's app.config. I also have a desktop application in the...

Calculating the Present Value

Present Value is the value on a given date of a future payment or series of future payments, discounted to reflect the time value of money and other factors such as investment risk. And yes, I know it's formula so don't need that. But I am wondering if this method is already predefined within the .NET libraries. I can't find it. (And I...

Product mode with a Debug DLL

I know that a class library compiled in 'Release' mode will run faster and more efficiently than one compiled in 'Debug' mode, but does anyone know to what extent? EDIT: This is for a .net dll. ...

Adding System.Web.Script reference in class library

I am currently moving code from my app_code folder to a class library. I have tagged several methods with [System.Web.Script.Serialization.ScriptIgnore] attributes. My class library cannot see this namespace. My add references dialog cannot see this namespace. How do I properly use this tag from a class library? The type or namespac...

Custom controls derrived from HtmlControl

Can custom controls derrived from HtmlControl be displayed in the toolbox? I have successfully got some WebControls in the toolbox but cannot get this one to display. I am inheriting from System.Web.UI.HtmlForm. Thanks ...