Hello.
I have 2 forms (Form1 and Form2). When i call the Sub placed in form1 from
form2, i get the error "object reference not set to an instance of an object"
!
What can i do to solve the problem?
Thanks
Sep 21 '06
20 4811
Daniel Bloch schrieb:
What I see is that you do not show the form BringToFront does not make
a control a top-level control, and it does not raise the Paint event.
So with the knowledge of the last post, try following
- Check, if you can run the sub from form2 alone. Implement a button to
show what you want and make a test like this.
- If this does not work, first correct the sub until you are able to
let it run.
- After that, first show the new form and then let sub run from
form1...
Daniel
Sorry, I did a mistake and mixed form1 and form2 :)
The SUB in form2:
Public Sub soumavez(ByVal varin As Integer)
Try
MessageBox.Show (varin)
Dim pubmapsel As MGMapControl.MG Selection
Dim pubvar2 As MGMapControl.MG MapLayer
Dim pubmapobjectos As MGMapControl.MG Collection
Dim pubmapobj As MGMapControl.MG MapObject
pubmapsel = mgmap.getSelect ion()
pubvar2 = mgmap.getMapLay er("SIG")
pubmapobjectos = mgmap.createObj ect("MGCollecti on")
pubmapobj = mgmap.getMapLay er("SIG").getMa pObject(varin)
pubmapobjectos. add(pubmapobj)
mgmap.getSelect ion().addObject sEx(pubmapobjec tos, False)
mgmap.zoomSelec ted()
mgmap.zoomScale (mgmap.getLat() , mgmap.getLon(), 1500)
mgmap.refresh()
Catch ex As Exception
MessageBox.Show (ex.Message, "Erro", MessageBoxButto ns.OK,
MessageBoxIcon. Error)
End Try
End Sub
this sub is called form Form2 with the following code:
exitvar = DataGridView1.R ows(e.RowIndex) .Cells(0).Value
Dim ff As New Form1
ff.BringToFront ()
ff.soumavez(exi tvar)
PROBLEM:
if i dont put the codeline "MessageBox.Sho w(varin)", occurs the error at
line "pubmapobj = mgmap.getMapLay er("SIG").getMa pObject(varin)" .
If i put the message "MessageBox.Sho w(varin)", occurs the error at line
"mgmap.getSelec tion().addObjec tsEx(pubmapobje ctos, False)".
the test that u say to do (call the sub from a buttonclick within Form1)
occurs with NO Error!!!!
Thanks
"Daniel Bloch" wrote:
>
Daniel Bloch schrieb:
What I see is that you do not show the form BringToFront does not make
a control a top-level control, and it does not raise the Paint event.
So with the knowledge of the last post, try following
- Check, if you can run the sub from form2 alone. Implement a button to
show what you want and make a test like this.
- If this does not work, first correct the sub until you are able to
let it run.
- After that, first show the new form and then let sub run from
form1...
Daniel
Sorry, I did a mistake and mixed form1 and form2 :)
Resume my problem:
if i call the Sub located in Form1 from Form1 i get no error. If i call the
Sub from Form2 i get error. Why?
Thanks
"vitorjol" wrote:
The SUB in form2:
Public Sub soumavez(ByVal varin As Integer)
Try
MessageBox.Show (varin)
Dim pubmapsel As MGMapControl.MG Selection
Dim pubvar2 As MGMapControl.MG MapLayer
Dim pubmapobjectos As MGMapControl.MG Collection
Dim pubmapobj As MGMapControl.MG MapObject
pubmapsel = mgmap.getSelect ion()
pubvar2 = mgmap.getMapLay er("SIG")
pubmapobjectos = mgmap.createObj ect("MGCollecti on")
pubmapobj = mgmap.getMapLay er("SIG").getMa pObject(varin)
pubmapobjectos. add(pubmapobj)
mgmap.getSelect ion().addObject sEx(pubmapobjec tos, False)
mgmap.zoomSelec ted()
mgmap.zoomScale (mgmap.getLat() , mgmap.getLon(), 1500)
mgmap.refresh()
Catch ex As Exception
MessageBox.Show (ex.Message, "Erro", MessageBoxButto ns.OK,
MessageBoxIcon. Error)
End Try
End Sub
this sub is called form Form2 with the following code:
exitvar = DataGridView1.R ows(e.RowIndex) .Cells(0).Value
Dim ff As New Form1
ff.BringToFront ()
ff.soumavez(exi tvar)
PROBLEM:
if i dont put the codeline "MessageBox.Sho w(varin)", occurs the error at
line "pubmapobj = mgmap.getMapLay er("SIG").getMa pObject(varin)" .
If i put the message "MessageBox.Sho w(varin)", occurs the error at line
"mgmap.getSelec tion().addObjec tsEx(pubmapobje ctos, False)".
the test that u say to do (call the sub from a buttonclick within Form1)
occurs with NO Error!!!!
Thanks
"Daniel Bloch" wrote:
Daniel Bloch schrieb:
What I see is that you do not show the form BringToFront does not make
a control a top-level control, and it does not raise the Paint event.
>
So with the knowledge of the last post, try following
>
- Check, if you can run the sub from form2 alone. Implement a button to
show what you want and make a test like this.
- If this does not work, first correct the sub until you are able to
let it run.
- After that, first show the new form and then let sub run from
form1...
>
Daniel
Sorry, I did a mistake and mixed form1 and form2 :)
Thanks for coming to my rescue here Ghost, with no experience using
Mapguide (and not having it's SDK) I was getting in over my head!
Thanks,
Seth Rowe
GhostInAK wrote:
Hello rowe_newsgroups ,
Your solutuion would not work. MGMapControl is the namespace.. MGMapLayer
is the type. getMapObject is not static (shared).
pubvar2 (GEEZ! Use some better freakin names next time wouldja, OP!) is
supposed to grab a reference to a specific map layer.
You are correct in that the OP is trying to use an object that is null.
OP: Check your MWF, make sure you have a layer actually called "SIG". Also,
ZoomSelected is a terrible way to get to an object. First, the selection
will only succeed if the object is visible at your current zoom scale. Second,
MapGuide is notorious for busystate collisions.
-Boo
Hmm. The "object reference not set to an instance of an object"
exception is raised when you try to use an object that doesn't exist
yet, like if you left out the New keyword. However, everything looks
alright to me. The only thing I would try (outside of praying that
someone else happens on this thread and sees what we're missing!) is
to change this line:
pubmapobj = pubvar2.getMapO bject(varin)
To this:
pubmapobj = MGMapControl.MG MapLayer.getMap Object(varin)
That will take the pubvar2 variable out of the equation. Note, you may
also try throwing the "New" keyword into that line, I'm not sure if
you do or don't need it.
Hope that helps,
Seth Rowe
vitorjol wrote:
Yes....im portuguese....b ut I love America!!!!!
i forgot to tell U the line with the problem!!!Sorry
So, the problem "object reference not set to an instance of an
object" occurs in the line >>pubmapobj = pubvar2.getMapO bject(varin)
Thanks
"rowe_newsgroup s" wrote:
ok....the name "soumavez" its a name that i called to the Sub...End Sub.
It looked like a foreign langauge to me (is it?), so I was just making sure it was a protected keyword in a foreign language edition of visual studio.
Anyways, I have to apologize - my "visual" debugging skills must be lacking today, as I still don't see anything obviously wrong. Which line of the code raises the exception?
Thanks,
Seth Rowe
vitorjol wrote:
i put here the code of Sub(its about the Mapguide ActiveX to show a map in VB). I'll send there to Sub in the other form the id of a polygon on the map, and then the Sub localize the polygon and zoom the place!!!
Code of the Sub "soumavez" in the Form1:
Public Sub soumavez(ByVal varin As Integer) ' --->"varin" its the var that i send from Form2!!! ' --->"mgmap" its the name of the control (mapguide activex) Try Dim pubmapsel As MGMapControl.MG Selection Dim pubvar2 As MGMapControl.MG MapLayer Dim pubmapobjectos As MGMapControl.MG Collection Dim pubmapobj As MGMapControl.MG MapObject pubmapsel = mgmap.getSelect ion() pubvar2 = mgmap.getMapLay er("SIG") pubmapobjecto s = mgmap.createObj ect("MGCollecti on") pubmapobj = pubvar2.getMapO bject(varin) pubmapobjecto s.add(pubmapobj ) pubmapsel.add ObjectsEx(pubma pobjectos, False) mgmap.zoomSel ected() mgmap.zoomSca le(mgmap.getLat (), mgmap.getLon(), 1500) mgmap.refresh () Catch ex As Exception MessageBox.Sh ow(ex.Message, "Erro", MessageBoxButto ns.OK, MessageBoxIco n.Error) End Try End Sub "rowe_newsgro ups" wrote:
Looks like it should work, when you step through the code where does the exception occur? If the error occurs in somewhere other than this sub please post that code too. Also what does "soumavez" mean?
Thanks,
Seth Rowe
vitorjol wrote:
Here is the code: > ' the code in form2 Private Sub DataGridView1_R owHeaderMouseCl ick(ByVal sender As Object, ByVal e As System.Windows. Forms.DataGridV iewCellMouseEve ntArgs) Handles DataGridVie w1.RowHeaderMou seClick dim exitvar as Integer exitvar = DataGridView1.R ows(e.RowIndex) .Cells(0).Value Dim ff As New Form1 ff.BringToF ront() ff.soumavez (exitvar) ' this is the call to the sub in Form1 End Sub "rowe_newsg roups" wrote: > >Please post the code that calls the sub. >> >Thanks, >> >Seth Rowe >> >vitorjol wrote: >> >>Hello. >>> >>I have 2 forms (Form1 and Form2). When i call the Sub placed in >>form1 from >>form2, i get the error "object reference not set to an instance >>of an object" >>! >>What can i do to solve the problem? >>Thanks >>>
Hello rowe_newsgroups ,
I envy you, Seth. I have to use the abismal peice of crap every day.
-Boo
Thanks for coming to my rescue here Ghost, with no experience using
Mapguide (and not having it's SDK) I was getting in over my head!
Thanks,
Seth Rowe
GhostInAK wrote:
>Hello rowe_newsgroups ,
Your solutuion would not work. MGMapControl is the namespace.. MGMapLayer is the type. getMapObject is not static (shared). pubvar2 (GEEZ! Use some better freakin names next time wouldja, OP!) is supposed to grab a reference to a specific map layer. You are correct in that the OP is trying to use an object that is null.
OP: Check your MWF, make sure you have a layer actually called "SIG". Also, ZoomSelected is a terrible way to get to an object. First, the selection will only succeed if the object is visible at your current zoom scale. Second, MapGuide is notorious for busystate collisions. -Boo
>>Hmm. The "object reference not set to an instance of an object" exception is raised when you try to use an object that doesn't exist yet, like if you left out the New keyword. However, everything looks alright to me. The only thing I would try (outside of praying that someone else happens on this thread and sees what we're missing!) is to change this line:
pubmapobj = pubvar2.getMapO bject(varin)
To this:
pubmapobj = MGMapControl.MG MapLayer.getMap Object(varin)
That will take the pubvar2 variable out of the equation. Note, you may also try throwing the "New" keyword into that line, I'm not sure if you do or don't need it.
Hope that helps,
Seth Rowe
vitorjol wrote:
Yes....im portuguese....b ut I love America!!!!!
i forgot to tell U the line with the problem!!!Sorry
So, the problem "object reference not set to an instance of an object" occurs in the line >>pubmapobj = pubvar2.getM apObject(varin)
Thanks
"rowe_newsgr oups" wrote:
>ok....th e name "soumavez" its a name that i called to the >Sub...En d Sub. >> It looked like a foreign langauge to me (is it?), so I was just making sure it was a protected keyword in a foreign language edition of visual studio. > Anyways, I have to apologize - my "visual" debugging skills must be lacking today, as I still don't see anything obviously wrong. Which line of the code raises the exception? > Thanks, > Seth Rowe > vitorjol wrote: > >i put here the code of Sub(its about the Mapguide ActiveX to show >a map in VB). I'll send there to Sub in the other form the id of >a polygon on the map, and then the Sub localize the polygon and >zoom the place!!! >> >Code of the Sub "soumavez" in the Form1: >> >Public Sub soumavez(ByVal varin As Integer) >' --->"varin" its the var that i send from Form2!!! >' --->"mgmap" its the name of the control (mapguide activex) >Try >Dim pubmapsel As MGMapControl.MG Selection >Dim pubvar2 As MGMapControl.MG MapLayer >Dim pubmapobjectos As MGMapControl.MG Collection >Dim pubmapobj As MGMapControl.MG MapObject >pubmapse l = mgmap.getSelect ion() >pubvar2 = mgmap.getMapLay er("SIG") >pubmapobje ctos = mgmap.createObj ect("MGCollecti on") >pubmapob j = pubvar2.getMapO bject(varin) >pubmapobje ctos.add(pubmap obj) >pubmapsel. addObjectsEx(pu bmapobjectos, False) >mgmap.zoom Selected() >mgmap.zoom Scale(mgmap.get Lat(), mgmap.getLon(), 1500) >mgmap.refr esh() >Catch ex As Exception >MessageBox .Show(ex.Messag e, "Erro", MessageBoxButto ns.OK, >MessageBox Icon.Error) >End Try >End Sub >"rowe_news groups" wrote: >>Looks like it should work, when you step through the code where >>does the exception occur? If the error occurs in somewhere >>other than this sub please post that code too. Also what does >>"soumavez " mean? >>> >>Thanks, >>> >>Seth Rowe >>> >>vitorjo l wrote: >>> >>>Here is the code: >>>> >>>' the code in form2 >>>Privat e Sub DataGridView1_R owHeaderMouseCl ick(ByVal sender As >>>Object , ByVal >>>e As System.Windows. Forms.DataGridV iewCellMouseEve ntArgs) >>>Handle s >>>DataGrid View1.RowHeader MouseClick >>>dim exitvar as Integer >>>exitva r = DataGridView1.R ows(e.RowIndex) .Cells(0).Value >>>Dim ff As New Form1 >>>ff.Bring ToFront() >>>ff.souma vez(exitvar) ' this is the call to the sub in Form1 >>>End Sub >>>"rowe_ne wsgroups" wrote: >>>>Pleas e post the code that calls the sub. >>>>> >>>>Thank s, >>>>> >>>>Seth Rowe >>>>> >>>>vitorjo l wrote: >>>>> >>>>>Hell o. >>>>>> >>>>>I have 2 forms (Form1 and Form2). When i call the Sub placed >>>>>in >>>>>form 1 from >>>>>form 2, i get the error "object reference not set to an >>>>>instan ce >>>>>of an object" >>>>>! >>>>>What can i do to solve the problem? >>>>>Than ks
Can i force the execution of the Button_click located in Form1 from Form2?
i ask this because in Form1, if i execute the sub called from the
button_click everything goes right, but if i call the sub outside the Form1
(Form2) occurs the error!!!
Thanks
"GhostInAK" wrote:
Hello rowe_newsgroups ,
I envy you, Seth. I have to use the abismal peice of crap every day.
-Boo
Thanks for coming to my rescue here Ghost, with no experience using
Mapguide (and not having it's SDK) I was getting in over my head!
Thanks,
Seth Rowe
GhostInAK wrote:
Hello rowe_newsgroups ,
Your solutuion would not work. MGMapControl is the namespace..
MGMapLayer
is the type. getMapObject is not static (shared).
pubvar2 (GEEZ! Use some better freakin names next time wouldja, OP!)
is
supposed to grab a reference to a specific map layer.
You are correct in that the OP is trying to use an object that is
null.
OP: Check your MWF, make sure you have a layer actually called
"SIG". Also,
ZoomSelected is a terrible way to get to an object. First, the
selection
will only succeed if the object is visible at your current zoom
scale. Second,
MapGuide is notorious for busystate collisions.
-Boo
Hmm. The "object reference not set to an instance of an object" exception is raised when you try to use an object that doesn't exist yet, like if you left out the New keyword. However, everything looks alright to me. The only thing I would try (outside of praying that someone else happens on this thread and sees what we're missing!) is to change this line:
pubmapobj = pubvar2.getMapO bject(varin)
To this:
pubmapobj = MGMapControl.MG MapLayer.getMap Object(varin)
That will take the pubvar2 variable out of the equation. Note, you may also try throwing the "New" keyword into that line, I'm not sure if you do or don't need it.
Hope that helps,
Seth Rowe
vitorjol wrote:
Yes....im portuguese....b ut I love America!!!!!
i forgot to tell U the line with the problem!!!Sorry
So, the problem "object reference not set to an instance of an object" occurs in the line >>pubmapobj = pubvar2.getMa pObject(varin)
Thanks
"rowe_newsgro ups" wrote:
ok....the name "soumavez" its a name that i called to the Sub...End Sub. > It looked like a foreign langauge to me (is it?), so I was just making sure it was a protected keyword in a foreign language edition of visual studio.
Anyways, I have to apologize - my "visual" debugging skills must be lacking today, as I still don't see anything obviously wrong. Which line of the code raises the exception?
Thanks,
Seth Rowe
vitorjol wrote:
i put here the code of Sub(its about the Mapguide ActiveX to show a map in VB). I'll send there to Sub in the other form the id of a polygon on the map, and then the Sub localize the polygon and zoom the place!!! > Code of the Sub "soumavez" in the Form1: > Public Sub soumavez(ByVal varin As Integer) ' --->"varin" its the var that i send from Form2!!! ' --->"mgmap" its the name of the control (mapguide activex) Try Dim pubmapsel As MGMapControl.MG Selection Dim pubvar2 As MGMapControl.MG MapLayer Dim pubmapobjectos As MGMapControl.MG Collection Dim pubmapobj As MGMapControl.MG MapObject pubmapsel = mgmap.getSelect ion() pubvar2 = mgmap.getMapLay er("SIG") pubmapobjec tos = mgmap.createObj ect("MGCollecti on") pubmapobj = pubvar2.getMapO bject(varin) pubmapobjec tos.add(pubmapo bj) pubmapsel.a ddObjectsEx(pub mapobjectos, False) mgmap.zoomS elected() mgmap.zoomS cale(mgmap.getL at(), mgmap.getLon(), 1500) mgmap.refre sh() Catch ex As Exception MessageBox. Show(ex.Message , "Erro", MessageBoxButto ns.OK, MessageBoxI con.Error) End Try End Sub "rowe_newsg roups" wrote: >Looks like it should work, when you step through the code where >does the exception occur? If the error occurs in somewhere >other than this sub please post that code too. Also what does >"soumave z" mean? >> >Thanks, >> >Seth Rowe >> >vitorjol wrote: >> >>Here is the code: >>> >>' the code in form2 >>Private Sub DataGridView1_R owHeaderMouseCl ick(ByVal sender As >>Object, ByVal >>e As System.Windows. Forms.DataGridV iewCellMouseEve ntArgs) >>Handles >>DataGridV iew1.RowHeaderM ouseClick >>dim exitvar as Integer >>exitvar = DataGridView1.R ows(e.RowIndex) .Cells(0).Value >>Dim ff As New Form1 >>ff.BringT oFront() >>ff.soumav ez(exitvar) ' this is the call to the sub in Form1 >>End Sub >>"rowe_new sgroups" wrote: >>>Please post the code that calls the sub. >>>> >>>Thanks , >>>> >>>Seth Rowe >>>> >>>vitorj ol wrote: >>>> >>>>Hello . >>>>> >>>>I have 2 forms (Form1 and Form2). When i call the Sub placed >>>>in >>>>form1 from >>>>form2 , i get the error "object reference not set to an >>>>instanc e >>>>of an object" >>>>! >>>>What can i do to solve the problem? >>>>Thank s
Now, have you tried to first SHOW the document with the command "show"
before let running the sub.
I realy believe that your problem just occurs because there is no valid
form available (because it's not yet shown and has it's window handle)
that can take the form handlings of your map software ...
Daniel
i have the form1 and form2 open....i dont have to do the show command to the
Form1...i think!!!!!
"Daniel Bloch" wrote:
Now, have you tried to first SHOW the document with the command "show"
before let running the sub.
I realy believe that your problem just occurs because there is no valid
form available (because it's not yet shown and has it's window handle)
that can take the form handlings of your map software ...
Daniel
Have you tried?
Sometimes, software development is not about thinking but about trying.
So give it a try and place a ".show" instead of ".bringtofr ont" and
check out, what happens.
Daniel
it opens again the form1....i dont want this, and dont work anyway!!!
i think that i solved the problem. In form1 i open the form2 with the
command showdialog...ju st this!!!
"Daniel Bloch" wrote:
Have you tried?
Sometimes, software development is not about thinking but about trying.
So give it a try and place a ".show" instead of ".bringtofr ont" and
check out, what happens.
Daniel
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Shaun Fleming |
last post by:
I've been trying to make this simple script compatible across various
browsers. It works for IE 6.0 and NS 7 but doesnt work with Opera (I
have version 7.11). This is what is supposed to happen: when the user
clicks a button in the main window, a dialog window pops up. In the
dialog the user enters a university to search for. When the string is
submitted, the dialog then shows all the matches found in the
database. The user picks one and...
|
by: Marina |
last post by:
Here is the problem. If 2 different properties on the same (or different)
control are bound to the same data column, changing the Text property and
calling EndCurrentEdit discards the new value. Changing a custom property
and calling EndCurrentEdit accepts the new value, stores it in the datasoure
and behaves normally. Here is a reproduceable example:
First, extend Textbox:
Public Class MyTextBox
Inherits TextBox
|
by: Mike |
last post by:
I am trying to open a search results form based on the input from a
prompt form. I am using the following code:
--- Begin Code ---
Private Sub btnSearch_Click()
'Dim Variable and assign data
Dim srce As String, fstnme As String, lstnme As String, bidnum As String
srce = Me.Source_Control
If Not IsNull(Me.Text18) Then
|
by: Andrew Christiansen |
last post by:
Hey everyone. I have Visual Basic .NET 2003 and am trying to show images on
a treeview control. I have the imagelist on the form filled with images,
and have the ImageList property of the treeview control set to the imagelist
containing the images I want to be displayed next to each node.
It seems that no matter what I do there will be no images displayed next to
the nodes during runtime. I tried creating nodes during designtime using...
|
by: Frank Maxey |
last post by:
I am fairly new to VB.Net and am having a curious problem.
I have an entry dialog form called from a main form. The calling form
needs to check the
DialogResult field for an OK response.
In my button service in the dialog form, I have:
Private Sub btnSave_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles btnSave.Click
| |
by: koorb |
last post by:
I am starting a program from a module with the Sub main procedure and
I want it to display two forms for the program's interface, but when I
run the program both forms just open and then program closes.
Dim FORM1 As New Form1
Dim FORM2 As New form2
Sub main()
FORM1.Show()
FORM2.Show()
|
by: Altman |
last post by:
Ok I have a control that is inherited from another class. In the child I
put msgbox(me.name) in the load event. What always pops up is the name of
the parent class and not the name of the instance of the object. WHY? Also
if I can figure this out I'm hoping that I can put this in the load event of
the parent and still get it to work.
|
by: DS |
last post by:
I seem to have run into another strange anomaly with the monthCalendar
control. I want to display 6 months at time with either the first half
of the year (January-June) or the later half of the year (July-Dec)
being rendered- depending on where todays date falls. I also want
today's date to be selected. This poses a problem. Refer to the code below.
Add a call to createCalendar() to your constructor (AFTER the
InitializeComponents()...
|
by: =?Utf-8?B?UHVjY2E=?= |
last post by:
Hi, I'm using VS2005 and .net 2.0. I'm creating an application that has 3
forms. I want allow users to move forward and backward with the forms and
retain the data users have entered. I thought I'll make the inactive forms
invisible but this is creating a memory corruption problem when user close
the form2 or form3 and not the formMain.
My main form has a Next button which makes the main form invisible and
starts a new form which I'll...
|
by: Lyn |
last post by:
Hi,
I am using a form (FormA) to list the records in a recordset. In the FormA
footer, I have an "Add" command button that opens a new form (FormB)
modally which is used to input and save a new record to the table on which
the recordset is based.
On closing FormB after inputting a new record, I would like to
refresh/requery the listing in FormA automatically so that it includes the
new record. I don't seem to be able to get this to...
|
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...
| |
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...
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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...
|
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...
| |
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |