473,605 Members | 2,637 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

is my code accrurate....

i had usercontrol name doColor, then i added function procedure called
doColor. then i added module and called from method doColor into
module. the problem is i had to traced error:...
An unhandled exception of type 'System.NullRef erenceException ' occurred
in system.windows. forms.dll
Additional information: Object reference not set to an instance of an
object.
this coming from module method....
in module:
Sub DisplayMessage( ByVal rtb As RichTextBox, ByVal sText As String,
Optional ByVal Colour As String = "")

rtb.SelectionSt art = rtb.Text.Length
'rtb.doColor(rt b, sText) <==== if i called docolor i got
error problem . but if i rem this....
rtb.SelectedTex t = sText <=== if i remmed above i got no problem
rtb.SelectionSt art = rtb.Text.Length
rtb.ScrollToCar et()
sText = String.Empty

End Sub
i am trying to get irc chat working similar to mirc. but function of
doColor will worked on richextbox that embedded forecolour and
background colour. i had four mdichilds..if that is problem. this
code above will worked on small project i had no problem. i don't know
if my code above is accurate or not.
can ne 1 help me .
regards,

happy new yrs to every 1 >:o

Nov 21 '05 #1
5 1187
I suspect you are trying to do something in "docolor" method with sText like
sText.Indexof() when sText is nothing.

"Supra" wrote:
i had usercontrol name doColor, then i added function procedure called
doColor. then i added module and called from method doColor into
module. the problem is i had to traced error:...
An unhandled exception of type 'System.NullRef erenceException ' occurred
in system.windows. forms.dll
Additional information: Object reference not set to an instance of an
object.
this coming from module method....
in module:
Sub DisplayMessage( ByVal rtb As RichTextBox, ByVal sText As String,
Optional ByVal Colour As String = "")

rtb.SelectionSt art = rtb.Text.Length
'rtb.doColor(rt b, sText) <==== if i called docolor i got
error problem . but if i rem this....
rtb.SelectedTex t = sText <=== if i remmed above i got no problem
rtb.SelectionSt art = rtb.Text.Length
rtb.ScrollToCar et()
sText = String.Empty

End Sub
i am trying to get irc chat working similar to mirc. but function of
doColor will worked on richextbox that embedded forecolour and
background colour. i had four mdichilds..if that is problem. this
code above will worked on small project i had no problem. i don't know
if my code above is accurate or not.
can ne 1 help me .
regards,

happy new yrs to every 1 >:o

Nov 21 '05 #2
no!. the sText is to get data from server and displayed in richtextbox
in order to called DisplayMessage in class... this is what i ahve in
class.vb....
Private Sub _Connection_onS everMessage(ByV al szText As String) Handles
_Connection.onS everMessage
DisplayMessage( nStatus.rtbStat us, szText.ToString )
End Sub
the only problem is coming from module's method.. i don't if i say sText
is nothing.......i will try it.
regards

Dennis wrote:
I suspect you are trying to do something in "docolor" method with sText like
sText.Indexof( ) when sText is nothing.

"Supra" wrote:
i had usercontrol name doColor, then i added function procedure called
doColor. then i added module and called from method doColor into
module. the problem is i had to traced error:...
An unhandled exception of type 'System.NullRef erenceException ' occurred
in system.windows. forms.dll
Additional information: Object reference not set to an instance of an
object.
this coming from module method....
in module:
Sub DisplayMessage( ByVal rtb As RichTextBox, ByVal sText As String,
Optional ByVal Colour As String = "")

rtb.SelectionSt art = rtb.Text.Length
'rtb.doColor(rt b, sText) <==== if i called docolor i got
error problem . but if i rem this....
rtb.SelectedTex t = sText <=== if i remmed above i got no problem
rtb.SelectionSt art = rtb.Text.Length
rtb.ScrollToCar et()
sText = String.Empty

End Sub
i am trying to get irc chat working similar to mirc. but function of
doColor will worked on richextbox that embedded forecolour and
background colour. i had four mdichilds..if that is problem. this
code above will worked on small project i had no problem. i don't know
if my code above is accurate or not.
can ne 1 help me .
regards,

