473,716 Members | 2,601 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

passing custom object to webservice

Hi,

I am building an architecture that passes my custom objects to and from
webservices. (Our internal architecture requires me to use webservices to any
suggestion to use other remoting techniques are not feasible)

The question is;

Given that I have a Person object with a private set for id.
What is the recommended approac in passing that object to the web service
and still retain the value of id?

Getting the object from the webservice is no problem since I only use the
generated proxy class to achieve this.

Should I create a PersonData with public properties that I pass up to the
webservice or is there any other way?
This could be tricky since if the person object have a list och subitems the
PersonData would need that aswell creating a lot of code doing the same
thing...

I can not use interface because the webservice can not serialize that.

Any pointers to design guidelines or similar is appreciated.
(WCF is not an option right now)

Thanks in advance!

Regards Greger

--
----

Sep 20 '06 #1
9 3789
Greger,

It's a good question. You can pass Custom objects to and from Web Services.
In your case , the Person Object, should have Public Properties to depitct
the details of the Person Object

As long as the properties of the Person object are a primitive types, you
don't have to bother too much. Look at the sample below ...

Public Class Person
Public Property PersonId as Integer
Public Property PersonName as String
End Class

If atleast one of the Property of the Person object is a CusomCollection ,
you need to consider lot of things before passing objects to and from web
services.
The following scenario has address collection inside Person Object

Public Class Person
Public Property PersonId as Integer
Public Property PersonName as String
Public Propery PersonAddress as AddressCollecti on
End Class

In such case the Custom Collections are not transmitted directly between web
services and clients. Meaning Custom Collections are passed as Array of
Objecs.
If if it is passed as Array of Objects, you loose tight coupling between
Person Object and AddressCollecti on property. In this scenario you really
need to figure out a way to maintain the tight coupling between Person Object
and AddressCollecti on Propery.
The way to do is to enable tight coupling with PersonId. Meaning
have a defintion for PersonId in the AddressCollecti on.

Please let me know if this reply is useful. If you need more information let
me know.
-
Thanks & Regards,
Sundar Narasimman

"Greger" wrote:
Hi,

I am building an architecture that passes my custom objects to and from
webservices. (Our internal architecture requires me to use webservices to any
suggestion to use other remoting techniques are not feasible)

The question is;

Given that I have a Person object with a private set for id.
What is the recommended approac in passing that object to the web service
and still retain the value of id?

Getting the object from the webservice is no problem since I only use the
generated proxy class to achieve this.

Should I create a PersonData with public properties that I pass up to the
webservice or is there any other way?
This could be tricky since if the person object have a list och subitems the
PersonData would need that aswell creating a lot of code doing the same
thing...

I can not use interface because the webservice can not serialize that.

Any pointers to design guidelines or similar is appreciated.
(WCF is not an option right now)

Thanks in advance!

Regards Greger

--
----
Sep 20 '06 #2
Hi Sundar,
Thanxs for the reply.
The gist of the question is when I send the proxy object to the server and
the server tries to recreate my object. It wont be able to set the,
intentionally, private set property. Leaving my object without essential data.

How can I have the framework deserialize my object correctly even though it
has a pricate set?

Regards Greger

--
----

"Sundar Narasimman" wrote:
Greger,

It's a good question. You can pass Custom objects to and from Web Services.
In your case , the Person Object, should have Public Properties to depitct
the details of the Person Object

As long as the properties of the Person object are a primitive types, you
don't have to bother too much. Look at the sample below ...

Public Class Person
Public Property PersonId as Integer
Public Property PersonName as String
End Class

If atleast one of the Property of the Person object is a CusomCollection ,
you need to consider lot of things before passing objects to and from web
services.
The following scenario has address collection inside Person Object

Public Class Person
Public Property PersonId as Integer
Public Property PersonName as String
Public Propery PersonAddress as AddressCollecti on
End Class

In such case the Custom Collections are not transmitted directly between web
services and clients. Meaning Custom Collections are passed as Array of
Objecs.
If if it is passed as Array of Objects, you loose tight coupling between
Person Object and AddressCollecti on property. In this scenario you really
need to figure out a way to maintain the tight coupling between Person Object
and AddressCollecti on Propery.
The way to do is to enable tight coupling with PersonId. Meaning
have a defintion for PersonId in the AddressCollecti on.

