473,767 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to show the progress of the file being downloaded?

My application should check for new updates when user chooses this
option in the menu.
It should go online and check the flag and compare with current flag
in the programs directory. If version is newer it should start
download of the update file.
This wouldn't be a problem, but how can I show the progress of the
upgrade file which is being downloaded?

I need to show this in percents.

File might have different size from version to version and I am little
bit confused on how to do this.

Also could someone show me how to start the download?

Could someone please give me some guidelines or post some code if
possible.

Every help very much appreciated.
Thank you.

Martin

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #1
9 1997
* ma******@74tech-dot-com.no-spam.invalid (Martin Ho) scripsit:
My application should check for new updates when user chooses this
option in the menu.
It should go online and check the flag and compare with current flag
in the programs directory. If version is newer it should start
download of the update file.
This wouldn't be a problem, but how can I show the progress of the
upgrade file which is being downloaded?

I need to show this in percents.


Sample in C#:

<http://www.codeproject .com/csharp/WebDownload.asp ?print=true>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
that is great... I am looking at it right now...
In mean time if some of you have a code in vb.net, please save me a
job of re-writing it from c and post it here...
thanks..
Martin

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #3
I have translated the whole c# code for you to vb.net, (see bottom for
the problem):

We need someone to help us with it.

Imports System
Imports System.Drawing
Imports System.Collecti ons
Imports System.Componen tModel
Imports System.Windows. Forms
Imports RJH.Utils.WebDo wnload
Public Class WebDownloadForm
Inherits System.Windows. Forms.Form
Private downloadUrlText Box As System.Windows. Forms.TextBox
Private urlLabel As System.Windows. Forms.Label
Private outputGroupBox As System.Windows. Forms.GroupBox
Private downloadBtn As System.Windows. Forms.Button
Private downloadProgres sLbl As System.Windows. Forms.Label
Private bytesDownloaded Lbl As System.Windows. Forms.Label
Private totalBytesLbl As System.Windows. Forms.Label
Private bytesDownloaded TextBox As
System.Windows. Forms.TextBox
Private totalBytesTextB ox As System.Windows. Forms.TextBox
Private progressBar As System.Windows. Forms.ProgressB ar
Private components As System.Componen tModel.Containe r =
Nothing

Public Sub New()
InitializeCompo nent()
End Sub

