473,322 Members | 1,911 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,322 software developers and data experts.

References, Dependencies and Interfaces

Hi all.

I have a Web Service that I'm writing that needs to reference a VB.NET dll.
The catch is that the VB.NET dll has a dependency on a COBOL dll which I
can't load in my development environment (not a COBOL programmer), so when I
try to build a setup project for the Web Service I run into problems because
all the dependencies can't be imported.

Does anyone have suggestions on how I might get around this?

I was wondering if there is a way to use Interfaces (although I don't want
to use remoting, as dll dependencies will be on the same machine after
deployment), can Runtime Callable Wrappers be used? I don't necessarily want
to use the late binding CreateObject as that would be a bit of a hack and
I'm sure there's a way to do this.

Any help appreciated.

Sam.
Nov 22 '05 #1
3 1700
Hi Sam,

Thanks for your posting. As for the COBOL dll you mentioned, is it a pure
Managed dll( CLS compatible) or a unmanaged one( win32 or COM dll)?

If it's a unmanaged dll, we need to call it via InteropService. If this is
a COM dll, we can generate the managed Wrapper class for it( through VS.NET
or the tlbimp.exe tool). The wrapper class (just the RCW ) is pure managed
classes which can be called as strong-typed component in .net code.

Please feel free to let me know if you have any further concerns.
Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 22 '05 #2
Hi Steven. The problem isn't so much me calling the COBOL dll, but that I
can't reference a VB.NET dll that has it as a dependency. We have a
subsidiary company that uses COBOL and in order to call into their
applications we've had them write a VB.NET wrapper around several of their
business functions. When I try to reference the VB.NET dll in my Web Service
it tries to pull the COBOL dependencies in to my project, but obviously
can't find them as they can't run on my non-COBOL development machine.
Ideally what I want to do is perhaps reference some kind of interface that I
can compile against, that at runtime knows to hook into the VB.NET dll on
the destination server. Can this be done without remoting?

In the short term I'm sending them the code to the Web Service to compile in
their development environment that contains all relevant dependencies and
have them bundle it up and deploy, but in the future I would like to be able
to maintain and extend the Web Service from my end without all these
referencing issues.

Regards,

Sam.
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:Rt****************@cpmsftngxa10.phx.gbl...
Hi Sam,

Thanks for your posting. As for the COBOL dll you mentioned, is it a pure
Managed dll( CLS compatible) or a unmanaged one( win32 or COM dll)?

If it's a unmanaged dll, we need to call it via InteropService. If this is
a COM dll, we can generate the managed Wrapper class for it( through VS.NET or the tlbimp.exe tool). The wrapper class (just the RCW ) is pure managed
classes which can be called as strong-typed component in .net code.

Please feel free to let me know if you have any further concerns.
Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 22 '05 #3
Hi Sam,

Thanks for your response. OK, I see that your COBOL components are located
on a remote machine and your webservice is developed( also deploy) at
another machine which dosn't have COBOL enviorment. Then, I think we could
only use some remote method invoking mechanism since your develop or deploy
machine for the webservice won't have the COBOL runtime. In .net , there're
serveral approachs:

1. Use .net remoting

2. Still use a webservice to expose the remote COBOL component

3. Configure the COBOL component as a COM+ component and use the
ServicedComponent to access the COM+ on the COBOL machine.

Anyway, the 1,2 still need us to define some common interface classes
which the COBOL wrapper implement so that your webservice application can
compile with the interface classes.
As for the COM+ approach, we need to install the COM+ client proxy exposed
by the COBOL machine when generate the COM+ components. And .net 's
ServicedComponent provide simplified interfaces for calling COM+ components.

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 22 '05 #4

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

Similar topics

7
by: Brian Sabolik | last post by:
I'm not sure if I've broken any Object Oriented rules or not, but ... I have projects in 2 different solutions that need to use each other's methods. Therefore I may have an "update" method in...
3
by: Sam Loveridge | last post by:
Hi all. I have a Web Service that I'm writing that needs to reference a VB.NET dll. The catch is that the VB.NET dll has a dependency on a COBOL dll which I can't load in my development...
6
by: Gary James | last post by:
This may not be a direct C# question, but since I'll be using using C# for development, I thought I'd pose the question here. I'll soon be involved in the design of a new software product that...
1
by: Julia | last post by:
Hi, My asp uses .Net remote to call to MyServer 1.assuming I am not using the GAC,should I install all MyServer.dll dependencies on the Bin folder of my .Net application as well,or is it...
3
by: Eric W | last post by:
MS VC++ 7.1 - I have a project with static libs A, B and C where A depends on B anc C, also B depends on C. If I set this up in the project dependency dialog for A the Build environment puts B...
3
by: Keith F. | last post by:
Visual Studio doesn't allow circular references between projects. I have a situation where I need to allow 2 projects to reference each other. Is there any way to make Visual Studio allow this? ...
2
by: Tom | last post by:
Let's assume I have the following libraries: MainLib (DLL) MyControl (.NET user control) Now MyControl needs to call MainLib, so I have a reference to MainLib in MyControl. Let's then assume...
2
by: Slawek | last post by:
Hi, I know that this is one of the topics that are most popular but I just have to ask. Can anyone give me some links, info etc about following question: - how to reduce code dependencies -...
6
by: Jeff S | last post by:
How do interfaces help us achieve separation or reduce dependencies between classes? Suppose I have a "PersonPresenter" class and want to enable its data to be editable in a Form. I have read...
0
by: Dan Dorey | last post by:
I'm in the midst of creating a plugin framework with the goal of making it as easy as possible for myself and other developers to both create new plugins and work with existing ones. Each plugin...
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...
1
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...
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
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.