happy new yrs to every 1 >:o


Nov 21 '05 #3
this is usercontrol control, then i added method too.
Function doColor(ByVal rtb As RichTextBox, ByVal a As String)
Dim b As String, n, fgcolor, bgcolor As Integer
Dim colour() As Color = {Color.White, Color.Black,
Color.DarkBlue, Color.DarkGreen , Color.Red, Color.Brown, _
Color.Purple, Color.Orange,
Color.Yellow, Color.LightGree n, Color.DarkMagen ta, Color.SkyBlue, _
Color.Blue, Color.Magenta,
Color.Gray, Color.LightSlat eGray}

fgcolor = 1
bgcolor = 0

For n = 1 To a.Length
b = Mid(a, n, 1)
If b = Chr(3) Then
'Parse Colours
If IsNumeric(Mid(a , n + 1, 1)) Then
If IsNumeric(Mid(a , n + 2, 1)) Then
If Mid(a, n + 3, 1) = "," Then
If IsNumeric(Mid(a , n + 4, 1)) Then
If IsNumeric(Mid(a , n + 5, 1)) Then
'@##,##
fgcolor = CInt(Mid(a, n + 1, 2))
bgcolor = CInt(Mid(a, n + 4, 2))
n += 5

Else
'@##,#
fgcolor = CInt(Mid(a, n + 1, 2))
bgcolor = CInt(Mid(a, n + 4, 1))
n += 4

End If
Else
'@##,
fgcolor = CInt(Mid(a, n + 1, 2))
n += 3

End If
Else
'@##
fgcolor = CInt(Mid(a, n + 1, 2))
n += 2
End If

ElseIf Mid(a, n + 2, 1) = "," Then
If IsNumeric(Mid(a , n + 3, 1)) Then
If IsNumeric(Mid(a , n + 4, 1)) Then
'@#,##
fgcolor = CInt(Mid(a, n + 1, 1))
bgcolor = CInt(Mid(a, n + 3, 2))
n += 4
Else
'@#,#
fgcolor = CInt(Mid(a, n + 1, 1))
bgcolor = CInt(Mid(a, n + 3, 1))
n += 3

End If
Else
'@#,
fgcolor = CInt(Mid(a, n + 1, 1))
n += 2
End If
Else
'@#
fgcolor = CInt(Mid(a, n + 1, 1))
n = n + 1
End If

If fgcolor > 15 Then
fgcolor = 1
End If

If bgcolor > 15 Then
bgcolor = 0
End If

rtb.SelectionCo lor = colour(fgcolor)
SelectionBackCo lor = colour(bgcolor)
Else
rtb.SelectionCo lor = colour(1)
SelectionBackCo lor = colour(0)
End If

ElseIf b = Chr(2) Then
Dim IsBold As Boolean = ((rtb.Selection Font.Style
And FontStyle.Bold) = FontStyle.Bold)
rtb.SelectionFo nt = _
New Font(rtb.Select ionFont,
DirectCast(IIf( IsBold, rtb.SelectionFo nt.Style And Not FontStyle.Bold,
rtb.SelectionFo nt.Style Or FontStyle.Bold) , FontStyle))

ElseIf b = Chr(31) Then
Dim IsUnderline As Boolean =
((rtb.Selection Font.Style And FontStyle.Under line) = FontStyle.Under line)
rtb.SelectionFo nt = _
New Font( _
rtb.SelectionFo nt, _
DirectCast(IIf( IsUnderline,
rtb.SelectionFo nt.Style And Not FontStyle.Under line,
rtb.SelectionFo nt.Style Or FontStyle.Under line), FontStyle))
ElseIf b = Chr(22) Then
Dim IsItalic As Boolean = ((rtb.Selection Font.Style
And FontStyle.Itali c) = FontStyle.Itali c)
rtb.SelectionFo nt = _
New Font( _
rtb.SelectionFo nt, _
DirectCast(IIf( IsItalic,
rtb.SelectionFo nt.Style And Not FontStyle.Itali c,
rtb.SelectionFo nt.Style Or FontStyle.Itali c), FontStyle))
ElseIf b = "" Then
' b = Mid(a, n, 1)
Else
rtb.SelectedTex t = b.ToString
End If
b = String.Empty
Next n
End Function
regards,
the above code will worked on small project. this is irc mirc chat colour.