Protected Overloads Overrides Sub Dispose(ByVal disposing
As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Disp ose()
End If
End If
MyBase.Dispose( disposing)
End Sub

Private Sub InitializeCompo nent()
Me.downloadUrlT extBox = New System.Windows. Forms.TextBox
Me.urlLabel = New System.Windows. Forms.Label
Me.outputGroupB ox = New System.Windows. Forms.GroupBox
Me.downloadBtn = New System.Windows. Forms.Button
Me.progressBar = New System.Windows. Forms.ProgressB ar
Me.downloadProg ressLbl = New System.Windows. Forms.Label
Me.bytesDownloa dedLbl = New System.Windows. Forms.Label
Me.totalBytesLb l = New System.Windows. Forms.Label
Me.bytesDownloa dedTextBox = New
System.Windows. Forms.TextBox
Me.totalBytesTe xtBox = New System.Windows. Forms.TextBox
Me.outputGroupB ox.SuspendLayou t()
Me.SuspendLayou t()
Me.downloadUrlT extBox.Location = New
System.Drawing. Point(128, 16)
Me.downloadUrlT extBox.Name =
"downloadUrlTex tBox"
Me.downloadUrlT extBox.Size = New
System.Drawing. Size(280, 20)
Me.downloadUrlT extBox.TabIndex = 0
Me.downloadUrlT extBox.Text = ""
Me.urlLabel.Loc ation = New System.Drawing. Point(16,
20)
Me.urlLabel.Nam e = "urlLabel"
Me.urlLabel.Siz e = New System.Drawing. Size(100,
16)
Me.urlLabel.Tab Index = 1
Me.urlLabel.Tex t = "File To Download :"
Me.outputGroupB ox.Controls.Add Range(New
System.Windows. Forms.Control() {Me.totalBytesT extBox,
Me.bytesDownloa dedTextBox, Me.bytesDownloa dedLbl,
Me.downloadProg ressLbl, Me.progressBar, Me.totalBytesLb l})
Me.outputGroupB ox.Enabled = False
Me.outputGroupB ox.Location = New
System.Drawing. Point(8, 48)
Me.outputGroupB ox.Name = "outputGroupBox "
Me.outputGroupB ox.Size = New System.Drawing. Size(504,
120)
Me.outputGroupB ox.TabIndex = 2
Me.outputGroupB ox.TabStop = False
Me.outputGroupB ox.Text = "Output and Callbacks"
Me.downloadBtn. Location = New
System.Drawing. Point(416, 16)
Me.downloadBtn. Name = "downloadBt n"
Me.downloadBtn. Size = New System.Drawing. Size(88,
23)
Me.downloadBtn. TabIndex = 3
Me.downloadBtn. Text = "Download"
AddHandler Me.downloadBtn. Click, AddressOf
Me.downloadBtn_ Click
Me.progressBar. Location = New
System.Drawing. Point(120, 88)
Me.progressBar. Name = "progressBa r"
Me.progressBar. Size = New System.Drawing. Size(376,
23)
Me.progressBar. TabIndex = 0
Me.downloadProg ressLbl.Locatio n = New
System.Drawing. Point(16, 88)
Me.downloadProg ressLbl.Name =
"downloadProgre ssLbl"
Me.downloadProg ressLbl.Size = New
System.Drawing. Size(104, 23)
Me.downloadProg ressLbl.TabInde x = 1
Me.downloadProg ressLbl.Text = "Download
Progress"
Me.bytesDownloa dedLbl.Location = New
System.Drawing. Point(16, 28)
Me.bytesDownloa dedLbl.Name =
"bytesDownloade dLbl"
Me.bytesDownloa dedLbl.TabIndex = 2
Me.bytesDownloa dedLbl.Text = "Bytes Downloaded"
Me.totalBytesLb l.Location = New
System.Drawing. Point(16, 60)
Me.totalBytesLb l.Name = "totalBytes Lbl"
Me.totalBytesLb l.TabIndex = 2
Me.totalBytesLb l.Text = "Total Bytes"
Me.bytesDownloa dedTextBox.Loca tion = New
System.Drawing. Point(120, 24)
Me.bytesDownloa dedTextBox.Name =
"bytesDownloade dTextBox"
Me.bytesDownloa dedTextBox.Read Only = True
Me.bytesDownloa dedTextBox.Size = New
System.Drawing. Size(168, 20)
Me.bytesDownloa dedTextBox.TabI ndex = 3
Me.bytesDownloa dedTextBox.Text = ""
Me.bytesDownloa dedTextBox.Text Align =
System.Windows. Forms.Horizonta lAlignment.Cent er
Me.totalBytesTe xtBox.Location = New
System.Drawing. Point(120, 56)
Me.totalBytesTe xtBox.Name = "totalBytesText Box"
Me.totalBytesTe xtBox.ReadOnly = True
Me.totalBytesTe xtBox.Size = New
System.Drawing. Size(168, 20)
Me.totalBytesTe xtBox.TabIndex = 4
Me.totalBytesTe xtBox.Text = ""
Me.totalBytesTe xtBox.TextAlign =
System.Windows. Forms.Horizonta lAlignment.Cent er
Me.AutoScaleBas eSize = New System.Drawing. Size(5,
13)
Me.ClientSize = New System.Drawing. Size(520, 175)
Me.Controls.Add Range(New
System.Windows. Forms.Control() {Me.downloadBtn ,
Me.outputGroupB ox, Me.urlLabel, Me.downloadUrlT extBox})
Me.FormBorderSt yle =
System.Windows. Forms.FormBorde rStyle.FixedDia log
Me.Name = "WebDownloadFor m"
Me.Text = "WebDownloa d Tester"
Me.outputGroupB ox.ResumeLayout (False)
Me.ResumeLayout (False)
End Sub

<STAThread()> _
Shared Sub Main()
Application.Run (New WebDownloadForm )
End Sub

Private Sub DownloadProgres sCallback(ByVal bytesSoFar As
Integer, ByVal totalBytes As Integer)
bytesDownloaded TextBox.Text =
bytesSoFar.ToSt ring("#,##0")
If Not (totalBytes = -1) Then
progressBar.Min imum = 0
progressBar.Max imum = totalBytes
progressBar.Val ue = bytesSoFar
totalBytesTextB ox.Text =
totalBytes.ToSt ring("#,##0")
Else
progressBar.Vis ible = False
totalBytesTextB ox.Text = "Total File Size Not
Known"
End If
End Sub

Private Sub DownloadComplet eCallback(ByVal dataDownloaded
As Byte())
If Not progressBar.Vis ible Then
progressBar.Vis ible = True
progressBar.Min imum = 0
progressBar.Val ue = progressBar.Max imum = 1
totalBytesTextB ox.Text = bytesDownloaded TextBox.Text
End If
MessageBox.Show ("Download complete...",
"Download Info")
End Sub

Private Sub downloadBtn_Cli ck(ByVal sender As Object,
ByVal e As System.EventArg s)
If Not (Me.downloadUrl TextBox.Text = "")
Then
Me.outputGroupB ox.Enabled = True
Me.bytesDownloa dedTextBox.Text = ""
Me.totalBytesTe xtBox.Text = ""
Me.progressBar. Minimum = 0
Me.progressBar. Maximum = 0
Me.progressBar. Value = 0
Dim dl As DownloadThread = New DownloadThread
dl.DownloadUrl = Me.downloadUrlT extBox.Text
AddHandler dl.CompleteCall back, AddressOf
DownloadComplet eCallback
AddHandler dl.ProgressCall back, AddressOf
DownloadProgres sCallback
Dim t As System.Threadin g.Thread = New
System.Threadin g.Thread(New
System.Threadin g.ThreadStart(d l.Download))
t.Start()
End If
End Sub
End Class
but I can't figure out why this line is giving me an error:

[code:1:e0e46f5a c2] Dim t As System.Threadin g.Thread = New
System.Threadin g.Thread(New
System.Threadin g.ThreadStart(d l.Download))[/code:1:e0e46f5a c2]
Could someone please look at it?

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.co m The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #4
Ok, it workes now...

just download that example from c#.
Then use webdownload.dll and add it to your vb file refferences...
copy all forms boxes from c# to vb.net

and copy this code

Imports System
Imports System.Drawing
Imports System.Collecti ons
Imports System.Componen tModel
Imports System.Windows. Forms
Imports RJH.Utils.WebDo wnload
Public Class WebDownloadForm
Inherits System.Windows. Forms.Form
Private downloadUrlText Box As System.Windows. Forms.TextBox
Private urlLabel As System.Windows. Forms.Label
Private outputGroupBox As System.Windows. Forms.GroupBox
Private downloadBtn As System.Windows. Forms.Button
Private downloadProgres sLbl As System.Windows. Forms.Label
Private bytesDownloaded Lbl As System.Windows. Forms.Label
Private totalBytesLbl As System.Windows. Forms.Label
Private bytesDownloaded TextBox As
System.Windows. Forms.TextBox
Private totalBytesTextB ox As System.Windows. Forms.TextBox
Private progressBar As System.Windows. Forms.ProgressB ar
Private components As System.Componen tModel.Containe r =
Nothing

Public Sub New()
InitializeCompo nent()
End Sub

Protected Overloads Overrides Sub Dispose(ByVal disposing
As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Disp ose()
End If
End If
MyBase.Dispose( disposing)
End Sub

Private Sub InitializeCompo nent()
Me.downloadUrlT extBox = New System.Windows. Forms.TextBox
Me.urlLabel = New System.Windows. Forms.Label
Me.outputGroupB ox = New System.Windows. Forms.GroupBox
Me.downloadBtn = New System.Windows. Forms.Button
Me.progressBar = New System.Windows. Forms.ProgressB ar
Me.downloadProg ressLbl = New System.Windows. Forms.Label
Me.bytesDownloa dedLbl = New System.Windows. Forms.Label
Me.totalBytesLb l = New System.Windows. Forms.Label
Me.bytesDownloa dedTextBox = New
System.Windows. Forms.TextBox
Me.totalBytesTe xtBox = New System.Windows. Forms.TextBox
Me.outputGroupB ox.SuspendLayou t()
Me.SuspendLayou t()
Me.downloadUrlT extBox.Location = New
System.Drawing. Point(128, 16)
Me.downloadUrlT extBox.Name =
"downloadUrlTex tBox"
Me.downloadUrlT extBox.Size = New
System.Drawing. Size(280, 20)
Me.downloadUrlT extBox.TabIndex = 0
Me.downloadUrlT extBox.Text = ""
Me.urlLabel.Loc ation = New System.Drawing. Point(16,
20)
Me.urlLabel.Nam e = "urlLabel"
Me.urlLabel.Siz e = New System.Drawing. Size(100,
16)
Me.urlLabel.Tab Index = 1
Me.urlLabel.Tex t = "File To Download :"
Me.outputGroupB ox.Controls.Add Range(New
System.Windows. Forms.Control() {Me.totalBytesT extBox,
Me.bytesDownloa dedTextBox, Me.bytesDownloa dedLbl,
Me.downloadProg ressLbl, Me.progressBar, Me.totalBytesLb l})
Me.outputGroupB ox.Enabled = False
Me.outputGroupB ox.Location = New
System.Drawing. Point(8, 48)
Me.outputGroupB ox.Name = "outputGroupBox "
Me.outputGroupB ox.Size = New System.Drawing. Size(504,
120)
Me.outputGroupB ox.TabIndex = 2
Me.outputGroupB ox.TabStop = False
Me.outputGroupB ox.Text = "Output and Callbacks"
Me.downloadBtn. Location = New
System.Drawing. Point(416, 16)
Me.downloadBtn. Name = "downloadBt n"
Me.downloadBtn. Size = New System.Drawing. Size(88,
23)
Me.downloadBtn. TabIndex = 3
Me.downloadBtn. Text = "Download"
AddHandler Me.downloadBtn. Click, AddressOf
Me.downloadBtn_ Click
Me.progressBar. Location = New
System.Drawing. Point(120, 88)
Me.progressBar. Name = "progressBa r"
Me.progressBar. Size = New System.Drawing. Size(376,
23)
Me.progressBar. TabIndex = 0
Me.downloadProg ressLbl.Locatio n = New
System.Drawing. Point(16, 88)
Me.downloadProg ressLbl.Name =
"downloadProgre ssLbl"
Me.downloadProg ressLbl.Size = New
System.Drawing. Size(104, 23)
Me.downloadProg ressLbl.TabInde x = 1
Me.downloadProg ressLbl.Text = "Download
Progress"
Me.bytesDownloa dedLbl.Location = New
System.Drawing. Point(16, 28)
Me.bytesDownloa dedLbl.Name =
"bytesDownloade dLbl"
Me.bytesDownloa dedLbl.TabIndex = 2
Me.bytesDownloa dedLbl.Text = "Bytes Downloaded"
Me.totalBytesLb l.Location = New
System.Drawing. Point(16, 60)
Me.totalBytesLb l.Name = "totalBytes Lbl"
Me.totalBytesLb l.TabIndex = 2
Me.totalBytesLb l.Text = "Total Bytes"
Me.bytesDownloa dedTextBox.Loca tion = New
System.Drawing. Point(120, 24)
Me.bytesDownloa dedTextBox.Name =
"bytesDownloade dTextBox"
Me.bytesDownloa dedTextBox.Read Only = True
Me.bytesDownloa dedTextBox.Size = New
System.Drawing. Size(168, 20)
Me.bytesDownloa dedTextBox.TabI ndex = 3
Me.bytesDownloa dedTextBox.Text = ""
Me.bytesDownloa dedTextBox.Text Align =
System.Windows. Forms.Horizonta lAlignment.Cent er
Me.totalBytesTe xtBox.Location = New
System.Drawing. Point(120, 56)
Me.totalBytesTe xtBox.Name = "totalBytesText Box"
Me.totalBytesTe xtBox.ReadOnly = True
Me.totalBytesTe xtBox.Size = New
System.Drawing. Size(168, 20)
Me.totalBytesTe xtBox.TabIndex = 4
Me.totalBytesTe xtBox.Text = ""
Me.totalBytesTe xtBox.TextAlign =
System.Windows. Forms.Horizonta lAlignment.Cent er
Me.AutoScaleBas eSize = New System.Drawing. Size(5,
13)
Me.ClientSize = New System.Drawing. Size(520, 175)
Me.Controls.Add Range(New
System.Windows. Forms.Control() {Me.downloadBtn ,
Me.outputGroupB ox, Me.urlLabel, Me.downloadUrlT extBox})
Me.FormBorderSt yle =
System.Windows. Forms.FormBorde rStyle.FixedDia log
Me.Name = "WebDownloadFor m"
Me.Text = "WebDownloa d Tester"
Me.outputGroupB ox.ResumeLayout (False)
Me.ResumeLayout (False)
End Sub

<STAThread()> _
Shared Sub Main()
Application.Run (New WebDownloadForm )
End Sub

Private Sub DownloadProgres sCallback(ByVal bytesSoFar As
Integer, ByVal totalBytes As Integer)
bytesDownloaded TextBox.Text =
bytesSoFar.ToSt ring("#,##0")
If Not (totalBytes = -1) Then
progressBar.Min imum = 0
progressBar.Max imum = totalBytes
progressBar.Val ue = bytesSoFar
totalBytesTextB ox.Text =
totalBytes.ToSt ring("#,##0")
Else
progressBar.Vis ible = False
totalBytesTextB ox.Text = "Total File Size Not
Known"
End If
End Sub

Private Sub DownloadComplet eCallback(ByVal dataDownloaded
As Byte())
If Not progressBar.Vis ible Then
progressBar.Vis ible = True
progressBar.Min imum = 0
progressBar.Val ue = progressBar.Max imum = 1
totalBytesTextB ox.Text = bytesDownloaded TextBox.Text
End If
MessageBox.Show ("Download complete...",
"Download Info")
End Sub

Private Sub downloadBtn_Cli ck(ByVal sender As Object,
ByVal e As System.EventArg s)
If Not (Me.downloadUrl TextBox.Text = "")
Then
Me.outputGroupB ox.Enabled = True
Me.bytesDownloa dedTextBox.Text = ""
Me.totalBytesTe xtBox.Text = ""
Me.progressBar. Minimum = 0
Me.progressBar. Maximum = 0
Me.progressBar. Value = 0
Dim dl As DownloadThread = New DownloadThread
dl.DownloadUrl = Me.downloadUrlT extBox.Text
AddHandler dl.CompleteCall back, AddressOf
DownloadComplet eCallback
AddHandler dl.ProgressCall back, AddressOf
DownloadProgres sCallback
'Dim t As System.Threadin g.Thread = New
System.Threadin g.Thread(New
System.Threadin g.ThreadStart(d l.Download))

Dim t As System.Threadin g.Thread = New
System.Threadin g.Thread(New
System.Threadin g.ThreadStart(A ddressOf dl.Download))

t.Start()
End If
End Sub
End Class
I have tested it and works just perfect.
Hope I could help.

vjay

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #5
Thank you very much. I can't say how much you helped me.
Thanks for your time as well.
I am going to test it now.

Martin

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #6
Cor
Hi Herfried,

This website needs a login, this was in an other newsgroup also,
As others in that newsgroup I think you need to tell that.

(I like the EU law for protecting personal information.)

Cor
Nov 20 '05 #7
* "Cor" <no*@non.com> scripsit:
This website needs a login, this was in an other newsgroup also,
As others in that newsgroup I think you need to tell that.


Yes -- you will need an account (free, I have one too and I don't get
spammed).

;-)

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #8
Cor
Hi Herfried,

I am curious if you saw that message from Joe Nuke me.

I think he does not know what I was writing, I special did not put the
English meaning with it,

:-))

