Results 1 to 2 of 2

Thread: How to create an interface assembly with custom classes????

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602

    How to create an interface assembly with custom classes????

    I am developing a winforms app that will use a printing framework for printing reports. The reports use custom classes from the printing framework as return types for methods...

    So... now can I create interface assemblies for my clients when there are custom types involved?

    For example my interface assembly might look something like this:

    VB Code:
    1. public interface EasyPrinting
    2.  
    3. public function PrintLine(byref line as CLine) as boolean
    4.  
    5. end interface

    As you can see the CLine type is a custom class(not framework class) and hence I need a reference to my CLine class in the Interface assembly, right??? But that totally defeeat the purpose of using interface assemblies... I don't want to distribute the easyprinting framwork (which includes the CLine class) with the client... I want to call the Easyprinting objects by using Client Activated Objects... The only thing I want to send to the client is the app itself along with an interface assembly to give the client access to all remote methods/classes... all db calls, printing features MQ etc is to be done by .net remoting...


    Am I making any sense?
    kind regards
    Henrik

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    If you are giving them an assembly with all the interfaces then just convert the method to take the interface of CLine instead of the class, that way it'll be in the assembly as well.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width