Dennis wrote:
I suspect you are trying to do something in "docolor" method with sText like
sText.Indexof( ) when sText is nothing.

"Supra" wrote:
i had usercontrol name doColor, then i added function procedure called
doColor. then i added module and called from method doColor into
module. the problem is i had to traced error:...
An unhandled exception of type 'System.NullRef erenceException ' occurred
in system.windows. forms.dll
Additional information: Object reference not set to an instance of an
object.
this coming from module method....
in module:
Sub DisplayMessage( ByVal rtb As RichTextBox, ByVal sText As String,
Optional ByVal Colour As String = "")

rtb.SelectionSt art = rtb.Text.Length
'rtb.doColor(rt b, sText) <==== if i called docolor i got
error problem . but if i rem this....
rtb.SelectedTex t = sText <=== if i remmed above i got no problem
rtb.SelectionSt art = rtb.Text.Length
rtb.ScrollToCar et()
sText = String.Empty

End Sub
i am trying to get irc chat working similar to mirc. but function of
doColor will worked on richextbox that embedded forecolour and
background colour. i had four mdichilds..if that is problem. this
code above will worked on small project i had no problem. i don't know
if my code above is accurate or not.
can ne 1 help me .
regards,

happy new yrs to every 1 >:o


Nov 21 '05 #4
this could be ..
Select Case C(1).Trim
Case "001" To "014", "251" To "272", "372" To "377",
"401", "422", "462", "468", "503"
Dim intA As String = CLi.IndexOf(Nic k, 0)
RaiseEvent onSeverMessage( CLi.Substring(i ntA +
Nick.Length))

is that what u think of "indexof" ?
regards

Supra wrote:
this is usercontrol control, then i added method too.
Function doColor(ByVal rtb As RichTextBox, ByVal a As String)
Dim b As String, n, fgcolor, bgcolor As Integer
Dim colour() As Color = {Color.White, Color.Black,
Color.DarkBlue, Color.DarkGreen , Color.Red, Color.Brown, _
Color.Purple, Color.Orange,
Color.Yellow, Color.LightGree n, Color.DarkMagen ta, Color.SkyBlue, _
Color.Blue, Color.Magenta,
Color.Gray, Color.LightSlat eGray}

fgcolor = 1
bgcolor = 0

For n = 1 To a.Length
b = Mid(a, n, 1)
If b = Chr(3) Then
'Parse Colours
If IsNumeric(Mid(a , n + 1, 1)) Then
If IsNumeric(Mid(a , n + 2, 1)) Then
If Mid(a, n + 3, 1) = "," Then
If IsNumeric(Mid(a , n + 4, 1)) Then
If IsNumeric(Mid(a , n + 5, 1)) Then
'@##,##
fgcolor = CInt(Mid(a, n + 1, 2))
bgcolor = CInt(Mid(a, n + 4, 2))
n += 5

Else
'@##,#
fgcolor = CInt(Mid(a, n + 1, 2))
bgcolor = CInt(Mid(a, n + 4, 1))
n += 4

End If
Else
'@##,
fgcolor = CInt(Mid(a, n + 1, 2))
n += 3

End If
Else
'@##
fgcolor = CInt(Mid(a, n + 1, 2))
n += 2
End If

ElseIf Mid(a, n + 2, 1) = "," Then
If IsNumeric(Mid(a , n + 3, 1)) Then
If IsNumeric(Mid(a , n + 4, 1)) Then
'@#,##
fgcolor = CInt(Mid(a, n + 1, 1))
bgcolor = CInt(Mid(a, n + 3, 2))
n += 4
Else
'@#,#
fgcolor = CInt(Mid(a, n + 1, 1))
bgcolor = CInt(Mid(a, n + 3, 1))
n += 3

End If
Else
'@#,
fgcolor = CInt(Mid(a, n + 1, 1))
n += 2
End If
Else
'@#
fgcolor = CInt(Mid(a, n + 1, 1))
n = n + 1
End If

