473,325 Members | 2,792 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

WMI Question

I am trying to get values from a WMI Query in my textbox, txtResults I don't
think I am understand what I need to do to move the value from the for each
statement in the quary into the textbox, as the default implementation just
provides for outputing information in the console.
' this wont work and when i try to replace the console writeline with some
kind of txtresluts.text .,.....I either get an error or only the first set
of values returned.
For Each queryObj As ManagementObject in searcher.Get()

Console.WriteLine("-----------------------------------")
Console.WriteLine("Win32_Product instance")
Console.WriteLine("-----------------------------------")
Console.WriteLine("Caption: {0}", queryObj("Caption"))
Next.

I can write values in a class property that do not return multiple values,
but am not able to get a return on anything but the first set of values.

What Am I doing Wrong???

thanks..Shane
May 28 '07 #1
4 1534
Shane,

The code below does what you want but there is a pause getting the results
in the textbox

Start a new Windows Application
Add reference to System.Management
Paste in the code below:

----------------------------------------
Imports System.Management

Public Class Form1
Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

Public Sub New()
MyBase.New()

'This call is required by the Windows Form Designer.
InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub

'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub

'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer

'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents txtResults As System.Windows.Forms.TextBox
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents Button2 As System.Windows.Forms.Button
<System.Diagnostics.DebuggerStepThrough()Private Sub
InitializeComponent()
Me.txtResults = New System.Windows.Forms.TextBox
Me.Button1 = New System.Windows.Forms.Button
Me.Button2 = New System.Windows.Forms.Button
Me.SuspendLayout()
'
'txtResults
'
Me.txtResults.Location = New System.Drawing.Point(16, 16)
Me.txtResults.Multiline = True
Me.txtResults.Name = "txtResults"
Me.txtResults.ScrollBars = System.Windows.Forms.ScrollBars.Vertical
Me.txtResults.Size = New System.Drawing.Size(288, 192)
Me.txtResults.TabIndex = 0
Me.txtResults.Text = ""
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(16, 224)
Me.Button1.Name = "Button1"
Me.Button1.TabIndex = 1
Me.Button1.Text = "Get"
'
'Button2
'
Me.Button2.Location = New System.Drawing.Point(232, 224)
Me.Button2.Name = "Button2"
Me.Button2.TabIndex = 2
Me.Button2.Text = "Exit"
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(322, 263)
Me.Controls.Add(Me.Button2)
Me.Controls.Add(Me.Button1)
Me.Controls.Add(Me.txtResults)
Me.FormBorderStyle =
System.Windows.Forms.FormBorderStyle.FixedSingle
Me.MaximizeBox = False
Me.MinimizeBox = False
Me.Name = "Form1"
Me.StartPosition =
System.Windows.Forms.FormStartPosition.CenterScree n
Me.Text = "Results"
Me.ResumeLayout(False)

End Sub