Cor
Nov 20 '05 #9
* "Cor" <no*@non.com> scripsit:
I am curious if you saw that message from Joe Nuke me.
Mhm... For some reason I missed it.
I think he does not know what I was writing, I special did not put the
English meaning with it,


I'll have a look at it.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #10

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

Similar topics

2
6179
by: Julia Briggs | last post by:
Hello, I've read quite a bit of discussion on different approaches of how to create a download progress meter that can be implemented into a Web site. I understand that by the very nature of the way the download transport is handled that this cannot "automatically" be done... upload progress meters exist, but not download. However, I've seen different theories on how it could be done if one knows the file size. Is anyone aware of a...
8
18359
by: Randy | last post by:
Hi, is it possible to show the progress of a big file being copied e.g. in a "progressbar"? I tried to use file.copy - but this seems to make no sense :-( Thanks in advance, Randy
8
4949
by: Dino M. Buljubasic | last post by:
I am trying to create a pop up progress bar (on a form) that would show progress from downloading files from an FTP server. any help will be appreciated
7
2135
by: Loane Sharp | last post by:
Hi there I'm currently using WebClient.DownloadFile to download a file from the server to my local disk. Is there a way to show the progress of the file download? Best regards Loane
0
2533
by: Ritesh Raj Sarraf | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, In urllib.urlretrieve I can use reporthook to implement a progress bar. But in urllib2.urlopen I can't. I have to use urllib2.urlopen because it throws exceptions which are important to be handled where as urlretrieve is dumb.
3
8667
by: Ritesh Raj Sarraf | last post by:
Hi, I have a small application, written in Python, that uses threads. The application uses function foo() to download files from the web. As it reads data from the web server, it runs a progress bar by calling an install of a progress bar class. When using threads, I get the problem that the progress bar gets over-written by the download progress of files from other threads.
0
1864
by: remya1000 | last post by:
by using FTP i can send files to server using vb.net. if the file is big, then it will take some time to complete the sending process to server.or if we were sending 3-4 files to the server one by one,then whethere we can show the progress of each file sending to server in progress bar. so that the FTP clients can see the progress of file sending to the server. any idea how we can do this to show the progress of each file sending. if we...
2
2975
by: mcw.willart | last post by:
Hi, I use a backgroundworker to get the total size of a homeshare (as it is a bit time-consuming). Wat i would like to do, is show the progress, but at start i don't know how much files/folders will come up, so i dont't know how to feed the progressbar (i believe i need to know the maximum # of files to get a representative progress bar?). Anyone has any ideas?
6
5083
by: Michael | last post by:
I need to copy a huge file (around 300Mb) from a mapped network drive to another. I have created a console application and used System.IO.File.Copy function. But I want to know the process of this copying work. Is there any way? I am thinking that I can get the file size, but I don't know how to get the size copied. Thanks.
0
10170
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
10014
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
9960
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
9841
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8840
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
7384
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
5280
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
5425
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2808
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.