If fgcolor > 15 Then
fgcolor = 1
End If

If bgcolor > 15 Then
bgcolor = 0
End If

rtb.SelectionCo lor = colour(fgcolor)
SelectionBackCo lor = colour(bgcolor)
Else
rtb.SelectionCo lor = colour(1)
SelectionBackCo lor = colour(0)
End If

ElseIf b = Chr(2) Then
Dim IsBold As Boolean = ((rtb.Selection Font.Style
And FontStyle.Bold) = FontStyle.Bold)
rtb.SelectionFo nt = _
New Font(rtb.Select ionFont,
DirectCast(IIf( IsBold, rtb.SelectionFo nt.Style And Not FontStyle.Bold,
rtb.SelectionFo nt.Style Or FontStyle.Bold) , FontStyle))

ElseIf b = Chr(31) Then
Dim IsUnderline As Boolean =
((rtb.Selection Font.Style And FontStyle.Under line) = FontStyle.Under line)
rtb.SelectionFo nt = _
New Font( _
rtb.SelectionFo nt, _
DirectCast(IIf( IsUnderline,
rtb.SelectionFo nt.Style And Not FontStyle.Under line,
rtb.SelectionFo nt.Style Or FontStyle.Under line), FontStyle))
ElseIf b = Chr(22) Then
Dim IsItalic As Boolean = ((rtb.Selection Font.Style
And FontStyle.Itali c) = FontStyle.Itali c)
rtb.SelectionFo nt = _
New Font( _
rtb.SelectionFo nt, _
DirectCast(IIf( IsItalic,
rtb.SelectionFo nt.Style And Not FontStyle.Itali c,
rtb.SelectionFo nt.Style Or FontStyle.Itali c), FontStyle))
ElseIf b = "" Then
' b = Mid(a, n, 1)
Else
rtb.SelectedTex t = b.ToString
End If
b = String.Empty
Next n
End Function
regards,
the above code will worked on small project. this is irc mirc chat
colour.

Dennis wrote:
I suspect you are trying to do something in "docolor" method with
sText like sText.Indexof() when sText is nothing.

"Supra" wrote:
i had usercontrol name doColor, then i added function procedure
called doColor. then i added module and called from method doColor
into module. the problem is i had to traced error:...
An unhandled exception of type 'System.NullRef erenceException '
occurred in system.windows. forms.dll
Additional information: Object reference not set to an instance of
an object.
this coming from module method....
in module:
Sub DisplayMessage( ByVal rtb As RichTextBox, ByVal sText As String,
Optional ByVal Colour As String = "")
rtb.SelectionSt art = rtb.Text.Length
'rtb.doColor(rt b, sText) <==== if i called docolor i got
error problem . but if i rem this....
rtb.SelectedTex t = sText <=== if i remmed above i got no
problem
rtb.SelectionSt art = rtb.Text.Length
rtb.ScrollToCar et()
sText = String.Empty
End Sub
i am trying to get irc chat working similar to mirc. but function
of doColor will worked on richextbox that embedded forecolour and
background colour. i had four mdichilds..if that is problem. this
code above will worked on small project i had no problem. i don't
know if my code above is accurate or not.
can ne 1 help me .
regards,

happy new yrs to every 1 >:o


Nov 21 '05 #5
the indeof is parsed nick ...that all

Chicago.IL.US.S tarLink.Org 001 djanjo2 :Welcome to the Internet Relay
Network djanjo2
Chicago.IL.US.S tarLink.Org 002 djanjo2 :Your host is
Chicago.IL.US.S tarLink.Org, running version u2.9.32StarLink 2.1
Chicago.IL.US.S tarLink.Org 372 djanjo2 :-
Chicago.IL.US.S tarLink.Org 003 djanjo2 :This server was created Thu Aug
5 2004 at 07:42:22 CDT

An unhandled exception of type 'System.NullRef erenceException ' occurred
in system.windows. forms.dll
Additional information: Object reference not set to an instance of an
object.

regards,

Supra wrote:
this is usercontrol control, then i added method too.
Function doColor(ByVal rtb As RichTextBox, ByVal a As String)
Dim b As String, n, fgcolor, bgcolor As Integer
Dim colour() As Color = {Color.White, Color.Black,
Color.DarkBlue, Color.DarkGreen , Color.Red, Color.Brown, _
Color.Purple, Color.Orange,
Color.Yellow, Color.LightGree n, Color.DarkMagen ta, Color.SkyBlue, _
Color.Blue, Color.Magenta,
Color.Gray, Color.LightSlat eGray}

fgcolor = 1
bgcolor = 0

For n = 1 To a.Length
b = Mid(a, n, 1)
If b = Chr(3) Then
'Parse Colours
If IsNumeric(Mid(a , n + 1, 1)) Then
If IsNumeric(Mid(a , n + 2, 1)) Then
If Mid(a, n + 3, 1) = "," Then
If IsNumeric(Mid(a , n + 4, 1)) Then
If IsNumeric(Mid(a , n + 5, 1)) Then
'@##,##
fgcolor = CInt(Mid(a, n + 1, 2))
bgcolor = CInt(Mid(a, n + 4, 2))
n += 5

Else
'@##,#
fgcolor = CInt(Mid(a, n + 1, 2))
bgcolor = CInt(Mid(a, n + 4, 1))
n += 4

End If
Else
'@##,
fgcolor = CInt(Mid(a, n + 1, 2))
n += 3

End If
Else
'@##
fgcolor = CInt(Mid(a, n + 1, 2))
n += 2
End If

ElseIf Mid(a, n + 2, 1) = "," Then
If IsNumeric(Mid(a , n + 3, 1)) Then
If IsNumeric(Mid(a , n + 4, 1)) Then
'@#,##
fgcolor = CInt(Mid(a, n + 1, 1))
bgcolor = CInt(Mid(a, n + 3, 2))
n += 4
Else
'@#,#
fgcolor = CInt(Mid(a, n + 1, 1))
bgcolor = CInt(Mid(a, n + 3, 1))
n += 3

End If
Else
'@#,
fgcolor = CInt(Mid(a, n + 1, 1))
n += 2
End If
Else
'@#
fgcolor = CInt(Mid(a, n + 1, 1))
n = n + 1
End If

If fgcolor > 15 Then
fgcolor = 1
End If

If bgcolor > 15 Then
bgcolor = 0
End If

rtb.SelectionCo lor = colour(fgcolor)
SelectionBackCo lor = colour(bgcolor)
Else
rtb.SelectionCo lor = colour(1)
SelectionBackCo lor = colour(0)
End If

ElseIf b = Chr(2) Then
Dim IsBold As Boolean = ((rtb.Selection Font.Style
And FontStyle.Bold) = FontStyle.Bold)
rtb.SelectionFo nt = _
New Font(rtb.Select ionFont,
DirectCast(IIf( IsBold, rtb.SelectionFo nt.Style And Not FontStyle.Bold,
rtb.SelectionFo nt.Style Or FontStyle.Bold) , FontStyle))

ElseIf b = Chr(31) Then
Dim IsUnderline As Boolean =
((rtb.Selection Font.Style And FontStyle.Under line) = FontStyle.Under line)
rtb.SelectionFo nt = _
New Font( _
rtb.SelectionFo nt, _
DirectCast(IIf( IsUnderline,
rtb.SelectionFo nt.Style And Not FontStyle.Under line,
rtb.SelectionFo nt.Style Or FontStyle.Under line), FontStyle))
ElseIf b = Chr(22) Then
Dim IsItalic As Boolean = ((rtb.Selection Font.Style
And FontStyle.Itali c) = FontStyle.Itali c)
rtb.SelectionFo nt = _
New Font( _
rtb.SelectionFo nt, _
DirectCast(IIf( IsItalic,
rtb.SelectionFo nt.Style And Not FontStyle.Itali c,
rtb.SelectionFo nt.Style Or FontStyle.Itali c), FontStyle))
ElseIf b = "" Then
' b = Mid(a, n, 1)
Else
rtb.SelectedTex t = b.ToString
End If
b = String.Empty
Next n
End Function
regards,
the above code will worked on small project. this is irc mirc chat
colour.