#End Region

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim strTemp As String
Try
Dim mos As New ManagementObjectSearcher("root\CIMV2", "SELECT *
FROM Win32_Product")
For Each mo As ManagementObject In mos.Get()
txtResults.Text += CType(mo("Caption"), String) &
ControlChars.CrLf
Next
Catch ex As ManagementException
MessageBox.Show("An error occurred", Me.Text)
End Try
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Application.Exit()
End Sub
End Class
---------------------------------------------------

I hope this helps,

--
Newbie Coder
(It's just a name)

"shane" <az***@hotmail.comwrote in message
news:u9**************@TK2MSFTNGP02.phx.gbl...
I am trying to get values from a WMI Query in my textbox, txtResults I
don't
think I am understand what I need to do to move the value from the for
each
statement in the quary into the textbox, as the default implementation
just
provides for outputing information in the console.
' this wont work and when i try to replace the console writeline with some
kind of txtresluts.text .,.....I either get an error or only the first set
of values returned.
For Each queryObj As ManagementObject in searcher.Get()

Console.WriteLine("-----------------------------------")
Console.WriteLine("Win32_Product instance")
Console.WriteLine("-----------------------------------")
Console.WriteLine("Caption: {0}", queryObj("Caption"))
Next.

I can write values in a class property that do not return multiple values,
but am not able to get a return on anything but the first set of values.

What Am I doing Wrong???

thanks..Shane


May 28 '07 #2
thanks,

this code work great, but will not work for values of types other than
string, If i want to add a value that is not of type, how would i format the
value?

I have tried a few variations and keep getting the following message
"Additional information: Cast from type 'UInt64' to type 'Long' is not
valid."

here is the line that seems to be miscast.. txtresults.Text +=
CType(mo("size"), String) & ControlChars.CrLf

thanks,

shane

Dim strTemp As String

Try

Dim mos As New ManagementObjectSearcher("root\CIMV2", "SELECT * FROM
Win32_LogicalDisk")

For Each mo As ManagementObject In mos.Get()

txtResults.Text += CType(mo("size"), String) & ControlChars.CrLf

Next

Catch ex As ManagementException

MessageBox.Show("An error occurred", Me.Text)

End Try

"Newbie Coder" <ne*********@spammeplease.comwrote in message
news:eV**************@TK2MSFTNGP03.phx.gbl...
Shane,

The code below does what you want but there is a pause getting the results
in the textbox

Start a new Windows Application
Add reference to System.Management
Paste in the code below:

----------------------------------------
Imports System.Management

Public Class Form1
Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

Public Sub New()
MyBase.New()

'This call is required by the Windows Form Designer.
InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub

'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub

'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer

'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents txtResults As System.Windows.Forms.TextBox
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents Button2 As System.Windows.Forms.Button
<System.Diagnostics.DebuggerStepThrough()Private Sub
InitializeComponent()
Me.txtResults = New System.Windows.Forms.TextBox
Me.Button1 = New System.Windows.Forms.Button
Me.Button2 = New System.Windows.Forms.Button
Me.SuspendLayout()
'
'txtResults
'
Me.txtResults.Location = New System.Drawing.Point(16, 16)
Me.txtResults.Multiline = True
Me.txtResults.Name = "txtResults"
Me.txtResults.ScrollBars = System.Windows.Forms.ScrollBars.Vertical
Me.txtResults.Size = New System.Drawing.Size(288, 192)
Me.txtResults.TabIndex = 0
Me.txtResults.Text = ""
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(16, 224)
Me.Button1.Name = "Button1"
Me.Button1.TabIndex = 1
Me.Button1.Text = "Get"
'
'Button2
'
Me.Button2.Location = New System.Drawing.Point(232, 224)
Me.Button2.Name = "Button2"
Me.Button2.TabIndex = 2
Me.Button2.Text = "Exit"
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(322, 263)
Me.Controls.Add(Me.Button2)
Me.Controls.Add(Me.Button1)
Me.Controls.Add(Me.txtResults)
Me.FormBorderStyle =
System.Windows.Forms.FormBorderStyle.FixedSingle
Me.MaximizeBox = False
Me.MinimizeBox = False
Me.Name = "Form1"
Me.StartPosition =
System.Windows.Forms.FormStartPosition.CenterScree n
Me.Text = "Results"
Me.ResumeLayout(False)

End Sub

#End Region

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim strTemp As String
Try
Dim mos As New ManagementObjectSearcher("root\CIMV2", "SELECT *
FROM Win32_Product")
For Each mo As ManagementObject In mos.Get()
txtResults.Text += CType(mo("Caption"), String) &
ControlChars.CrLf
Next
Catch ex As ManagementException
MessageBox.Show("An error occurred", Me.Text)
End Try
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Application.Exit()
End Sub
End Class
---------------------------------------------------

I hope this helps,

--
Newbie Coder
(It's just a name)

"shane" <az***@hotmail.comwrote in message
news:u9**************@TK2MSFTNGP02.phx.gbl...
>I am trying to get values from a WMI Query in my textbox, txtResults I
don't
>think I am understand what I need to do to move the value from the for
each
>statement in the quary into the textbox, as the default implementation
just
>provides for outputing information in the console.
' this wont work and when i try to replace the console writeline with
some
kind of txtresluts.text .,.....I either get an error or only the first
set
of values returned.
For Each queryObj As ManagementObject in searcher.Get()

Console.WriteLine("-----------------------------------")
> Console.WriteLine("Win32_Product instance")
Console.WriteLine("-----------------------------------")
> Console.WriteLine("Caption: {0}",
queryObj("Caption"))
Next.

I can write values in a class property that do not return multiple
values,
but am not able to get a return on anything but the first set of values.

What Am I doing Wrong???

thanks..Shane



May 29 '07 #3
Shane,

SIZE isn't part of 'Win32_Product', hence the error:

http://msdn2.microsoft.com/en-us/library/aa394378.aspx

--
Newbie Coder
(It's just a name)

"shane" <az***@hotmail.comwrote in message
news:uT**************@TK2MSFTNGP05.phx.gbl...
thanks,

this code work great, but will not work for values of types other than
string, If i want to add a value that is not of type, how would i format
the
value?

I have tried a few variations and keep getting the following message
"Additional information: Cast from type 'UInt64' to type 'Long' is not
valid."

here is the line that seems to be miscast.. txtresults.Text +=
CType(mo("size"), String) & ControlChars.CrLf

thanks,

shane

Dim strTemp As String

Try

Dim mos As New ManagementObjectSearcher("root\CIMV2", "SELECT * FROM
Win32_LogicalDisk")

For Each mo As ManagementObject In mos.Get()

txtResults.Text += CType(mo("size"), String) & ControlChars.CrLf

Next

Catch ex As ManagementException

MessageBox.Show("An error occurred", Me.Text)

End Try

"Newbie Coder" <ne*********@spammeplease.comwrote in message
news:eV**************@TK2MSFTNGP03.phx.gbl...
Shane,

The code below does what you want but there is a pause getting the
results
in the textbox

Start a new Windows Application
Add reference to System.Management
Paste in the code below:

----------------------------------------
Imports System.Management

Public Class Form1
Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

Public Sub New()
MyBase.New()

'This call is required by the Windows Form Designer.
InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub

'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub

'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer

'NOTE: The following procedure is required by the Windows Form
Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents txtResults As System.Windows.Forms.TextBox
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents Button2 As System.Windows.Forms.Button
<System.Diagnostics.DebuggerStepThrough()Private Sub
InitializeComponent()
Me.txtResults = New System.Windows.Forms.TextBox
Me.Button1 = New System.Windows.Forms.Button
Me.Button2 = New System.Windows.Forms.Button
Me.SuspendLayout()
'
'txtResults
'
Me.txtResults.Location = New System.Drawing.Point(16, 16)
Me.txtResults.Multiline = True
Me.txtResults.Name = "txtResults"
Me.txtResults.ScrollBars =
System.Windows.Forms.ScrollBars.Vertical
Me.txtResults.Size = New System.Drawing.Size(288, 192)
Me.txtResults.TabIndex = 0
Me.txtResults.Text = ""
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(16, 224)
Me.Button1.Name = "Button1"
Me.Button1.TabIndex = 1
Me.Button1.Text = "Get"
'
'Button2
'
Me.Button2.Location = New System.Drawing.Point(232, 224)
Me.Button2.Name = "Button2"
Me.Button2.TabIndex = 2
Me.Button2.Text = "Exit"
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(322, 263)
Me.Controls.Add(Me.Button2)
Me.Controls.Add(Me.Button1)
Me.Controls.Add(Me.txtResults)
Me.FormBorderStyle =
System.Windows.Forms.FormBorderStyle.FixedSingle
Me.MaximizeBox = False
Me.MinimizeBox = False
Me.Name = "Form1"
Me.StartPosition =
System.Windows.Forms.FormStartPosition.CenterScree n
Me.Text = "Results"
Me.ResumeLayout(False)

End Sub

#End Region

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim strTemp As String
Try
Dim mos As New ManagementObjectSearcher("root\CIMV2", "SELECT
*
FROM Win32_Product")
For Each mo As ManagementObject In mos.Get()
txtResults.Text += CType(mo("Caption"), String) &
ControlChars.CrLf
Next
Catch ex As ManagementException
MessageBox.Show("An error occurred", Me.Text)
End Try
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Application.Exit()
End Sub
End Class
---------------------------------------------------

I hope this helps,

--
Newbie Coder
(It's just a name)

"shane" <az***@hotmail.comwrote in message
news:u9**************@TK2MSFTNGP02.phx.gbl...
I am trying to get values from a WMI Query in my textbox, txtResults I
don't
think I am understand what I need to do to move the value from the for
each
statement in the quary into the textbox, as the default implementation
just
provides for outputing information in the console.
' this wont work and when i try to replace the console writeline with
some
kind of txtresluts.text .,.....I either get an error or only the first
set
of values returned.
For Each queryObj As ManagementObject in searcher.Get()

Console.WriteLine("-----------------------------------")
Console.WriteLine("Win32_Product instance")
Console.WriteLine("-----------------------------------")
Console.WriteLine("Caption: {0}",
queryObj("Caption"))
Next.

I can write values in a class property that do not return multiple
values,
but am not able to get a return on anything but the first set of
values.
>
What Am I doing Wrong???

thanks..Shane



May 29 '07 #4
here is what I came up with...I can now pass in what area of the WMI inned
to look at..thanks for your help :)

Function WMI_TextBox_Writer(ByVal strRootWMI As String, ByVal strNameWMI As
String, ByVal WMIname As String) 'byval strRootWMI As String ,byval
strNameWMI As String, byval WMIname As String

Dim strTemp As Int64

'Dim test3 As String = m_strTPM

Try

'These Variables are for legacy implementation

'this was so i can remove comments and set function not to take variables

'Dim strRootWMI As String = "root\CIMV2"

'Dim strNameWMI As String = "SELECT * FROM Win32_LogicalDisk"

'Dim WMIname As String = "size"

'this set the ManagementObjectSearcher using 2 variables that are passed
into the function

Dim mos As New ManagementObjectSearcher(strRootWMI, strNameWMI)

' create a for each statment to loop through the ManagementObject

For Each mo As ManagementObject In mos.Get()

'strTemp is set to fist instance of ManagementObject

'

strTemp += System.Convert.ToInt64(mo(WMIname))

m_strTPM += System.Convert.ToString(strTemp) & vbCrLf

txtResults.Text &= "Disk Size = " & Me.propTextBox_Writer() & vbCrLf

Beep()

Next

Catch ex As ManagementException

MessageBox.Show("An error occurred", Me.Text)

End Try

End Function

"Newbie Coder" <ne*********@spammeplease.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Shane,

SIZE isn't part of 'Win32_Product', hence the error:

http://msdn2.microsoft.com/en-us/library/aa394378.aspx

--
Newbie Coder
(It's just a name)

"shane" <az***@hotmail.comwrote in message
news:uT**************@TK2MSFTNGP05.phx.gbl...
>thanks,

this code work great, but will not work for values of types other than
string, If i want to add a value that is not of type, how would i format
the
>value?

I have tried a few variations and keep getting the following message
"Additional information: Cast from type 'UInt64' to type 'Long' is not
valid."

here is the line that seems to be miscast.. txtresults.Text +=
CType(mo("size"), String) & ControlChars.CrLf

thanks,

shane

Dim strTemp As String

Try

Dim mos As New ManagementObjectSearcher("root\CIMV2", "SELECT * FROM
Win32_LogicalDisk")

For Each mo As ManagementObject In mos.Get()

txtResults.Text += CType(mo("size"), String) & ControlChars.CrLf

Next

Catch ex As ManagementException

MessageBox.Show("An error occurred", Me.Text)

End Try

"Newbie Coder" <ne*********@spammeplease.comwrote in message
news:eV**************@TK2MSFTNGP03.phx.gbl...
Shane,

The code below does what you want but there is a pause getting the
results
in the textbox

Start a new Windows Application
Add reference to System.Management
Paste in the code below:

----------------------------------------
Imports System.Management

Public Class Form1
Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

Public Sub New()
MyBase.New()

'This call is required by the Windows Form Designer.
InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub

'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As
Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub

'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer

'NOTE: The following procedure is required by the Windows Form
Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents txtResults As System.Windows.Forms.TextBox
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents Button2 As System.Windows.Forms.Button
<System.Diagnostics.DebuggerStepThrough()Private Sub
InitializeComponent()
Me.txtResults = New System.Windows.Forms.TextBox
Me.Button1 = New System.Windows.Forms.Button
Me.Button2 = New System.Windows.Forms.Button
Me.SuspendLayout()
'
'txtResults
'
Me.txtResults.Location = New System.Drawing.Point(16, 16)
Me.txtResults.Multiline = True
Me.txtResults.Name = "txtResults"
Me.txtResults.ScrollBars =
System.Windows.Forms.ScrollBars.Vertical
Me.txtResults.Size = New System.Drawing.Size(288, 192)
Me.txtResults.TabIndex = 0
Me.txtResults.Text = ""
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(16, 224)
Me.Button1.Name = "Button1"
Me.Button1.TabIndex = 1
Me.Button1.Text = "Get"
'
'Button2
'
Me.Button2.Location = New System.Drawing.Point(232, 224)
Me.Button2.Name = "Button2"
Me.Button2.TabIndex = 2
Me.Button2.Text = "Exit"
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(322, 263)
Me.Controls.Add(Me.Button2)
Me.Controls.Add(Me.Button1)
Me.Controls.Add(Me.txtResults)
Me.FormBorderStyle =
System.Windows.Forms.FormBorderStyle.FixedSingle
Me.MaximizeBox = False
Me.MinimizeBox = False
Me.Name = "Form1"
Me.StartPosition =
System.Windows.Forms.FormStartPosition.CenterScree n
Me.Text = "Results"
Me.ResumeLayout(False)

End Sub

#End Region

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim strTemp As String
Try
Dim mos As New ManagementObjectSearcher("root\CIMV2",
"SELECT
*
FROM Win32_Product")
For Each mo As ManagementObject In mos.Get()
txtResults.Text += CType(mo("Caption"), String) &
ControlChars.CrLf
Next
Catch ex As ManagementException
MessageBox.Show("An error occurred", Me.Text)
End Try
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Application.Exit()
End Sub
End Class
---------------------------------------------------

I hope this helps,

--
Newbie Coder
(It's just a name)

"shane" <az***@hotmail.comwrote in message
news:u9**************@TK2MSFTNGP02.phx.gbl...
I am trying to get values from a WMI Query in my textbox, txtResults I
don't
think I am understand what I need to do to move the value from the for
each
statement in the quary into the textbox, as the default implementation
just
provides for outputing information in the console.
' this wont work and when i try to replace the console writeline with
some
kind of txtresluts.text .,.....I either get an error or only the first
set
of values returned.
For Each queryObj As ManagementObject in searcher.Get()
Console.WriteLine("-----------------------------------")
Console.WriteLine("Win32_Product instance")

Console.WriteLine("-----------------------------------")
Console.WriteLine("Caption: {0}",
queryObj("Caption"))
Next.

I can write values in a class property that do not return multiple
values,
but am not able to get a return on anything but the first set of
values.
>>
What Am I doing Wrong???

thanks..Shane




May 29 '07 #5

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

Similar topics

1
by: Mohammed Mazid | last post by:
Can anyone please help me on how to move to the next and previous question? Here is a snippet of my code: Private Sub cmdNext_Click() End Sub Private Sub cmdPrevious_Click() showrecord
3
by: Stevey | last post by:
I have the following XML file... <?xml version="1.0"?> <animals> <animal> <name>Tiger</name> <questions> <question index="0">true</question> <question index="1">true</question> </questions>
7
by: nospam | last post by:
Ok, 3rd or is it the 4th time I have asked this question on Partial Types, so, since it seems to me that Partial Types is still in the design or development stages at Microsoft, I am going to ask...
3
by: Ekqvist Marko | last post by:
Hi, I have one Access database table including questions and answers. Now I need to give answer id automatically to questionID column. But I don't know how it is best (fastest) to do? table...
10
by: glenn | last post by:
I am use to programming in php and the way session and post vars are past from fields on one page through to the post page automatically where I can get to their values easily to write to a...
10
by: Rider | last post by:
Hi, simple(?) question about asp.net configuration.. I've installed ASP.NET 2.0 QuickStart Sample successfully. But, When I'm first start application the follow message shown. ========= Server...
53
by: Jeff | last post by:
In the function below, can size ever be 0 (zero)? char *clc_strdup(const char * CLC_RESTRICT s) { size_t size; char *p; clc_assert_not_null(clc_strdup, s); size = strlen(s) + 1;
56
by: spibou | last post by:
In the statement "a *= expression" is expression assumed to be parenthesized ? For example if I write "a *= b+c" is this the same as "a = a * (b+c)" or "a = a * b+c" ?
2
by: Allan Ebdrup | last post by:
Hi, I'm trying to render a Matrix question in my ASP.Net 2.0 page, A matrix question is a question where you have several options that can all be rated according to several possible ratings (from...
3
by: Zhang Weiwu | last post by:
Hello! I wrote this: ..required-question p:after { content: "*"; } Corresponding HTML: <div class="required-question"><p>Question Text</p><input /></div> <div...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.