Please let me know if this reply is useful. If you need more information let
me know.
-
Thanks & Regards,
Sundar Narasimman

"Greger" wrote:
Hi,

I am building an architecture that passes my custom objects to and from
webservices. (Our internal architecture requires me to use webservices to any
suggestion to use other remoting techniques are not feasible)

The question is;

Given that I have a Person object with a private set for id.
What is the recommended approac in passing that object to the web service
and still retain the value of id?

Getting the object from the webservice is no problem since I only use the
generated proxy class to achieve this.

Should I create a PersonData with public properties that I pass up to the
webservice or is there any other way?
This could be tricky since if the person object have a list och subitems the
PersonData would need that aswell creating a lot of code doing the same
thing...

I can not use interface because the webservice can not serialize that.

Any pointers to design guidelines or similar is appreciated.
(WCF is not an option right now)

Thanks in advance!

Regards Greger

--
----
Sep 20 '06 #3
Wow, I didn't even know this was possible... so, you can serialize
custom classes in .net and send them over the web? I am understanding
this right?

Ben

Sundar Narasimman wrote:
Greger,

It's a good question. You can pass Custom objects to and from Web Services.
In your case , the Person Object, should have Public Properties to depitct
the details of the Person Object

As long as the properties of the Person object are a primitive types, you
don't have to bother too much. Look at the sample below ...

Public Class Person
Public Property PersonId as Integer
Public Property PersonName as String
End Class

If atleast one of the Property of the Person object is a CusomCollection ,
you need to consider lot of things before passing objects to and from web
services.
The following scenario has address collection inside Person Object

Public Class Person
Public Property PersonId as Integer
Public Property PersonName as String
Public Propery PersonAddress as AddressCollecti on
End Class

In such case the Custom Collections are not transmitted directly between web
services and clients. Meaning Custom Collections are passed as Array of
Objecs.
If if it is passed as Array of Objects, you loose tight coupling between
Person Object and AddressCollecti on property. In this scenario you really
need to figure out a way to maintain the tight coupling between Person Object
and AddressCollecti on Propery.
The way to do is to enable tight coupling with PersonId. Meaning
have a defintion for PersonId in the AddressCollecti on.

Please let me know if this reply is useful. If you need more information let
me know.
-
Thanks & Regards,
Sundar Narasimman

"Greger" wrote:
Hi,

I am building an architecture that passes my custom objects to and from
webservices. (Our internal architecture requires me to use webservices to any
suggestion to use other remoting techniques are not feasible)

The question is;

Given that I have a Person object with a private set for id.
What is the recommended approac in passing that object to the web service
and still retain the value of id?

Getting the object from the webservice is no problem since I only use the
generated proxy class to achieve this.

Should I create a PersonData with public properties that I pass up to the
webservice or is there any other way?
This could be tricky since if the person object have a list och subitems the
PersonData would need that aswell creating a lot of code doing the same
thing...

I can not use interface because the webservice can not serialize that.

Any pointers to design guidelines or similar is appreciated.
(WCF is not an option right now)

Thanks in advance!

Regards Greger

--
----
Sep 21 '06 #4
Hi Ben,

Yes you are right. You can serialize custom objects over the web . You can
even serialize custom object collections.

Thanks & Regards,
Sundar

"Ben Joyce" wrote:
Wow, I didn't even know this was possible... so, you can serialize
custom classes in .net and send them over the web? I am understanding
this right?

Ben

Sundar Narasimman wrote:
Greger,

It's a good question. You can pass Custom objects to and from Web Services.
In your case , the Person Object, should have Public Properties to depitct
the details of the Person Object

As long as the properties of the Person object are a primitive types, you
don't have to bother too much. Look at the sample below ...

Public Class Person
Public Property PersonId as Integer
Public Property PersonName as String
End Class

If atleast one of the Property of the Person object is a CusomCollection ,
you need to consider lot of things before passing objects to and from web
services.
The following scenario has address collection inside Person Object

Public Class Person
Public Property PersonId as Integer
Public Property PersonName as String
Public Propery PersonAddress as AddressCollecti on
End Class

