This is my first attempt to re-write an old VB6 application that exported a
CSV file to a .NET application that exports an XML file with the equivelent
data. I have limited understanding of OO programming concepts (am trying to
learn) and XML serialization is all new ground for me. Anyway, here is what
I am trying to accomplish:
Goal
----
We sponsor competitions in ehich various teams compete. An "event" is made
up of a set of "shows". Each show uses a specific set of judges and may be
restricted to specific classes of competititors. Each show has several teams
competing. The objective of my XML code is to generate an output for a
selected event is something like:
<event name:Dublin Invitational>
<show>
<name>Juniors </name>
<team>
<teamname>Red Hats</teamname>
<class>JR</class>
<perftime>11:00 </perftime>
</team>
<team>
<teamname>Artur is</teamname>
<class>JR</class>
<perftime>11:10 </perftime>
</team>
</show>
<show>
<name>AA Prelims</name>
<team>
<teamname>Ace </teamname>
<class>AA</class>
<perftime>1:3 0</perftime>
</team>
<team>
<teamname>Fireb irds</teamname>
<class>JR</class>
<perftime>1:4 5</perftime>
</team>
</show>
</event>
Environment
-----------
The data is stored in two tables in an SQL Server 2000 database (see
structure below). The Shows table lists the name of the show, the judges,
etc for each event/show. The PerfSched table has an entry for each team
entered in a particular event/show. The tables are linked via the event and
show(seqnbr) fields.
My code is VB using VSNET 2003 IDE.
Attemped Approach (not working)
-----------------
I found several XML serialization examples in the on-line help and I am
trying to adapt an Order Entry example to my problem (the main parts of my
code are below). I open two SQL Data Readers. The first one, rdr1, loops
through the rows from the Shows table that match the event being processed,
adds that data to the event output ("evnt"), and then a second reader
("rdr2") is used to loop through all the entries in the PerfSched table for
that event/show and those are added to the event.
The problem is that if I execute the serializer at the point shown as "<=
Try 1" the resulting XML only has the data from the last show and its
participants. If I execute the serializer at the "<= Try 2" point, I get all
shows with all the participants for eah but I get the root element before
each set of show data.
How can I get just one instance of the root and all the show/participant
sets?
Thanks for any suggestions.
=============== == Condensed Code =============== =====
Private Sub CreateXML(ByVal filename As String)
Dim serializer As New XmlSerializer(G etType(Event))
Dim writer As New StreamWriter(fi lename)
Dim evnt As New Event
' Get the list of shows for the selected event
strSQL = "Select * From Shows Where ID = '" & strSelectedID & "'"
Dim cmd1 As New SqlCommand(strS QL, cn)
Dim rdr1 As SqlDataReader
rdr1 = cmd1.ExecuteRea der()
.......
Do While rdr1.Read
' Build the show base data
Dim currshow As New ShowBase
currshow.ShowNa me = rdr1("ShowName" )
currshow.ShowDa te = rdr1("ShowDate" )
currshow.SeqNbr = rdr1("SeqNbr")
...........
evnt.ShowBase = currshow
' Get all the entries for this show
strSQL = "Select * FROM PerfSched Where ID = '" & strSelectedID
& "' " & _
" AND SeqNbr = " & rdr1("SeqNbr")
Dim cmd2 As New SqlCommand(strS QL, cn2)
Dim rdr2 As SqlDataReader
rdr2 = cmd2.ExecuteRea der()
Dim entryslots(50) As Performance
Dim entrycount As Integer = 0
Do While rdr2.Read
' Create a Performance entry
Dim p3 As New Performance
p3.UnitID = rdr2("TeamID")
p3.Class = rdr2("Class")
p3.PerfTime = CDate(rdr2("Per fTime"))
entryslots(entr ycount) = p3
entrycount += 1
Loop
ReDim Preserve entryslots(entr ycount - 1)
evnt.Performanc es = entryslots
rdr2.Close()
serializer.Seri alize(writer, evnt) ' <= Try 2
Loop ' Loop for rdr1 - get next CGShows entry
rdr1.Close()
' Serializes the purchase order, and close the TextWriter.
'serializer.Ser ialize(writer, evnt) ' <= Try 1
writer.Close()
End Sub
<XmlRootAttribu te("EventName" , _
Namespace:="htt p://www.cpandl.com" , IsNullable:=Fal se)> _
Public Class Event
Public NameOfEvent As String
Public ShowBase As ShowBase
Public Performances() As Performance
End Class
Public Class ShowBase
<XmlAttributeAt tribute()> _
Public ID As String
Public ShowName As String
Public SeqNbr As Integer
Public ShowDate As Date
.....
End Class
Public Class Performance
Public TeamID As Integer
Public Class As String
Public PerfTime As DateTime
End Class
=============== Table Structures =============== ======
CREATE TABLE [dbo].[PerfSched] (
[EventID] [varchar] (20) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NOT NULL ,
[SeqNbr] [smallint] NOT NULL ,
[PerfTime] [smalldatetime] NOT NULL ,
[TeamID] [int] NULL ,
[Class] [varchar] (10) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NULL
) ON [PRIMARY]
CREATE TABLE [dbo].[Shows] (
[EventID] [varchar] (20) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NOT NULL ,
[SeqNbr] [smallint] NOT NULL ,
[ShowName] [varchar] (35) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NOT NULL ,
[ShowDate] [smalldatetime] NOT NULL ,
[Round] [smallint] NOT NULL,
[Type] [char] (2) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NOT NULL ,
[Judge1] [varchar] (20) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NOT NULL ,
[Judge2] [varchar] (20) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NULL ,
) ON [PRIMARY]
ALTER TABLE [dbo].[PerfSched] WITH NOCHECK ADD
CONSTRAINT [PK_PerfSched] PRIMARY KEY CLUSTERED
(
[EventID],
[SeqNbr],
[PerfTime]
) ON [PRIMARY]
ALTER TABLE [dbo].[Shows] WITH NOCHECK ADD
CONSTRAINT [DF_Shows_Round] DEFAULT (0) FOR [Round],
CONSTRAINT [PK_Shows] PRIMARY KEY CLUSTERED
(
[EventID],
[SeqNbr]
) ON [PRIMARY] 2 1631
The serializer is not designed to have multiple serializers writing to the
same stream. You should build up an entire in-memory object graph, then
serialize the whole thing, at the end, or if you want better performance
ditch serialization all together use the XmlTextWriter directly as follows:
Private Sub CreateXML(ByVal filename As String)
Dim writer As New XmlTextWriter(f ilename, Encoding.UTF8)
Dim strSQL As String
' Get the list of shows for the selected event
strSQL = "Select * From Shows Where ID = '" & strSelectedID & "'"
Dim cmd1 As New SqlCommand(strS QL, cn)
Dim rdr1 As SqlDataReader
rdr1 = cmd1.ExecuteRea der()
writer.WriteSta rtElement("even t") ' <event
writer.WriteAtt ributeString("n ame", strSelectedID)
Do While rdr1.Read
' Build the show base data
writer.WriteSta rtElement("show ") ' <show>
writer.WriteEle mentString("nam e", rdr1("ShowName" ))
writer.WriteEle mentString("dat e", rdr1("ShowDate" ))
' Get all the entries for this show
strSQL = "Select * FROM PerfSched Where ID = '" & strSelectedID
& "' " & _
" AND SeqNbr = " & rdr1("SeqNbr")
Dim cmd2 As New SqlCommand(strS QL, cn2)
Dim rdr2 As SqlDataReader
rdr2 = cmd2.ExecuteRea der()
Do While rdr2.Read
' Create a Performance entry
writer.WriteSta rtElement("team ") ' <team>
writer.WriteEle mentString("nam e", rdr2("TeamID"))
writer.WriteEle mentString("cla ss", rdr2("Class"))
writer.WriteEle mentString("per ftime", rdr2("PerfTime" ))
writer.WriteEnd Element() ' </team>
Loop
rdr2.Close()
writer.WriteEnd Element() ' </show>
Loop ' Loop for rdr1 - get next CGShows entry
rdr1.Close()
writer.WriteEnd Element() ' </event>
writer.Close();
End Sub
"Wayne Wengert" <wa************ ***@wengert.com > wrote in message
news:u1******** *****@TK2MSFTNG P12.phx.gbl... This is my first attempt to re-write an old VB6 application that exported
a CSV file to a .NET application that exports an XML file with the
equivelent data. I have limited understanding of OO programming concepts (am trying
to learn) and XML serialization is all new ground for me. Anyway, here is
what I am trying to accomplish:
Goal ---- We sponsor competitions in ehich various teams compete. An "event" is made up of a set of "shows". Each show uses a specific set of judges and may be restricted to specific classes of competititors. Each show has several
teams competing. The objective of my XML code is to generate an output for a selected event is something like:
<event name:Dublin Invitational> <show> <name>Juniors </name> <team> <teamname>Red Hats</teamname> <class>JR</class> <perftime>11:00 </perftime> </team> <team> <teamname>Artur is</teamname> <class>JR</class> <perftime>11:10 </perftime> </team> </show> <show> <name>AA Prelims</name> <team> <teamname>Ace </teamname> <class>AA</class> <perftime>1:3 0</perftime> </team> <team> <teamname>Fireb irds</teamname> <class>JR</class> <perftime>1:4 5</perftime> </team> </show> </event>
Environment ----------- The data is stored in two tables in an SQL Server 2000 database (see structure below). The Shows table lists the name of the show, the judges, etc for each event/show. The PerfSched table has an entry for each team entered in a particular event/show. The tables are linked via the event
and show(seqnbr) fields.
My code is VB using VSNET 2003 IDE.
Attemped Approach (not working) ----------------- I found several XML serialization examples in the on-line help and I am trying to adapt an Order Entry example to my problem (the main parts of my code are below). I open two SQL Data Readers. The first one, rdr1, loops through the rows from the Shows table that match the event being
processed, adds that data to the event output ("evnt"), and then a second reader ("rdr2") is used to loop through all the entries in the PerfSched table
for that event/show and those are added to the event.
The problem is that if I execute the serializer at the point shown as "<= Try 1" the resulting XML only has the data from the last show and its participants. If I execute the serializer at the "<= Try 2" point, I get
all shows with all the participants for eah but I get the root element before each set of show data.
How can I get just one instance of the root and all the show/participant sets?
Thanks for any suggestions.
=============== == Condensed Code =============== ===== Private Sub CreateXML(ByVal filename As String) Dim serializer As New XmlSerializer(G etType(Event)) Dim writer As New StreamWriter(fi lename) Dim evnt As New Event
' Get the list of shows for the selected event strSQL = "Select * From Shows Where ID = '" & strSelectedID & "'" Dim cmd1 As New SqlCommand(strS QL, cn) Dim rdr1 As SqlDataReader rdr1 = cmd1.ExecuteRea der() ....... Do While rdr1.Read ' Build the show base data Dim currshow As New ShowBase currshow.ShowNa me = rdr1("ShowName" ) currshow.ShowDa te = rdr1("ShowDate" ) currshow.SeqNbr = rdr1("SeqNbr") ........... evnt.ShowBase = currshow
' Get all the entries for this show strSQL = "Select * FROM PerfSched Where ID = '" &
strSelectedID & "' " & _ " AND SeqNbr = " & rdr1("SeqNbr") Dim cmd2 As New SqlCommand(strS QL, cn2) Dim rdr2 As SqlDataReader rdr2 = cmd2.ExecuteRea der() Dim entryslots(50) As Performance Dim entrycount As Integer = 0 Do While rdr2.Read ' Create a Performance entry Dim p3 As New Performance p3.UnitID = rdr2("TeamID") p3.Class = rdr2("Class") p3.PerfTime = CDate(rdr2("Per fTime")) entryslots(entr ycount) = p3 entrycount += 1 Loop ReDim Preserve entryslots(entr ycount - 1) evnt.Performanc es = entryslots rdr2.Close() serializer.Seri alize(writer, evnt) ' <= Try 2 Loop ' Loop for rdr1 - get next CGShows entry rdr1.Close() ' Serializes the purchase order, and close the TextWriter. 'serializer.Ser ialize(writer, evnt) ' <= Try 1 writer.Close() End Sub
<XmlRootAttribu te("EventName" , _ Namespace:="htt p://www.cpandl.com" , IsNullable:=Fal se)> _ Public Class Event Public NameOfEvent As String Public ShowBase As ShowBase Public Performances() As Performance End Class
Public Class ShowBase <XmlAttributeAt tribute()> _ Public ID As String Public ShowName As String Public SeqNbr As Integer Public ShowDate As Date ..... End Class
Public Class Performance Public TeamID As Integer Public Class As String Public PerfTime As DateTime End Class
=============== Table Structures =============== ====== CREATE TABLE [dbo].[PerfSched] ( [EventID] [varchar] (20) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NOT NULL , [SeqNbr] [smallint] NOT NULL , [PerfTime] [smalldatetime] NOT NULL , [TeamID] [int] NULL , [Class] [varchar] (10) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NULL ) ON [PRIMARY]
CREATE TABLE [dbo].[Shows] ( [EventID] [varchar] (20) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NOT NULL , [SeqNbr] [smallint] NOT NULL , [ShowName] [varchar] (35) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NOT NULL , [ShowDate] [smalldatetime] NOT NULL , [Round] [smallint] NOT NULL, [Type] [char] (2) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NOT NULL , [Judge1] [varchar] (20) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NOT NULL , [Judge2] [varchar] (20) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NULL ,
) ON [PRIMARY]
ALTER TABLE [dbo].[PerfSched] WITH NOCHECK ADD CONSTRAINT [PK_PerfSched] PRIMARY KEY CLUSTERED ( [EventID], [SeqNbr], [PerfTime] ) ON [PRIMARY]
ALTER TABLE [dbo].[Shows] WITH NOCHECK ADD CONSTRAINT [DF_Shows_Round] DEFAULT (0) FOR [Round], CONSTRAINT [PK_Shows] PRIMARY KEY CLUSTERED ( [EventID], [SeqNbr] ) ON [PRIMARY]
Chris;
Very helpful information! Thank you.
It seems there are way to many ways to do this. The on-line help examples a
not as helpful as they could be.
Thanks again
Wayne
"Chris Lovett" <cl*****@micros oft.com.no_spam > wrote in message
news:uE******** ********@TK2MSF TNGP10.phx.gbl. .. The serializer is not designed to have multiple serializers writing to the same stream. You should build up an entire in-memory object graph, then serialize the whole thing, at the end, or if you want better performance ditch serialization all together use the XmlTextWriter directly as
follows: Private Sub CreateXML(ByVal filename As String) Dim writer As New XmlTextWriter(f ilename, Encoding.UTF8) Dim strSQL As String
' Get the list of shows for the selected event strSQL = "Select * From Shows Where ID = '" & strSelectedID & "'" Dim cmd1 As New SqlCommand(strS QL, cn) Dim rdr1 As SqlDataReader rdr1 = cmd1.ExecuteRea der()
writer.WriteSta rtElement("even t") ' <event writer.WriteAtt ributeString("n ame", strSelectedID)
Do While rdr1.Read ' Build the show base data writer.WriteSta rtElement("show ") ' <show> writer.WriteEle mentString("nam e", rdr1("ShowName" )) writer.WriteEle mentString("dat e", rdr1("ShowDate" ))
' Get all the entries for this show strSQL = "Select * FROM PerfSched Where ID = '" &
strSelectedID & "' " & _ " AND SeqNbr = " & rdr1("SeqNbr") Dim cmd2 As New SqlCommand(strS QL, cn2) Dim rdr2 As SqlDataReader rdr2 = cmd2.ExecuteRea der()
Do While rdr2.Read ' Create a Performance entry writer.WriteSta rtElement("team ") ' <team> writer.WriteEle mentString("nam e", rdr2("TeamID")) writer.WriteEle mentString("cla ss", rdr2("Class")) writer.WriteEle mentString("per ftime", rdr2("PerfTime" )) writer.WriteEnd Element() ' </team> Loop rdr2.Close() writer.WriteEnd Element() ' </show>
Loop ' Loop for rdr1 - get next CGShows entry rdr1.Close() writer.WriteEnd Element() ' </event> writer.Close(); End Sub
"Wayne Wengert" <wa************ ***@wengert.com > wrote in message news:u1******** *****@TK2MSFTNG P12.phx.gbl... This is my first attempt to re-write an old VB6 application that
exported a CSV file to a .NET application that exports an XML file with the equivelent data. I have limited understanding of OO programming concepts (am trying to learn) and XML serialization is all new ground for me. Anyway, here is what I am trying to accomplish:
Goal ---- We sponsor competitions in ehich various teams compete. An "event" is
made up of a set of "shows". Each show uses a specific set of judges and may
be restricted to specific classes of competititors. Each show has several teams competing. The objective of my XML code is to generate an output for a selected event is something like:
<event name:Dublin Invitational> <show> <name>Juniors </name> <team> <teamname>Red Hats</teamname> <class>JR</class> <perftime>11:00 </perftime> </team> <team> <teamname>Artur is</teamname> <class>JR</class> <perftime>11:10 </perftime> </team> </show> <show> <name>AA Prelims</name> <team> <teamname>Ace </teamname> <class>AA</class> <perftime>1:3 0</perftime> </team> <team> <teamname>Fireb irds</teamname> <class>JR</class> <perftime>1:4 5</perftime> </team> </show> </event>
Environment ----------- The data is stored in two tables in an SQL Server 2000 database (see structure below). The Shows table lists the name of the show, the
judges, etc for each event/show. The PerfSched table has an entry for each team entered in a particular event/show. The tables are linked via the event and show(seqnbr) fields.
My code is VB using VSNET 2003 IDE.
Attemped Approach (not working) ----------------- I found several XML serialization examples in the on-line help and I am trying to adapt an Order Entry example to my problem (the main parts of
my code are below). I open two SQL Data Readers. The first one, rdr1, loops through the rows from the Shows table that match the event being processed, adds that data to the event output ("evnt"), and then a second reader ("rdr2") is used to loop through all the entries in the PerfSched table for that event/show and those are added to the event.
The problem is that if I execute the serializer at the point shown as
"<= Try 1" the resulting XML only has the data from the last show and its participants. If I execute the serializer at the "<= Try 2" point, I get all shows with all the participants for eah but I get the root element
before each set of show data.
How can I get just one instance of the root and all the show/participant sets?
Thanks for any suggestions.
=============== == Condensed Code =============== ===== Private Sub CreateXML(ByVal filename As String) Dim serializer As New XmlSerializer(G etType(Event)) Dim writer As New StreamWriter(fi lename) Dim evnt As New Event
' Get the list of shows for the selected event strSQL = "Select * From Shows Where ID = '" & strSelectedID &
"'" Dim cmd1 As New SqlCommand(strS QL, cn) Dim rdr1 As SqlDataReader rdr1 = cmd1.ExecuteRea der() ....... Do While rdr1.Read ' Build the show base data Dim currshow As New ShowBase currshow.ShowNa me = rdr1("ShowName" ) currshow.ShowDa te = rdr1("ShowDate" ) currshow.SeqNbr = rdr1("SeqNbr") ........... evnt.ShowBase = currshow
' Get all the entries for this show strSQL = "Select * FROM PerfSched Where ID = '" & strSelectedID & "' " & _ " AND SeqNbr = " & rdr1("SeqNbr") Dim cmd2 As New SqlCommand(strS QL, cn2) Dim rdr2 As SqlDataReader rdr2 = cmd2.ExecuteRea der() Dim entryslots(50) As Performance Dim entrycount As Integer = 0 Do While rdr2.Read ' Create a Performance entry Dim p3 As New Performance p3.UnitID = rdr2("TeamID") p3.Class = rdr2("Class") p3.PerfTime = CDate(rdr2("Per fTime")) entryslots(entr ycount) = p3 entrycount += 1 Loop ReDim Preserve entryslots(entr ycount - 1) evnt.Performanc es = entryslots rdr2.Close() serializer.Seri alize(writer, evnt) ' <= Try 2 Loop ' Loop for rdr1 - get next CGShows entry rdr1.Close() ' Serializes the purchase order, and close the TextWriter. 'serializer.Ser ialize(writer, evnt) ' <= Try 1 writer.Close() End Sub
<XmlRootAttribu te("EventName" , _ Namespace:="htt p://www.cpandl.com" , IsNullable:=Fal se)> _ Public Class Event Public NameOfEvent As String Public ShowBase As ShowBase Public Performances() As Performance End Class
Public Class ShowBase <XmlAttributeAt tribute()> _ Public ID As String Public ShowName As String Public SeqNbr As Integer Public ShowDate As Date ..... End Class
Public Class Performance Public TeamID As Integer Public Class As String Public PerfTime As DateTime End Class
=============== Table Structures =============== ====== CREATE TABLE [dbo].[PerfSched] ( [EventID] [varchar] (20) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NOT NULL
, [SeqNbr] [smallint] NOT NULL , [PerfTime] [smalldatetime] NOT NULL , [TeamID] [int] NULL , [Class] [varchar] (10) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NULL ) ON [PRIMARY]
CREATE TABLE [dbo].[Shows] ( [EventID] [varchar] (20) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NOT NULL
, [SeqNbr] [smallint] NOT NULL , [ShowName] [varchar] (35) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NOT NULL
, [ShowDate] [smalldatetime] NOT NULL , [Round] [smallint] NOT NULL, [Type] [char] (2) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NOT NULL , [Judge1] [varchar] (20) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NOT NULL , [Judge2] [varchar] (20) COLLATE SQL_Latin1_Gene ral_CP1_CI_AS NULL ,
) ON [PRIMARY]
ALTER TABLE [dbo].[PerfSched] WITH NOCHECK ADD CONSTRAINT [PK_PerfSched] PRIMARY KEY CLUSTERED ( [EventID], [SeqNbr], [PerfTime] ) ON [PRIMARY]
ALTER TABLE [dbo].[Shows] WITH NOCHECK ADD CONSTRAINT [DF_Shows_Round] DEFAULT (0) FOR [Round], CONSTRAINT [PK_Shows] PRIMARY KEY CLUSTERED ( [EventID], [SeqNbr] ) ON [PRIMARY]
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tim Jarman |
last post by:
Apologies in advance for the long post - I wanted to be sure I included all
the relevant details. The answer is probably very, very simple.
I am doing something stupid here, but I don't know what it is. I'm writing
an application with a Tkinter GUI (Python 2.4, Tcl/Tk 8.4.) and I want to
put a custom icon on the main window.
I've followed (so far as I understand it) the recipe in the eff-bot's
splendid Introduction to Tkinter - see:...
|
by: Stephen Cook |
last post by:
Having worked through the problems around enabling the document function
using an XmlUrlResolver I started work on building a useful class to hide
the intricacies.
Trying to generalise the process I've hit a snag.
How do I resolve multiple external references?
The transform method on a stylesheet only takes one resolver, not an array
Stephen
|
by: silly |
last post by:
/*Thanks again to thos who helped with my
'more hand written integer pow() functions (LONG POST)' query.
I needed to write a function to write out integers and after looking at some
stuff
on the web I felt they look a bit code-heavy so...
A) If you think the code attached is reasonable, consider it a donation,
if not please lets have your comments!
|
by: TPS |
last post by:
I have a virtual directory where all posted files are stored.
The ASP app does not have rights to the share on the other server where the
vir dir resides.
What is the best way to give the asp app the rights to post files to the vir
dir.
Thanks
|
by: limeydrink |
last post by:
Hi all,
I want to create a mobile field worker data solution.
Let me explain...
I work for a company that has some software used by call takers to
enter information into a database about faults with electrical
appliances they manufacture, sell to customers, and then provide
maintenance contracts for.
| |
by: Joseph S. |
last post by:
hi all,
debugging PHP applications interactively is possible, easy and free. I
am talking about PHPEclipse and using it for debugging over several
scripts or debugging through a session. Since I have wasted a lot of
time writing echo statements all over the code in order to confirm
program flow and watch variables, I feel I must share this with others
who will be facing similar problems.
PHPEclispe users can go to Step 5 directly....
|
by: theronnightstar |
last post by:
I am writing an anagram program for my fiance. Figured it would be an
excellent task to learn from. The way it is supposed to work is it
reads in a word list from a file into a temporary vector<string>. From
that it selects a random word 6 letters or more long. That is the word
of the game - the one to make all the anagrams from. After it selects
a word, I initialize two more vector<string>'s - unplayed_anagrams and
played_anagrams. I want...
|
by: parag_paul |
last post by:
hi All
I understand the need for long long , but what is the purpose of long
as a data type separately. Just makes the language intimidating to
start with, when you have to deal with so many data types.
|
by: raakhiparimkayala |
last post by:
Hi there, just digging into serialization a few questions about serialization.
1. Why do we need serialization?
Ans: For transferring the objects or saving the objects in database or file etc.
But why to serialize inorder to transfer the file? We can directly transfer the file if we create the class in separate .cs file and directly send the file to the person required.
2. Where do we implement serialization?
Ans: Remoting
Can any...
|
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: 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,...
| |
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: 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: 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();...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |