C++.NET calling VB.NET web service

F

Felix Williams

Hello all,

I'm a bit new to this, so I'm not sure if I'm going to sound stupid, but my
very simple web service is trying to return a simple string (just trying to
prove a concept at the moment). It's being called by a C++.NET application
(going to be written as an add-in for AutoCAD). My code is as follows:

<WebMethod()> _
Public Function fnGetVBString() As String
Dim s As String = "string"
Return s
End Function

couldn't be simpler. However, when the other developer tries to access it he
gets an HRESULT of 0 (rather than the 1 he gets for other web services). I
know that in more traditional apps. this interorability is complicated
because C and VB see strings differently and wondered if the same is true
here? In the walthroughs on MSDN this is not mentioned. Should I be
returning his string as a long using a declare function (got that off a C
website ;-))? If so, how do I implement this.

Any clues anyone?

Thank you,

Felix
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top