In such case the Custom Collections are not transmitted directly between web
services and clients. Meaning Custom Collections are passed as Array of
Objecs.
If if it is passed as Array of Objects, you loose tight coupling between
Person Object and AddressCollecti on property. In this scenario you really
need to figure out a way to maintain the tight coupling between Person Object
and AddressCollecti on Propery.
The way to do is to enable tight coupling with PersonId. Meaning
have a defintion for PersonId in the AddressCollecti on.

Please let me know if this reply is useful. If you need more information let
me know.
-
Thanks & Regards,
Sundar Narasimman

"Greger" wrote:
Hi,
>
I am building an architecture that passes my custom objects to and from
webservices. (Our internal architecture requires me to use webservices to any
suggestion to use other remoting techniques are not feasible)
>
The question is;
>
Given that I have a Person object with a private set for id.
What is the recommended approac in passing that object to the web service
and still retain the value of id?
>
Getting the object from the webservice is no problem since I only use the
generated proxy class to achieve this.
>
Should I create a PersonData with public properties that I pass up to the
webservice or is there any other way?
This could be tricky since if the person object have a list och subitems the
PersonData would need that aswell creating a lot of code doing the same
thing...
>
I can not use interface because the webservice can not serialize that.
>
Any pointers to design guidelines or similar is appreciated.
(WCF is not an option right now)
>
Thanks in advance!
>
Regards Greger
>
--
----
>

Sep 21 '06 #5
Hi Greger,

Niow I can understand your problem better.
There is a way to do that. You can have a Public method in the Remote Object
to update the private property/member of the class.

Your remote Person object can have public and private properties/method.
As you know only Public properties/methods would be serialized back and
forth between Web Services and the Client. Meaning at the client-side, the
proxy will reflect only Public Properties/Methods of the remote object.

You can still call the Public method of the proxy, that inturn will get
executed at the server-side to update your private property/member.

This is really possible.

Pls let me know whether this is useful or you need more information
regarding this
--
Thanks & Regards,
Sundar Narasimman
Technology Specialist
Microsoft .NET
"Greger" wrote:
Hi Sundar,
Thanxs for the reply.
The gist of the question is when I send the proxy object to the server and
the server tries to recreate my object. It wont be able to set the,
intentionally, private set property. Leaving my object without essential data.

How can I have the framework deserialize my object correctly even though it
has a pricate set?

Regards Greger

--
----

"Sundar Narasimman" wrote:
Greger,

It's a good question. You can pass Custom objects to and from Web Services.
In your case , the Person Object, should have Public Properties to depitct
the details of the Person Object

As long as the properties of the Person object are a primitive types, you
don't have to bother too much. Look at the sample below ...

Public Class Person
Public Property PersonId as Integer
Public Property PersonName as String
End Class

If atleast one of the Property of the Person object is a CusomCollection ,
you need to consider lot of things before passing objects to and from web
services.
The following scenario has address collection inside Person Object

Public Class Person
Public Property PersonId as Integer
Public Property PersonName as String
Public Propery PersonAddress as AddressCollecti on
End Class

In such case the Custom Collections are not transmitted directly between web
services and clients. Meaning Custom Collections are passed as Array of
Objecs.
If if it is passed as Array of Objects, you loose tight coupling between
Person Object and AddressCollecti on property. In this scenario you really
need to figure out a way to maintain the tight coupling between Person Object
and AddressCollecti on Propery.
The way to do is to enable tight coupling with PersonId. Meaning
have a defintion for PersonId in the AddressCollecti on.

Please let me know if this reply is useful. If you need more information let
me know.
-
Thanks & Regards,
Sundar Narasimman

"Greger" wrote:
Hi,
>
I am building an architecture that passes my custom objects to and from
webservices. (Our internal architecture requires me to use webservices to any
suggestion to use other remoting techniques are not feasible)
>
The question is;
>
Given that I have a Person object with a private set for id.
What is the recommended approac in passing that object to the web service
and still retain the value of id?
>
Getting the object from the webservice is no problem since I only use the
generated proxy class to achieve this.
>
Should I create a PersonData with public properties that I pass up to the
webservice or is there any other way?
This could be tricky since if the person object have a list och subitems the
PersonData would need that aswell creating a lot of code doing the same
thing...
>
I can not use interface because the webservice can not serialize that.
>
Any pointers to design guidelines or similar is appreciated.
(WCF is not an option right now)
>
Thanks in advance!
>
Regards Greger
>
--
----
>
Sep 21 '06 #6
Hi,