Dennis wrote:
I suspect you are trying to do something in "docolor" method with
sText like sText.Indexof() when sText is nothing.

"Supra" wrote:
i had usercontrol name doColor, then i added function procedure
called doColor. then i added module and called from method doColor
into module. the problem is i had to traced error:...
An unhandled exception of type 'System.NullRef erenceException '
occurred in system.windows. forms.dll
Additional information: Object reference not set to an instance of
an object.
this coming from module method....
in module:
Sub DisplayMessage( ByVal rtb As RichTextBox, ByVal sText As String,
Optional ByVal Colour As String = "")
rtb.SelectionSt art = rtb.Text.Length
'rtb.doColor(rt b, sText) <==== if i called docolor i got
error problem . but if i rem this....
rtb.SelectedTex t = sText <=== if i remmed above i got no
problem
rtb.SelectionSt art = rtb.Text.Length
rtb.ScrollToCar et()
sText = String.Empty
End Sub
i am trying to get irc chat working similar to mirc. but function
of doColor will worked on richextbox that embedded forecolour and
background colour. i had four mdichilds..if that is problem. this
code above will worked on small project i had no problem. i don't
know if my code above is accurate or not.
can ne 1 help me .
regards,

happy new yrs to every 1 >:o


Nov 21 '05 #6

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

Similar topics

51
5235
by: Mudge | last post by:
Please, someone, tell me why OO in PHP is better than procedural.
9
3855
by: bigoxygen | last post by:
Hi. I'm using a 3 tier FrontController Design for my web application right now. The problem is that I'm finding to have to duplicate a lot of code for similar functions; for example, listing users, and listing assignments use similar type commands. Is there a "better" way I can organize my code?
4
2425
by: jason | last post by:
Hello. Newbie on SQL and suffering through this. I have two tables created as such: drop table table1; go drop table table2; go
16
3099
by: Dario de Judicibus | last post by:
I'm getting crazy. Look at this code: #include <string.h> #include <stdio.h> #include <iostream.h> using namespace std ; char ini_code = {0xFF, 0xFE} ; char line_sep = {0x20, 0x28} ;
109
5828
by: Andrew Thompson | last post by:
It seems most people get there JS off web sites, which is entirely logical. But it is also a great pity since most of that code is of such poor quality. I was looking through the JS FAQ for any question that identifies the warning signs to look out for, the things that most easily and clearly identify the author of code as something less than a master of the art. I did not find an FAQ that answered it, but I think the FAQ
5
4044
by: ED | last post by:
I currently have vba code that ranks employees based on their average job time ordered by their region, zone, and job code. I currently have vba code that will cycle through a query and ranks each employee based on their region, zone, job code and avg job time. (See code below). My problem is that I do not know how to rank the ties. Right now if two people have the same avg time one will be ranked 3rd and the other ranked 4th. I would...
0
2083
by: Namratha Shah \(Nasha\) | last post by:
Hey Guys, Today we are going to look at Code Access Security. Code access security is a feature of .NET that manages code depending on its trust level. If the CLS trusts the code enough to allow it ro run then it will execute, the code execution depends on the permission provided to the assembly. If the code is not trusted wnough to run or it attempts to perform an action which doe not have the required permissions then its execution...
18
3148
by: Joe Fallon | last post by:
I have some complex logic which is fairly simply to build up into a string. I needed a way to Eval this string and return a Boolean result. This code works fine to achieve that goal. My question is what happens to the dynamically created assembly when the method is done running? Does GC take care of it? Or is it stuck in RAM until the ASP.Net process is recycled? This code executes pretty frequently (maybe 4 times per transaction) and...
37
5944
by: Alan Silver | last post by:
Hello, Newbie here, so please forgive what is probably a basic question ... I see a lot of discussion about "code behind", which if I have understood correctly, means that the script code goes in a separate file from the HTML. Apart from the obvious advantage if you have a separate designer and programmer, are there any other advantages to code behind? Most of the stuff I've seen so far uses code inside, but that's probably
0
8004
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
7934
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8425
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
8418
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...
1
8071
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,...
0
5445
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3912
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
3958
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1541
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.