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
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