Your information is quite useful and I have one more question to it.

I am having one custom object which I accept as a parameter of my webmethod.
This object is getting generated in my proxy class of the webservice at the
consumer-end.

Now, I am not getting any of my public methods of my custom object in
generated proxy class. I am not getting even constructors.

Actually I am having one private variable of the type "object" in my custom
class "WebRespons e". Depending on the type of the value it contains, I am
having public methods to return it's value. but I am not getting any of these
public methods in the proxy class.

Is there any way out here!

Thanks,
Prerak

"Sundar Narasimman" wrote:
Hi Ben,

Yes you are right. You can serialize custom objects over the web . You can
even serialize custom object collections.

Thanks & Regards,
Sundar

"Ben Joyce" wrote:
Wow, I didn't even know this was possible... so, you can serialize
custom classes in .net and send them over the web? I am understanding
this right?

Ben

Sundar Narasimman wrote:
Greger,
>
It's a good question. You can pass Custom objects to and from Web Services.
In your case , the Person Object, should have Public Properties to depitct
the details of the Person Object
>
As long as the properties of the Person object are a primitive types, you
don't have to bother too much. Look at the sample below ...
>
Public Class Person
Public Property PersonId as Integer
Public Property PersonName as String
End Class
>
If atleast one of the Property of the Person object is a CusomCollection ,
you need to consider lot of things before passing objects to and from web
services.
The following scenario has address collection inside Person Object
>
Public Class Person
Public Property PersonId as Integer
Public Property PersonName as String
Public Propery PersonAddress as AddressCollecti on
End Class
>
In such case the Custom Collections are not transmitted directly between web
services and clients. Meaning Custom Collections are passed as Array of
Objecs.
If if it is passed as Array of Objects, you loose tight coupling between
Person Object and AddressCollecti on property. In this scenario you really
need to figure out a way to maintain the tight coupling between Person Object
and AddressCollecti on Propery.
The way to do is to enable tight coupling with PersonId. Meaning
have a defintion for PersonId in the AddressCollecti on.
>
Please let me know if this reply is useful. If you need more information let
me know.
-
Thanks & Regards,
Sundar Narasimman
>
>
>
"Greger" wrote:
>
Hi,

I am building an architecture that passes my custom objects to and from
webservices. (Our internal architecture requires me to use webservices to any
suggestion to use other remoting techniques are not feasible)

The question is;

Given that I have a Person object with a private set for id.
What is the recommended approac in passing that object to the web service
and still retain the value of id?

Getting the object from the webservice is no problem since I only use the
generated proxy class to achieve this.

Should I create a PersonData with public properties that I pass up to the
webservice or is there any other way?
This could be tricky since if the person object have a list och subitems the
PersonData would need that aswell creating a lot of code doing the same
thing...

I can not use interface because the webservice can not serialize that.

Any pointers to design guidelines or similar is appreciated.
(WCF is not an option right now)

Thanks in advance!

Regards Greger

--
----
Feb 27 '07 #7
Custom objects are serialized with XmlSerializer, it only transport public
properties.
"Prerak V. Shah" <Prerak V. Sh**@discussion s.microsoft.comwrote in message
news:9A******** *************** ***********@mic rosoft.com...
Hi,

Your information is quite useful and I have one more question to it.

I am having one custom object which I accept as a parameter of my
webmethod.
This object is getting generated in my proxy class of the webservice at
the
consumer-end.

Now, I am not getting any of my public methods of my custom object in
generated proxy class. I am not getting even constructors.

Actually I am having one private variable of the type "object" in my
custom
class "WebRespons e". Depending on the type of the value it contains, I am
having public methods to return it's value. but I am not getting any of
these
public methods in the proxy class.

Is there any way out here!

Thanks,
Prerak

"Sundar Narasimman" wrote:
>Hi Ben,

Yes you are right. You can serialize custom objects over the web . You
can
even serialize custom object collections.

