Click here to Skip to main content
15,890,527 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionadding tab control in VB6 Pin
Sakhalean19-Jul-10 3:09
Sakhalean19-Jul-10 3:09 
AnswerRe: adding tab control in VB6 Pin
E.F. Nijboer19-Jul-10 4:47
E.F. Nijboer19-Jul-10 4:47 
GeneralRe: adding tab control in VB6 Pin
Sakhalean19-Jul-10 18:55
Sakhalean19-Jul-10 18:55 
AnswerRe: adding tab control in VB6 Pin
Neville Nazerane20-Jul-10 1:48
Neville Nazerane20-Jul-10 1:48 
GeneralRe: adding tab control in VB6 Pin
E.F. Nijboer20-Jul-10 6:00
E.F. Nijboer20-Jul-10 6:00 
AnswerRe: adding tab control in VB6 Pin
Goutam Patra19-Jul-10 22:42
professionalGoutam Patra19-Jul-10 22:42 
AnswerRe: adding tab control in VB6 Pin
MikeD 227-Jul-10 3:38
MikeD 227-Jul-10 3:38 
QuestionHow to pass in class to web service? Pin
Steve van Niman18-Jul-10 5:06
Steve van Niman18-Jul-10 5:06 
Hopefully can give enough information to get pointed in the right direction.

Wrote a fairly extensive class and placed in .dll for use in a client application AND my web service. I declare the class as a one dimensional array and then try to pass into the web service; however, when I set client.class = ws.class I get a compilation error indicating that ws.class cannot be converted to client.class.

I've tried CType and DirectCast, but both complain of the same thing. Do I need to write a conversion routine in my code to parse each node of the class? There must be an easier way....

<br />
<br />
(.dll)<br />
<br />
<br />
public class Address<br />
private _x as string<br />
private _y as string<br />
get/set for x and y<br />
<br />
public sub New()<br />
_x=""<br />
_y=""<br />
end sub<br />
end class<br />
<br />
<br />
(client)<br />
<br />
dim a() as Address<br />
... read data and populate a()<br />
<br />
dim ws as new webservice.service<br />
ws.validate(a())<br />
<br />
<br />
(web service)<br />
<br />
public sub validate(byval b() as Address)<br />
<br />
<br />
<br />
When I try to run this I get a cannot convert client.a() to webservice.b() even though they implement the .dll with the same class.<br />
<br />
I don't understand what serialization does for an array, so I'm off to study how that will effect these calls.  In the mean time, if someone could point me in the proper directly, it would be greatly appreciated.<br />
<br />
<br />
<br />
<br />
<br />

AnswerRe: How to pass in class to web service? Pin
nlarson1118-Jul-10 6:13
nlarson1118-Jul-10 6:13 
GeneralRe: How to pass in class to web service? Pin
Steve van Niman18-Jul-10 6:16
Steve van Niman18-Jul-10 6:16 
GeneralRe: How to pass in class to web service? Pin
nlarson1118-Jul-10 6:42
nlarson1118-Jul-10 6:42 
GeneralRe: How to pass in class to web service? Pin
Steve van Niman18-Jul-10 7:01
Steve van Niman18-Jul-10 7:01 
GeneralRe: How to pass in class to web service? Pin
Luc Pattyn18-Jul-10 7:28
sitebuilderLuc Pattyn18-Jul-10 7:28 
GeneralRe: How to pass in class to web service? Pin
Steve van Niman18-Jul-10 8:09
Steve van Niman18-Jul-10 8:09 
GeneralRe: How to pass in class to web service? Pin
Luc Pattyn18-Jul-10 8:16
sitebuilderLuc Pattyn18-Jul-10 8:16 
GeneralRe: How to pass in class to web service? Pin
Steve van Niman18-Jul-10 8:41
Steve van Niman18-Jul-10 8:41 
GeneralRe: How to pass in class to web service? Pin
Luc Pattyn18-Jul-10 8:46
sitebuilderLuc Pattyn18-Jul-10 8:46 
QuestionAdding Attributes to XML node using VBA Pin
priyaahh17-Jul-10 7:12
priyaahh17-Jul-10 7:12 
AnswerRe: Adding Attributes to XML node using VBA Pin
DaveAuld17-Jul-10 10:08
professionalDaveAuld17-Jul-10 10:08 
GeneralRe: Adding Attributes to XML node using VBA Pin
priyaahh17-Jul-10 11:37
priyaahh17-Jul-10 11:37 
GeneralRe: Adding Attributes to XML node using VBA Pin
DaveAuld18-Jul-10 1:43
professionalDaveAuld18-Jul-10 1:43 
GeneralRe: Adding Attributes to XML node using VBA Pin
priyaahh18-Jul-10 7:39
priyaahh18-Jul-10 7:39 
GeneralRe: Adding Attributes to XML node using VBA Pin
DaveAuld18-Jul-10 7:44
professionalDaveAuld18-Jul-10 7:44 
GeneralRe: Adding Attributes to XML node using VBA Pin
priyaahh18-Jul-10 8:51
priyaahh18-Jul-10 8:51 
GeneralRe: Adding Attributes to XML node using VBA Pin
DaveAuld18-Jul-10 9:51
professionalDaveAuld18-Jul-10 9:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.