473,326 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Using a project reference rather than assembly reference prevents an interface from working

This seems like a strange one, but perhaps someone can shed some
light.

I have an interface: ItciEngine implemented by class tciEngine. Two
public methods in this class pass an object I've created: uiMessage:

Public Function TesterInteract(ByVal luiMessage As IuiMessage) As
IuiMessage
Implements ItciEngine.TesterInteract

Public Sub UiComplete(ByVal returnMessage As IuiMessage) Implements
ItciEngine.UiComplete

In order to pass the uiMessage objects, I've implemented an interface
to the uiMessage: IuiMessage. Passing the interface (IuiMessage)
rather than the object (uiMessage) allows me to pass the user-defined
objects across the ItciEngine interface.

I build the uiMessage class and IuiMessage interface as a .dll in a
uiMessage project. I build the ItciEngine interface as a separate
..dll in an ItciEngine project.

tciEngine is built in the main application project.

Now... this all works fine as long as I don't use a project reference
to IuiMessage in my main project. If I:

1. Remove the reference to the IuiMessage.dll in the main project
2. Add a project reference to the IuiMessage project in the main
project
3. Rebuild the solution

Then the Task List complains about my interface methods above:

C:\Scott\dotNet\tciApp\tciEngine.vb(9): 'tciApp.tciEngine' must
implement 'Overridable Function TesterInteract(luiMessage As
IuiMessage) As IuiMessage' for interface 'ItciEngine'.

C:\Scott\dotNet\tciApp\tciEngine.vb(9): 'tciApp.tciEngine' must
implement 'Overridable Sub UiComplete(returnMessage As IuiMessage)'
for interface 'ItciEngine'.

C:\Scott\dotNet\tciApp\tciEngine.vb(190): 'TesterInteract' cannot
implement 'TesterInteract' because there is no matching function on
interface 'ItciEngine'.

C:\Scott\dotNet\tciApp\tciEngine.vb(194): 'UiComplete' cannot
implement 'UiComplete' because there is no matching sub on interface
'ItciEngine'.

It's complaining about the interface on line 9 for both functions
informing me that I must implement for the interface. Then it's
complaining about the way I've implemented.

So... am I doing something here that I shouldn't be? If I switch the
reference back to an assembly reference, all is good again.

Scott.
Nov 20 '05 #1
0 1057

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Terry | last post by:
I'm building some dll assemblies that have in them the implementation of an abstract class defined in a different assembly. I'm trying to create objects of the type defined in the dlls with...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
0
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
21
by: Al Christoph | last post by:
I posted this last week end in the MSDN forums. No luck there. Let's see what the experts here have to say:-)))) I have a rather convoluted project. The distributable will come in eight...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.