Thanks & Regards,
Sundar

"Ben Joyce" wrote:
Wow, I didn't even know this was possible... so, you can serialize
custom classes in .net and send them over the web? I am understanding
this right?

Ben

Sundar Narasimman wrote:
Greger,

It's a good question. You can pass Custom objects to and from Web
Services.
In your case , the Person Object, should have Public Properties to
depitct
the details of the Person Object

As long as the properties of the Person object are a primitive types,
you
don't have to bother too much. Look at the sample below ...

Public Class Person
Public Property PersonId as Integer
Public Property PersonName as String
End Class

If atleast one of the Property of the Person object is a
CusomCollection ,
you need to consider lot of things before passing objects to and from
web
services.
The following scenario has address collection inside Person Object

Public Class Person
Public Property PersonId as Integer
Public Property PersonName as String
Public Propery PersonAddress as AddressCollecti on
End Class

In such case the Custom Collections are not transmitted directly
between web
services and clients. Meaning Custom Collections are passed as Array
of
Objecs.
If if it is passed as Array of Objects, you loose tight coupling
between
Person Object and AddressCollecti on property. In this scenario you
really
need to figure out a way to maintain the tight coupling between
Person Object
and AddressCollecti on Propery.
The way to do is to enable tight coupling with PersonId.
Meaning
have a defintion for PersonId in the AddressCollecti on.

Please let me know if this reply is useful. If you need more
information let
me know.
-
Thanks & Regards,
Sundar Narasimman

"Greger" wrote:

Hi,

I am building an architecture that passes my custom objects to and
from
webservices. (Our internal architecture requires me to use
webservices to any
suggestion to use other remoting techniques are not feasible)

The question is;

Given that I have a Person object with a private set for id.
What is the recommended approac in passing that object to the web
service
and still retain the value of id?

Getting the object from the webservice is no problem since I only
use the
generated proxy class to achieve this.

Should I create a PersonData with public properties that I pass up
to the
webservice or is there any other way?
This could be tricky since if the person object have a list och
subitems the
PersonData would need that aswell creating a lot of code doing the
same
thing...

I can not use interface because the webservice can not serialize
that.

Any pointers to design guidelines or similar is appreciated.
(WCF is not an option right now)

Thanks in advance!

Regards Greger

--
----


Mar 8 '07 #8
one of the alternatives:

http://replicrux.com/2008/10/20/pass...b-service.aspx

"Mariano Omar Rodriguez" wrote:
Custom objects are serialized with XmlSerializer, it only transport public
properties.
"Prerak V. Shah" <Prerak V. Sh**@discussion s.microsoft.comwrote in message
news:9A******** *************** ***********@mic rosoft.com...
Hi,

Your information is quite useful and I have one more question to it.

I am having one custom object which I accept as a parameter of my
webmethod.
This object is getting generated in my proxy class of the webservice at
the
consumer-end.

Now, I am not getting any of my public methods of my custom object in
generated proxy class. I am not getting even constructors.

Actually I am having one private variable of the type "object" in my
custom
class "WebRespons e". Depending on the type of the value it contains, I am
having public methods to return it's value. but I am not getting any of
these
public methods in the proxy class.

Is there any way out here!

Thanks,
Prerak

"Sundar Narasimman" wrote:
Hi Ben,

Yes you are right. You can serialize custom objects over the web . You
can
even serialize custom object collections.

Thanks & Regards,
Sundar

"Ben Joyce" wrote:

Wow, I didn't even know this was possible... so, you can serialize
custom classes in .net and send them over the web? I am understanding
this right?

Ben

