Class Library

Hi I am currently doing a project to create an Internet Class Library in Java this will involve the the creatio of sepcialised methods to perform certain tasks.
I intend to demonstrate my class library witht he crreation f an Internet banking system which will perform tasks such as caluclationg balance, chaging address etc.
Could anyone please forward me to any usefu sites or give me any advice or information?

My advice is that you
o do some thinking about how you will organize the classes - which are general, which are application specific.
o write it down
o post it and ask for comment.

Similar Messages

  • How can i change the class in the Class Library project to be static or public so i can use it from the windows application project ?

    First i know that when i make any changes to the class library project i need to rebuild the project then to remove the Capture.dll from the TestScreenshot project and then to add again the updated Capture.dll
    The problem for example in this case i'm trying to use a public static variable i add in the DXHookD3D9.
    In the DXHookD3D9 i added this public static variable:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    //using SlimDX.Direct3D9;
    using EasyHook;
    using System.Runtime.InteropServices;
    using System.IO;
    using System.Threading;
    using System.Drawing;
    using Capture.Interface;
    using SharpDX.Direct3D9;
    namespace Capture.Hook
    internal class DXHookD3D9: BaseDXHook
    public DXHookD3D9(CaptureInterface ssInterface)
    : base(ssInterface)
    LocalHook Direct3DDevice_EndSceneHook = null;
    LocalHook Direct3DDevice_ResetHook = null;
    LocalHook Direct3DDevice_PresentHook = null;
    LocalHook Direct3DDeviceEx_PresentExHook = null;
    object _lockRenderTarget = new object();
    Surface _renderTarget;
    public static decimal framesperhourtodisplay = 0;
    protected override string HookName
    get
    return "DXHookD3D9";
    List<IntPtr> id3dDeviceFunctionAddresses = new List<IntPtr>(
    framesperhourtodisplay
    The problem is i can't even get to the Capture.Hook namespace and not to the DXHookD3D9 from the TestScreenshot application window project.
    This is a screenshot:
    For example fro the FramesPerSecond class i can use it get to it from the windows forms application.
    namespace Capture.Hook
    /// <summary>
    /// Used to determine the FPS
    /// </summary>
    public class FramesPerSecond
    int _frames = 0;
    int _lastTickCount = 0;
    float _lastFrameRate = 0;
    Since it's public i guess.
    But if i will change the DXHookD3D9 class from internal to public:
    public class DXHookD3D9: BaseDXHook
    I will get error on the DXHookD3D9: 
    Error 1
    Inconsistent accessibility: base class 'Capture.Hook.BaseDXHook' is less accessible than class 'Capture.Hook.DXHookD3D9'
    And the BaseDXHook class:
    namespace Capture.Hook
    internal abstract class BaseDXHook: IDXHook
    protected readonly ClientCaptureInterfaceEventProxy InterfaceEventProxy = new ClientCaptureInterfaceEventProxy();
    public BaseDXHook(CaptureInterface ssInterface)
    this.Interface = ssInterface;
    this.Timer = new Stopwatch();
    this.Timer.Start();
    this.FPS = new FramesPerSecond();
    Interface.ScreenshotRequested += InterfaceEventProxy.ScreenshotRequestedProxyHandler;
    Interface.DisplayText += InterfaceEventProxy.DisplayTextProxyHandler;
    InterfaceEventProxy.ScreenshotRequested += new ScreenshotRequestedEvent(InterfaceEventProxy_ScreenshotRequested);
    InterfaceEventProxy.DisplayText += new DisplayTextEvent(InterfaceEventProxy_DisplayText);
    ~BaseDXHook()
    Dispose(false);
    How can i solve it so i can use the variable framesperhourtodisplay in the DXHookD3D9 class with the TestScreenshot windows forms application ?

    Hi,
    I dont know if it will work here, since I dont know the complete structure, but the base call must be public, if the derived class is public, so the base class is at least as accessible as the derived class.
    Try make the base class public. (And maybe the base-class IDXHook of the base also...)
    Or use a different approach and make only the properties public that are needed to be public by adding an extra class...
    A structure could look like:(you need to create a class thats public in your dll and expose a property, and set this property in the internal class...)
    In the Accessing class (here Form1)
    public partial class Form1 : Form
    public Form1()
    InitializeComponent();
    private void Form1_Load(object sender, EventArgs e)
    C c = new C();
    MessageBox.Show(B.F.ToString());
    and in the class Lib:
    internal class A
    public A()
    B.F = DateTime.Now.Millisecond;
    public class B
    public static int F { get; set; }
    public class C
    public C()
    A a = new A();
    (add a referenc to the class lib from the accessing project)
    Regards,
      Thorsten

  • Set image path in java class library

    Hi,
    I created a java class library project and made .jar file. My java class library contains .jpg files in separete folder named as Images. My .jar file contains list of classes and image folder also but when i am using .jar file in applet. java class library is working but images are not shown. Let me know how to create imageicon to show images also in the class library

    ImageIcon icon = new ImageIcon(getClass().getResource(path-to-file));

  • Class library in a web app and config files

    I built some class libraries and included them in a web project. Where do I put configuration files so the class library can access them? no matter where I put it, i keep getting file not found. What I've been doing is having a JSP read the config details and pass it to the class library. Is there another way?

    I guess the question is where IT thinks the file is? What code are you using to load it?
    I guess what I'm asking is where is the default folder for FileInputStream?The default folder is your runtime working directory. More often than not thats the "bin" directory of Tomcat. Not a great place to go looking for files.
    getResource() and all that can be accessed from the JSP but those aren't available to me from within the class libraries. Are you saying you don't have access to a ClassLoader object that you can call getResource or getResourceAsStream on? You should be able to access things in the WEB-INF/classes directory in that way.
    Given a web app, my first inclination would be to use the ServletContext.getResourceAsStream method.
    Rather than passing in a file name, why not an InputStream, or byte[] ?
    cheers,
    evnafets

  • Creating a class library in VS2013 that can be referenced by a VB6 application and newer applications

    I need to create a class library in VS2013 that can be referenced by a VB6 application and newer applications. I heard something about
    COM Interop but have no idea where to start. I am assuming I would develop a class library in VS2013 and then package the assembly for COM. Any good sample projects on this out there?

    Hello,
    >> Any good sample projects on this out there?
    Not suer if you are using C# as the develop language, if it is, i think you would find a lot of articles about this topic with your favorite search engine, here are some related links:
    COM Interop Part 1: C# Client Tutorial
    COM Interop Part 2: C# Server Tutorial
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to insert null in C++ Class library

    I am using oo4o Class library. I am inserting arrays into the database
    This is my code (it is simplified):
    // C++ Code
    OStartup();
    oRes = m_o_Session.Open(); // m_o_Session is OSession // oRes is oresult
    oRes = m_o_db.Open(m_o_Session,sSource,sUser,sPassword); // m_o_db is ODatabase
    oRes = m_o_db.BeginTrans();
    // the insert proccess
    // Add Params
    OParameterCollection oParamCol = oDB.GetParameters();
    OParamArray o_NUM_INDEX_Ary = oParamCol.AddTable("xi_lv_NUM_INDEX",OPARAMETER_INVAR,OTYPE_NUMBER,10);
    OParamArray o_TEXT_Ary = oParamCol.AddTable("xi_sv_TEXT",OPARAMETER_INVAR,OTYPE_VARCHAR2,10,250);
    OParamArray o_NUMBER_OPT_Ary = oParamCol.AddTable("xi_dv_NUMBER_OPT",OPARAMETER_INVAR,OTYPE_NUMBER,10);
    for(int i =0;i<10;i++){
    o_NUM_INDEX_Ary.SetValue(i,i);
    o_TEXT_Ary.SetValue("asdasd",i);
    o_NUMBER_OPT_Ary.SetValue(??????,i);
    oRes = oDB.ExecuteSQL("INSERT INTO GEN_TABLE_TEST_T (NUM_INDEX,TEXT,NUMBER_OPT) VALUES (:xi_lv_NUM_INDEX,:xi_sv_TEXT,:xi_dv_NUMBER_OPT)");
    oParamCol.Remove("xi_lv_NUM_INDEX");
    oParamCol.Remove("xi_sv_TEXT");
    oParamCol.Remove("xi_dv_NUMBER_OPT");
    oRes = m_o_db.CommitTrans();
    oRes = m_o_db.Close();
    m_o_Session.Close();
    OShutdown();
    my question is where I marked ?????? I want to insert null to a numeric field
    I tried to put NULL instead of ?????? - does not work
    I tried to put OValue initialized with null instead of ?????? - does not work
    and I need to send him in the insert Sql because sometimes it does not null and i have to give him value.
    thanks is advance
    Yoav

    Just create an empty OValue object:
    OValue nullv; // construct null value
    then call the appropriate SetValue method...
    xxx.SetValue(nullv);
    Should do it.

  • What is a class library?

    can someone tell me what a class library is? examples would be helpful thanks

    A bunch of associated classes, meant to be used by other classes.
    Typically these classes are focused on a particular area of functionality, for example, an "email library" or "3d graphics library".
    The classes in the library do not know about the other classes that use it. (But the classes that use the library know about it, obviously.)
    In java, typically bundled in a jar file.
    There's probably a much better description somewhere.

  • Java class library method definition is visible in debugging!!!!!

    I create a jar by using java class library project option, and when i am using it in other project, it is displaying all code inside the library, i implement security inside the java library, it contains some key ...... is there any way to hide the code? or how to hide my logic when i submit it to client...
    is there any tool for this or is there are any technique to create a dll like microsoft supply.

    rohit pathak wrote:
    thanks for your time gimbal2 ,
    I tested it and it is working fine, i choose the option
    Exclude from jar file - **/*.java
    and its worked out.could you tell me about security of this class library (.jar file) ? Although i used required code { code which omit .java file during packaging } , is this is secure? or we can get the code { key in my case } from .jar file by any java tool.As you have already noticed through your other thread - yes you can.
    how to secure code in java..

  • Java Class Library

    What's the online Java Class Library reference site?
    I swore it was on this Java.sun.com site, but I can't seem to locate it again.
    Thanks,
    MB

    Are you looking for http://java.sun.com/j2se/1.3/docs/api/index.html by any chance ?

  • Creating a class member VI from a template locks the class library.

    I have a LabVIEW (8.6.1) class where I need to create a number of very similar member VI's.  In order to make this process more convenient, I created a couple of VI templates.  However, I've found that creating a new VI from the template always locks the class library.  The library then remains locked until I close and reopen the project.
    When I select "Why is library locked?" from the context menu, I'm told:
    "The library is locked because:  This LabVIEW class is loaded in multiple application instances.  Classes must be in only a single application instance to be edited.  The containing library is locked."
    I have the same problem if I create a new project (see attached ZIP file), add a class, and then add two templates.  Everything seems OK if I have only one template.
    Am I doing something wrong, is this a bug in LabVIEW, or do I misunderstand the expected/intended behavior of template VI's?  Is there a way to "unlock" the class library without closing and reopening the project?
    Thanks in advance,
    Mark Moss
    Attachments:
    Locked Class Library Problem.zip ‏17 KB

    Hello,
    >> Any good sample projects on this out there?
    Not suer if you are using C# as the develop language, if it is, i think you would find a lot of articles about this topic with your favorite search engine, here are some related links:
    COM Interop Part 1: C# Client Tutorial
    COM Interop Part 2: C# Server Tutorial
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • OO4O & C++ : COM or class library?

    Hi,
    What do you choose when using OO4O in C++? Do you use raw COM calls, or do you use the OO4O C++ library?
    I haven't seen much talks about the OO4O C++ library here, or anywhere else on the net.
    Thanks

    The C++ class library is certainly the easiest route to take. You should find the OO4O help file sufficent for reference purposes.
    I have not come across anything that you can do using the COM interface directly that you can not do using the C++ library (except blob handling way back in version 3.3.0.0.0)

  • Could i use page unload event in Class Library (Web part)?

    Hi,
    I am creating Web Part using visual studio class library. I am going to deploy it in SharePoint environment.
    I want to do some functionality while page unload. Is there anything like that?
    Could anyone tell about it?
    Thanks & Regards
    Poomani Sankaran

    Hi,
    According to your description, my understanding is that you want to create a web part programmatically and then do some functionality in the page unload event.
    There is a web part method called WebPart.OnUnload method, you can override this method and add the custom code to the override method.
    Here are some detailed articles for your reference:
    https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webpartpages.webpart.onunload(v=office.14).aspx
    http://www.codeproject.com/Articles/25019/Developing-SharePoint-WebParts
    Thanks
    Best Regards
    Jerry Guo
    TechNet Community Support

  • Oracle Spatial Java Class Library Download?

    Hello,
    where can I download the Oracle Spatial Java Class Library? I installed OracleXE which can handle SDO_GEOMETRY types and now need the java library for programming against the database.
    greetings
    Peter

    If you mean by samples that show you how to manipulate Geometry types than you can find this tutorial using java and connecting to your DB via Oracle Spatial Network Data Model (NDM) https://spatial.samplecode.oracle.com/servlets/ProjectProcess?pageID=0Zl7oV
    My personal experience, it would be good idea to have oracle 11g Release 2 installed.
    It shows you different ways to query spatial data. You might also be interested in this documentation on oracle Topology and NDM Developers guide: http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28399.pdf

  • Java Class Library (SDOAPI)

    Greetings,
    Using Oracle Spatial Java Class Library (SDOAPI) GeometryAdapter.importGeometry method on the following geometry causes a InvalidGeometryException to be thrown.
    SDO_GEOMETRY(3001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1),
    SDO_ORDINATE_ARRAY(27.3384, 81.4328, 0, 587581.22, 4789617.17, 0))
    This geometry appears to be valid according to the SDO_GEOM.VALIDATE_LAYER and SDO_GEOM.VALIDATE_GEOMETRY functions.
    How can this geometry be read using the SDOAPI?
    Thanks,
    Jeff

    Daniel,
    Thank you for the prompt response and valuable information. My registration contains my accurate e-mail address. Please notify as soon this bug fix is available.
    Thank You,
    Jeff

  • Java RFC Class Library

    Hi,
    I'm an SAP programmer (not a Basis person).  I want to write a Java application (using Eclipse) that has to communicate with SAP backend system.  Where can I find Java RFC Class Library to install on my laptop?  I have SAP Frontend installed on my laptop.  Will I find it under SAP Frontend folder?  OR can it be downloaded from a website?
    Thanks

    Try this link....  This is for the JCo adapter - SAP Java Connector is only available from SAP for connecting Java Applications to SAP systems.
    https://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000463649
    Or see OSS Note: http://service.sap.com/~form/handler?_APP=01100107900000000342&_EVENT=DISPL_TXT&_NNUM=413708/
    /people/sap.user72/blog/2005/12/27/first-eclipse-plug-in-for-xi
    http://sourceforge.net/projects/xi-plugins-sdn
    http://weblog.cemper.com/a/200309/25-sap2java-generator-eclipse-plugin.php
    http://eclipsesap2java.sourceforge.net/
    Message was edited by: Barry Neaves - added links to Eclipse plug-in and information.

  • How to avoid having to clean a portable class library every time?

    WinRT Project Foo references a portable class library PCLFoo.  Whenever a change is made to Foo and it is run (by pressing F5 or Ctr+F5), the following error occurs:
    The type or namespace name 'PCLFoo' could not be found (are you missing a using directive or an assembly reference?)
    Everything will be fine after cleaning PCLFoo (right-click >Clean).  Is there a way to avoid having to do this cleaning every time?
    Hong

    Hi Jack,
    I will try to reproduce it in a brand new solution.
    The following is the VS:
    Microsoft Visual Studio Ultimate 2013
    Version 12.0.31101.00 Update 4
    Microsoft .NET Framework
    Version 4.5.51650
    Installed Version: Ultimate
    Architecture and Modeling Tools   06181-004-0451047-02055
    Microsoft Architecture and Modeling Tools
    UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.
    LightSwitch for Visual Studio 2013   06181-004-0451047-02055
    Microsoft LightSwitch for Visual Studio 2013
    Team Explorer for Visual Studio 2013   06181-004-0451047-02055
    Microsoft Team Explorer for Visual Studio 2013
    Visual Basic 2013   06181-004-0451047-02055
    Microsoft Visual Basic 2013
    Visual C# 2013   06181-004-0451047-02055
    Microsoft Visual C# 2013
    Visual C++ 2013   06181-004-0451047-02055
    Microsoft Visual C++ 2013
    Visual F# 2013   06181-004-0451047-02055
    Microsoft Visual F# 2013
    Visual Studio 2013 Code Analysis Spell Checker   06181-004-0451047-02055
    Microsoft® Visual Studio® 2013 Code Analysis Spell Checker
    Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.
    The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.
    Windows Phone SDK 8.0 - ENU   06181-004-0451047-02055
    Windows Phone SDK 8.0 - ENU
    AnkhSVN - Subversion Support for Visual Studio   2.5.12478.19
    AnkhSVN - Subversion Support for Visual Studio 2.5.12478.19
     * Ankh.Package 2.5.12478.19
     * Subversion 1.8.10 via SharpSvn 1.8010.3368.58
    SharpSvn is linked to: Apr 1.5.1, Apr-util 1.5.4, Cyrus Sasl 2.1.25, eXpat 2.0.1, OpenSSL 1.0.1j 15 Oct 2014, serf 1.3.8, SQLite 3.7.17, Subversion 1.8.10-SharpSvn-1.8.10, ZLib 1.2.8
    SharpSvn is optionally linked to: Berkeley DB 4.4.20, SharpPlink 1.8010.3368.58
    Application Insights Tools for Visual Studio Package   1.0
    Application Insights Tools for Visual Studio
    ASP.NET and Web Tools   12.4.51016.0
    Microsoft Web Developer Tools contains the following components:
    Support for creating and opening ASP.NET web projects
    Browser Link: A communication channel between Visual Studio and browsers
    Editor extensions for HTML, CSS, and JavaScript
    Page Inspector: Inspection tool for ASP.NET web projects
    Scaffolding: A framework for building and running code generators
    Server Explorer extensions for Microsoft Azure Websites
    Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Microsoft Azure
    ASP.NET Web Frameworks and Tools 2012.2   4.1.21001.0
    For additional information, visit
    http://go.microsoft.com/fwlink/?LinkID=309563
    ASP.NET Web Frameworks and Tools 2013   5.2.21010.0
    For additional information, visit http://www.asp.net/
    Common Azure Tools   1.3
    Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
    Microsoft Advertising SDK for Windows Phone 8.1 Silverlight   8.1.50112.0
    Microsoft Advertising SDK for Windows Phone 8.1 Silverlight
    Build 8.1.50112.0
    Microsoft Azure HDInsight HQL Service   1.0.0000.0
    Language service for Hive query
    Microsoft Azure HDInsight Tools for Visual Studio   1.0.0000.0
    An integrated development environment for HDInsight application development.
    Microsoft Azure Mobile Services Tools   1.3
    Microsoft Azure Mobile Services Tools
    Microsoft Azure Tools   2.4
    Microsoft Azure Tools for Microsoft Visual Studio 2013 - v2.4.20730.1601
    Microsoft Azure Tools   2.5
    Microsoft Azure Tools for Microsoft Visual Studio 2013 - v2.5.21104.1601
    NuGet Package Manager   2.8.50926.663
    NuGet Package Manager in Visual Studio. For more information about NuGet, visit
    http://docs.nuget.org/.
    Office Developer Tools for Visual Studio 2013 ENU   12.0.31105
    Microsoft Office Developer Tools for Visual Studio 2013 ENU
    PowerShell Tools   1.3
    Provides file classification services using PowerShell
    PreEmptive Analytics Visualizer   1.2
    Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
    SQL Server Data Tools   12.0.41025.0
    Microsoft SQL Server Data Tools
    Telerik Windows 8 XAML VSExtensions   2014.5.1021.0
    Telerik UI for Windows 8 XAML VSExtensions
    Telerik Windows Phone VSExtensions   2015.2.317.0
    Telerik UI for Windows Phone VSExtensions
    Visual Studio Spell Checker   VSSpellChecker
    An editor extension that checks the spelling of comments, strings, and plain text as you type.
    Web Essentials 2013   2.5.3
    Adds many useful features to Visual Studio for web developers.
    Windows Azure Tools   2.2
    Windows Azure Tools for Microsoft Visual Studio 2013 - v2.2.11003.1601
    Windows Azure Tools   2.3
    Windows Azure Tools for Microsoft Visual Studio 2013 - v2.3.20320.1602
    Windows Phone 8.1 SDK Integration   1.0
    This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.
    Workflow Manager Tools 1.0   1.0
    This package contains the necessary Visual Studio integration components for Workflow Manager.
    Git Extensions
    Git Extensions is a graphical interface for Git
    For more information about Git Extensions, see the Git Extensions website at
    http://code.google.com/p/gitextensions/
    Copyright © 2012 Henk Westhuis
    Hong

Maybe you are looking for

  • SRM 5.0 - Approver Names Not Displaying in Approval Preview

    Hi, Has anyone experienced the following problem in the approval preview applet? We’re using the WS14000133 shopping cart approval workflow. The approval preview stopped working once we moved it to production January 1. The approval preview in produc

  • Website software for MAC and PC?

    HI all, I am about to build my first website. Can anyone tell me if there is some software which i can use on my MAC to build and upload a website, but which can be viewed and edited by another person on a PC. I was hoping to use Freeway express to b

  • Sencronization with iTunes for e-mail account details

    Dear Friends, I would like to sync with iphone > itunes for my contanct details and calenders. But when I made it, it also takes the e-mail details automatically that I don't want. Because my iphone works with IMAP and computer (microsoft outlook acc

  • Linking Query group to an SAP role

    I am able to link the Query group to the role but when we test the user does not have access to it. I know this used to be a problems years ago that I thought was fixes. Any ideas on how to get this to work?

  • Page never completely loads (busy circle)

    In Firefox the green busy circle (in the upper tab) stays in an endless loop indicating that it's trying to load something. Is this "normal"?  Perhpas it does this when there are audio clips that are set to not autoplay? I ran a site report. No error