Sundar Narasimman wrote:
Greger,
>
It's a good question. You can pass Custom objects to and from Web
Services.
In your case , the Person Object, should have Public Properties to
depitct
the details of the Person Object
>
As long as the properties of the Person object are a primitive types,
you
don't have to bother too much. Look at the sample below ...
>
Public Class Person
Public Property PersonId as Integer
Public Property PersonName as String
End Class
>
If atleast one of the Property of the Person object is a
CusomCollection ,
you need to consider lot of things before passing objects to and from
web
services.
The following scenario has address collection inside Person Object
>
Public Class Person
Public Property PersonId as Integer
Public Property PersonName as String
Public Propery PersonAddress as AddressCollecti on
End Class
>
In such case the Custom Collections are not transmitted directly
between web
services and clients. Meaning Custom Collections are passed as Array
of
Objecs.
If if it is passed as Array of Objects, you loose tight coupling
between
Person Object and AddressCollecti on property. In this scenario you
really
need to figure out a way to maintain the tight coupling between
Person Object
and AddressCollecti on Propery.
The way to do is to enable tight coupling with PersonId.
Meaning
have a defintion for PersonId in the AddressCollecti on.
>
Please let me know if this reply is useful. If you need more
information let
me know.
-
Thanks & Regards,
Sundar Narasimman
>
>
>
"Greger" wrote:
>
Hi,

I am building an architecture that passes my custom objects to and
from
webservices. (Our internal architecture requires me to use
webservices to any
suggestion to use other remoting techniques are not feasible)

The question is;

Given that I have a Person object with a private set for id.
What is the recommended approac in passing that object to the web
service
and still retain the value of id?

Getting the object from the webservice is no problem since I only
use the
generated proxy class to achieve this.

Should I create a PersonData with public properties that I pass up
to the
webservice or is there any other way?
This could be tricky since if the person object have a list och
subitems the
PersonData would need that aswell creating a lot of code doing the
same
thing...

I can not use interface because the webservice can not serialize
that.

Any pointers to design guidelines or similar is appreciated.
(WCF is not an option right now)

Thanks in advance!

Regards Greger

--
----


Oct 26 '08 #9

"Kin" <Ki*@discussion s.microsoft.com wrote in message
news:41******** *************** ***********@mic rosoft.com...
one of the alternatives:

http://replicrux.com/2008/10/20/pass...b-service.aspx
This is totally unnecessary. Simply copy the properties from one object to
the other.

In WCF you can simply choose to reuse the types.

--
John Saunders | MVP - Connected System Developer

Oct 26 '08 #10

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

Similar topics

5
5151
by: hellrazor | last post by:
Hi there, I'm very new to dot net programming and webservices programming. I've managed to create simple webservices so far. Here's my problem: -I've been given a project which needs to have a proprietary algorithm split into a webservice.
4
2743
by: Sahil Malik [MVP] | last post by:
Okay so now I understand (surprised though) - that WebServices can indeed pass ByRef/ref parameters. All I have to do is mark an integer parameter of a WebMethod as "ref". Funnily enough, this is also supported per the SOAP Spec, and from what I understand, .NET's implementation of WebServices, donot follow the standard, but instead shimmy this behavior by working with a strict request/response WSDL. So my question is - If I mark an int...
5
6911
by: mtv | last post by:
Hi all, I have the following code: ================================ Webservice side: public class MyWS: WebService { private myLib.DataObject curDataObject;
12
5335
by: Noel | last post by:
Hello, I'm currently developing a web service that retrieves data from an employee table. I would like to send and retrieve a custom employee class to/from the webservice. I have currently coded the custom employee class and have built it as a separate library (employee.dll). This employee.dll is being referenced by both the web service and the windows application. I face the following problem when I send this class to the webservice.
1
2926
by: rival | last post by:
Hi. I've a single solution with many projects. I'm using VS2003 and framework 1.1 1. Data project - contains UserData class, inheriting from DataSet, and setting up constants and columns like those found in the Duwamish 7 sample 2. WebServices project - wraps up business logic 3. C# winforms consumer connecting to the WebServices. This project has the data project as a reference.
8
8902
by: =?Utf-8?B?UmF2aQ==?= | last post by:
Hi, I'm trying to pass values of different data-types to a web-service. I thought it would be easier to box these values and pass them as a System.object parameter, like public void webmethod1(object a) where a can be of type string, DateTime, float, etc..
2
4276
by: =?Utf-8?B?Y3Nz?= | last post by:
I am new to ASP.net webservice and have a quesiton. Is is possible to pass custom object to a web service (using VB 2005)? My custom object will look like this Public Class Myclass Public Property1 As String Public Property2 As Integer Public Property myCollection1 As Arraylist (Actually, it will be a strongly
0
8823
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9343
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9198
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7973
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6646
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4477
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4738
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3175
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2119
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.