473,387 Members | 1,903 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,387 software developers and data experts.

Cannot find out missing brace error }

Was editing code, am getting the following errors
} expected
Type or namespace definition, or end-of-file expected
Eyes crossed cannot find code below!

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Net.Sockets;
using System.IO;
using System.Xml;
using System.Xml.XPath;
namespace File_Generation_System
{

public partial class transfer : Form
{
public string nextLine;
public string cardNumber;
public string licenseNumber;
public string oLicenseNumber = null;
public StreamReader sr;
public XmlDataDocument doc;
public string oldplate;
public XmlElement newVrRecord;
public XmlElement newInquiryData;

public transfer()
{
InitializeComponent();
}

private void exitTransferScreenToolStripMenuItem_Click(object
sender, EventArgs e)
{
this.Close();
}

private void transfer_Load(object sender, EventArgs e)
{
//TcpClient tcpclient = new TcpClient("mvs.teale.ca.gov",
Int32.Parse("21"));
//NetworkStream ns = tcpclient.GetStream();
//FileStream fs = File.Open("form1.cs", FileMode.Open);

//int data = fs.ReadByte();
//while (data != -1)
//{
// ns.WriteByte((byte)data);
// data = fs.ReadByte();
//}
//fs.Close();
//ns.Close();
//tcpclient.Close();
}

private void vRInquiriesToolStripMenuItem1_Click(object sender,
EventArgs e)
{

//Create Dataset
DataSet ds = new DataSet();

//Read XML document into dataset
ds.ReadXml("vrdatabase.xml");

foreach (DataColumn col in ds.Tables["inquiry_data"].Columns)
{
MessageBox.Show("columnname=" + col.ColumnName );
}

//This allows for editing
ds.EnforceConstraints = false;

//Create new XML document
doc = new XmlDataDocument(ds);

//Create a nodelist with just Licenses
XmlNodeList nodeLst =
doc.SelectNodes("//vrdatabase/vr_record/inquiry_data/license_number");

//Create new vr_record tag
//newVrRecord = doc.CreateElement("vr_record");

//Create inquiry_data child element
// XmlElement newInquiryData = doc.CreateElement("inquiry_data");
//newVrRecord.AppendChild(newInquiryData);

int nodeTotal = nodeLst.Count;

MessageBox.Show("node total=" + nodeTotal);
//Create Strean reader eventually point to real file
FileStream fileStream = new
FileStream("vrinqout.txt",FileMode.Open,FileAccess .Read);
sr = new StreamReader(fileStream);

//Declare a counter
int totalRecords = 0;

//create the declaration if not created do this on first run or
whenever file
// does not exist
//XmlDeclaration xmldecl = doc.CreateXmlDeclaration("1.0", null,
null);

while ((nextLine = sr.ReadLine()) != null)
{

cardNumber = nextLine.Substring(nextLine.Length - 1, 1);
licenseNumber = nextLine.Substring(0, 7);
if (cardNumber == "1")
{
newVrRecord = doc.CreateElement("vr_record");
newInquiryData = doc.CreateElement("inquiry_data");
newVrRecord.AppendChild(newInquiryData);

XmlElement newLicenseNumber =
doc.CreateElement("license_number");
newLicenseNumber.InnerText = nextLine.Substring(0,7);
newInquiryData.AppendChild(newLicenseNumber);

//Insert call to section to walk thru loaded dataset
to see if
//license number exists.

//updateXmlDatabase(newLicenseNumber.ToString());

}
if (cardNumber == "2")
{

XmlElement regExpireDate =
doc.CreateElement("reg_expire_date");
regExpireDate.InnerText = nextLine.Substring(8, 6);
newInquiryData.AppendChild(regExpireDate);

XmlElement yearModel =
doc.CreateElement("year_model");
yearModel.InnerText = nextLine.Substring(15, 2);
newInquiryData.AppendChild(yearModel);

XmlElement make = doc.CreateElement("make");
make.InnerText = nextLine.Substring(18, 5);
newInquiryData.AppendChild(make);

XmlElement vin = doc.CreateElement("vin");
vin.InnerText = nextLine.Substring(24, 30);
newInquiryData.AppendChild(vin);

XmlElement roCity = doc.CreateElement("ro_city");
roCity.InnerText = nextLine.Substring(55, 13);
newInquiryData.AppendChild(roCity);

XmlElement roZip = doc.CreateElement("ro_zip");
roZip.InnerText = nextLine.Substring(69, 5);
newInquiryData.AppendChild(roZip);

XmlElement roCountyCode =
doc.CreateElement("ro_county_code");
roCountyCode.InnerText = nextLine.Substring(75, 2);
newInquiryData.AppendChild(roCountyCode);
}
if (cardNumber == "3")
{
XmlElement paperIssueDate =
doc.CreateElement("paper_issue_date");
paperIssueDate.InnerText = nextLine.Substring(8, 6);
newInquiryData.AppendChild(paperIssueDate);

XmlElement roNameAndAddressSourceIndicator =
doc.CreateElement("ro_nameaddress_source_indicator ");
roNameAndAddressSourceIndicator.InnerText =
nextLine.Substring(14, 1);

newInquiryData.AppendChild(roNameAndAddressSourceI ndicator);

XmlElement roName = doc.CreateElement("ro_name");
roName.InnerText = nextLine.Substring(15, 30);
newInquiryData.AppendChild(roName);

XmlElement roNameOrAddress =
doc.CreateElement("ro_name_or_address");
roNameOrAddress.InnerText = nextLine.Substring(46,
30);
newInquiryData.AppendChild(roNameOrAddress);
}
if (cardNumber == "4")
{
XmlElement additionalRoNameOrAddress =
doc.CreateElement("additional_ro_name_or_address") ;
additionalRoNameOrAddress.InnerText =
nextLine.Substring(8, 30);
newInquiryData.AppendChild(additionalRoNameOrAddre ss);

XmlElement additionalRoAddress =
doc.CreateElement("additional_ro_address");
additionalRoAddress.InnerText =
nextLine.Substring(31, 30);
newInquiryData.AppendChild(additionalRoAddress);

}
if (cardNumber == "5")
{
XmlElement recordConditionCode =
doc.CreateElement("record_condition_code");
recordConditionCode.InnerText =
nextLine.Substring(8, 2);
newInquiryData.AppendChild(recordConditionCode);

XmlElement recordConditionCodeDate =
doc.CreateElement("record_condition_code_date");
recordConditionCodeDate.InnerText =
nextLine.Substring(11, 6);
newInquiryData.AppendChild(recordConditionCodeDate );

XmlElement recordRemarks =
doc.CreateElement("record_remarks");
recordRemarks.InnerText = nextLine.Substring(18, 30);
newInquiryData.AppendChild(recordRemarks);
}

if (cardNumber == "6")
{
XmlElement errorCode =
doc.CreateElement("error_code");
errorCode.InnerText = nextLine.Substring(8, 2);
newInquiryData.AppendChild(errorCode);

XmlElement errorMessage =
doc.CreateElement("error_message");
errorMessage.InnerText = nextLine.Substring(13, 45);
newInquiryData.AppendChild(errorMessage);

XmlElement errorDate =
doc.CreateElement("error_date");
errorDate.InnerText = nextLine.Substring(59, 6);
newInquiryData.AppendChild(errorDate);
}
if (cardNumber == "7")
{
XmlElement nrlDate = doc.CreateElement("nrl_date");
nrlDate.InnerText = nextLine.Substring(13, 45);
newInquiryData.AppendChild(nrlDate);

XmlElement nrlTransferDate =
doc.CreateElement("nrl_transfer_date");
nrlTransferDate.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlTransferDate);

XmlElement nrlNameOrMessage =
doc.CreateElement("nrl_name_or_message");
nrlNameOrMessage.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlNameOrMessage);

XmlElement nrlRecordId =
doc.CreateElement("nrl_record_Id");
nrlRecordId.InnerText = nextLine.Substring(13, 45);
newInquiryData.AppendChild(nrlRecordId);

}
if (cardNumber == "8")
{
XmlElement nrlDate = doc.CreateElement("nrl_date");
nrlDate.InnerText = nextLine.Substring(13, 45);
newInquiryData.AppendChild(nrlDate);

XmlElement nrlTransferDate =
doc.CreateElement("nrl_transfer_date");
nrlTransferDate.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlTransferDate);

XmlElement nrlNameOrMessage =
doc.CreateElement("nrl_name_or_message");
nrlNameOrMessage.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlNameOrMessage);

XmlElement nrlRecordId =
doc.CreateElement("nrl_record_Id");
nrlRecordId.InnerText = nextLine.Substring(13, 45);
newInquiryData.AppendChild(nrlRecordId);

}

if (oldplate != licenseNumber)
{
XmlElement newCitationNumber =
doc.CreateElement("citation_number");
newCitationNumber.InnerText = null;
newInquiryData.AppendChild(newCitationNumber);

doc.DocumentElement.AppendChild(newVrRecord);

writeOutXml();
}
//when the old plate != new plate write out XML

oldplate = licenseSwitch(licenseNumber);
} //ends while

private string licenseSwitch(string newplate)
{

oldplate = newplate;

return oldplate;
}
private void writeOutXml()
{

XmlTextWriter tr = new XmlTextWriter("vrdatabase.xml", null);
tr.Formatting = Formatting.Indented;
doc.WriteContentTo(tr);
tr.Close();
}

}//ends tool strip

} //ends public partial class
} //ends namespace

Aug 28 '08 #1
4 1852
1. This really doesn't answer your question
2. I hate to state the obvious.
3. If I don't ask, someone else will...

Does the error not include the offending line number(s)?

I completely understand how it is to go "cross-eyed" staring at the same
code for a period of time

....I dropped it in visual c# express but the text wrapping made it even
harder to understand...but sometimes the "outlining" in visual C# can help
track down missing braces and such


"Toren Valone" <To*********@discussions.microsoft.comwrote in message
news:40**********************************@microsof t.com...
Was editing code, am getting the following errors
} expected
Type or namespace definition, or end-of-file expected
Eyes crossed cannot find code below!

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Net.Sockets;
using System.IO;
using System.Xml;
using System.Xml.XPath;
namespace File_Generation_System
{

public partial class transfer : Form
{
public string nextLine;
public string cardNumber;
public string licenseNumber;
public string oLicenseNumber = null;
public StreamReader sr;
public XmlDataDocument doc;
public string oldplate;
public XmlElement newVrRecord;
public XmlElement newInquiryData;

public transfer()
{
InitializeComponent();
}

private void exitTransferScreenToolStripMenuItem_Click(object
sender, EventArgs e)
{
this.Close();
}

private void transfer_Load(object sender, EventArgs e)
{
//TcpClient tcpclient = new TcpClient("mvs.teale.ca.gov",
Int32.Parse("21"));
//NetworkStream ns = tcpclient.GetStream();
//FileStream fs = File.Open("form1.cs", FileMode.Open);

//int data = fs.ReadByte();
//while (data != -1)
//{
// ns.WriteByte((byte)data);
// data = fs.ReadByte();
//}
//fs.Close();
//ns.Close();
//tcpclient.Close();
}

private void vRInquiriesToolStripMenuItem1_Click(object sender,
EventArgs e)
{

//Create Dataset
DataSet ds = new DataSet();

//Read XML document into dataset
ds.ReadXml("vrdatabase.xml");

foreach (DataColumn col in ds.Tables["inquiry_data"].Columns)
{
MessageBox.Show("columnname=" + col.ColumnName );
}

//This allows for editing
ds.EnforceConstraints = false;

//Create new XML document
doc = new XmlDataDocument(ds);

//Create a nodelist with just Licenses
XmlNodeList nodeLst =
doc.SelectNodes("//vrdatabase/vr_record/inquiry_data/license_number");

//Create new vr_record tag
//newVrRecord = doc.CreateElement("vr_record");

//Create inquiry_data child element
// XmlElement newInquiryData =
doc.CreateElement("inquiry_data");
//newVrRecord.AppendChild(newInquiryData);

int nodeTotal = nodeLst.Count;

MessageBox.Show("node total=" + nodeTotal);
//Create Strean reader eventually point to real file
FileStream fileStream = new
FileStream("vrinqout.txt",FileMode.Open,FileAccess .Read);
sr = new StreamReader(fileStream);

//Declare a counter
int totalRecords = 0;

//create the declaration if not created do this on first run or
whenever file
// does not exist
//XmlDeclaration xmldecl = doc.CreateXmlDeclaration("1.0",
null,
null);

while ((nextLine = sr.ReadLine()) != null)
{

cardNumber = nextLine.Substring(nextLine.Length - 1, 1);
licenseNumber = nextLine.Substring(0, 7);
if (cardNumber == "1")
{
newVrRecord = doc.CreateElement("vr_record");
newInquiryData = doc.CreateElement("inquiry_data");
newVrRecord.AppendChild(newInquiryData);

XmlElement newLicenseNumber =
doc.CreateElement("license_number");
newLicenseNumber.InnerText =
nextLine.Substring(0,7);
newInquiryData.AppendChild(newLicenseNumber);

//Insert call to section to walk thru loaded
dataset
to see if
//license number exists.

//updateXmlDatabase(newLicenseNumber.ToString());

}
if (cardNumber == "2")
{

XmlElement regExpireDate =
doc.CreateElement("reg_expire_date");
regExpireDate.InnerText = nextLine.Substring(8, 6);
newInquiryData.AppendChild(regExpireDate);

XmlElement yearModel =
doc.CreateElement("year_model");
yearModel.InnerText = nextLine.Substring(15, 2);
newInquiryData.AppendChild(yearModel);

XmlElement make = doc.CreateElement("make");
make.InnerText = nextLine.Substring(18, 5);
newInquiryData.AppendChild(make);

XmlElement vin = doc.CreateElement("vin");
vin.InnerText = nextLine.Substring(24, 30);
newInquiryData.AppendChild(vin);

XmlElement roCity = doc.CreateElement("ro_city");
roCity.InnerText = nextLine.Substring(55, 13);
newInquiryData.AppendChild(roCity);

XmlElement roZip = doc.CreateElement("ro_zip");
roZip.InnerText = nextLine.Substring(69, 5);
newInquiryData.AppendChild(roZip);

XmlElement roCountyCode =
doc.CreateElement("ro_county_code");
roCountyCode.InnerText = nextLine.Substring(75, 2);
newInquiryData.AppendChild(roCountyCode);
}
if (cardNumber == "3")
{
XmlElement paperIssueDate =
doc.CreateElement("paper_issue_date");
paperIssueDate.InnerText = nextLine.Substring(8,
6);
newInquiryData.AppendChild(paperIssueDate);

XmlElement roNameAndAddressSourceIndicator =
doc.CreateElement("ro_nameaddress_source_indicator ");
roNameAndAddressSourceIndicator.InnerText =
nextLine.Substring(14, 1);

newInquiryData.AppendChild(roNameAndAddressSourceI ndicator);

XmlElement roName = doc.CreateElement("ro_name");
roName.InnerText = nextLine.Substring(15, 30);
newInquiryData.AppendChild(roName);

XmlElement roNameOrAddress =
doc.CreateElement("ro_name_or_address");
roNameOrAddress.InnerText = nextLine.Substring(46,
30);
newInquiryData.AppendChild(roNameOrAddress);
}
if (cardNumber == "4")
{
XmlElement additionalRoNameOrAddress =
doc.CreateElement("additional_ro_name_or_address") ;
additionalRoNameOrAddress.InnerText =
nextLine.Substring(8, 30);

newInquiryData.AppendChild(additionalRoNameOrAddre ss);

XmlElement additionalRoAddress =
doc.CreateElement("additional_ro_address");
additionalRoAddress.InnerText =
nextLine.Substring(31, 30);
newInquiryData.AppendChild(additionalRoAddress);

}
if (cardNumber == "5")
{
XmlElement recordConditionCode =
doc.CreateElement("record_condition_code");
recordConditionCode.InnerText =
nextLine.Substring(8, 2);
newInquiryData.AppendChild(recordConditionCode);

XmlElement recordConditionCodeDate =
doc.CreateElement("record_condition_code_date");
recordConditionCodeDate.InnerText =
nextLine.Substring(11, 6);

newInquiryData.AppendChild(recordConditionCodeDate );

XmlElement recordRemarks =
doc.CreateElement("record_remarks");
recordRemarks.InnerText = nextLine.Substring(18,
30);
newInquiryData.AppendChild(recordRemarks);
}

if (cardNumber == "6")
{
XmlElement errorCode =
doc.CreateElement("error_code");
errorCode.InnerText = nextLine.Substring(8, 2);
newInquiryData.AppendChild(errorCode);

XmlElement errorMessage =
doc.CreateElement("error_message");
errorMessage.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(errorMessage);

XmlElement errorDate =
doc.CreateElement("error_date");
errorDate.InnerText = nextLine.Substring(59, 6);
newInquiryData.AppendChild(errorDate);
}
if (cardNumber == "7")
{
XmlElement nrlDate = doc.CreateElement("nrl_date");
nrlDate.InnerText = nextLine.Substring(13, 45);
newInquiryData.AppendChild(nrlDate);

XmlElement nrlTransferDate =
doc.CreateElement("nrl_transfer_date");
nrlTransferDate.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlTransferDate);

XmlElement nrlNameOrMessage =
doc.CreateElement("nrl_name_or_message");
nrlNameOrMessage.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlNameOrMessage);

XmlElement nrlRecordId =
doc.CreateElement("nrl_record_Id");
nrlRecordId.InnerText = nextLine.Substring(13, 45);
newInquiryData.AppendChild(nrlRecordId);

}
if (cardNumber == "8")
{
XmlElement nrlDate = doc.CreateElement("nrl_date");
nrlDate.InnerText = nextLine.Substring(13, 45);
newInquiryData.AppendChild(nrlDate);

XmlElement nrlTransferDate =
doc.CreateElement("nrl_transfer_date");
nrlTransferDate.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlTransferDate);

XmlElement nrlNameOrMessage =
doc.CreateElement("nrl_name_or_message");
nrlNameOrMessage.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlNameOrMessage);

XmlElement nrlRecordId =
doc.CreateElement("nrl_record_Id");
nrlRecordId.InnerText = nextLine.Substring(13, 45);
newInquiryData.AppendChild(nrlRecordId);

}

if (oldplate != licenseNumber)
{
XmlElement newCitationNumber =
doc.CreateElement("citation_number");
newCitationNumber.InnerText = null;
newInquiryData.AppendChild(newCitationNumber);

doc.DocumentElement.AppendChild(newVrRecord);

writeOutXml();
}
//when the old plate != new plate write out XML

oldplate = licenseSwitch(licenseNumber);
} //ends while

private string licenseSwitch(string newplate)
{

oldplate = newplate;

return oldplate;
}
private void writeOutXml()
{

XmlTextWriter tr = new XmlTextWriter("vrdatabase.xml", null);
tr.Formatting = Formatting.Indented;
doc.WriteContentTo(tr);
tr.Close();
}

}//ends tool strip

} //ends public partial class
} //ends namespace


Aug 28 '08 #2
Hello Toren,

This was probably a simply copy-paste mistake.

The methods "licenseSwitch" and "writeOutXml" are placed *inside* the method
"vRInquiriesToolStripMenuItem1_Click"

Try to move them *below* the "}//ends tool strip", and it should be fine :)

Cheers,

Caio Proiete
www.caioproiete.com

Was editing code, am getting the following errors
} expected
Type or namespace definition, or end-of-file expected
Eyes crossed cannot find code below!
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Net.Sockets;
using System.IO;
using System.Xml;
using System.Xml.XPath;
namespace File_Generation_System
{
public partial class transfer : Form
{
public string nextLine;
public string cardNumber;
public string licenseNumber;
public string oLicenseNumber = null;
public StreamReader sr;
public XmlDataDocument doc;
public string oldplate;
public XmlElement newVrRecord;
public XmlElement newInquiryData;
public transfer()
{
InitializeComponent();
}
private void exitTransferScreenToolStripMenuItem_Click(object
sender, EventArgs e)
{
this.Close();
}
private void transfer_Load(object sender, EventArgs e)
{
//TcpClient tcpclient = new TcpClient("mvs.teale.ca.gov",
Int32.Parse("21"));
//NetworkStream ns = tcpclient.GetStream();
//FileStream fs = File.Open("form1.cs", FileMode.Open);
//int data = fs.ReadByte();
//while (data != -1)
//{
// ns.WriteByte((byte)data);
// data = fs.ReadByte();
//}
//fs.Close();
//ns.Close();
//tcpclient.Close();
}
private void vRInquiriesToolStripMenuItem1_Click(object
sender,
EventArgs e)
{
//Create Dataset
DataSet ds = new DataSet();
//Read XML document into dataset
ds.ReadXml("vrdatabase.xml");
foreach (DataColumn col in
ds.Tables["inquiry_data"].Columns)
{
MessageBox.Show("columnname=" + col.ColumnName );
}
//This allows for editing
ds.EnforceConstraints = false;
//Create new XML document
doc = new XmlDataDocument(ds);
//Create a nodelist with just Licenses
XmlNodeList nodeLst =
doc.SelectNodes("//vrdatabase/vr_record/inquiry_data/license_number");
//Create new vr_record tag
//newVrRecord = doc.CreateElement("vr_record");
//Create inquiry_data child element
// XmlElement newInquiryData =
doc.CreateElement("inquiry_data");
//newVrRecord.AppendChild(newInquiryData);
int nodeTotal = nodeLst.Count;

MessageBox.Show("node total=" + nodeTotal);

//Create Strean reader eventually point to real file
FileStream fileStream = new
FileStream("vrinqout.txt",FileMode.Open,FileAccess .Read);
sr = new StreamReader(fileStream);
//Declare a counter
int totalRecords = 0;
//create the declaration if not created do this on first
run or
whenever file
// does not exist
//XmlDeclaration xmldecl = doc.CreateXmlDeclaration("1.0",
null,
null);
while ((nextLine = sr.ReadLine()) != null)
{
cardNumber = nextLine.Substring(nextLine.Length - 1,
1);
licenseNumber = nextLine.Substring(0, 7);
if (cardNumber == "1")
{
newVrRecord = doc.CreateElement("vr_record");
newInquiryData =
doc.CreateElement("inquiry_data");
newVrRecord.AppendChild(newInquiryData);
XmlElement newLicenseNumber =
doc.CreateElement("license_number");
newLicenseNumber.InnerText =
nextLine.Substring(0,7);
newInquiryData.AppendChild(newLicenseNumber);
//Insert call to section to walk thru loaded
dataset
to see if
//license number exists.

//updateXmlDatabase(newLicenseNumber.ToString());

}
if (cardNumber == "2")
{
XmlElement regExpireDate =
doc.CreateElement("reg_expire_date");
regExpireDate.InnerText =
nextLine.Substring(8, 6);
newInquiryData.AppendChild(regExpireDate);
XmlElement yearModel =
doc.CreateElement("year_model");
yearModel.InnerText = nextLine.Substring(15,
2);
newInquiryData.AppendChild(yearModel);
XmlElement make = doc.CreateElement("make");
make.InnerText = nextLine.Substring(18, 5);
newInquiryData.AppendChild(make);
XmlElement vin = doc.CreateElement("vin");
vin.InnerText = nextLine.Substring(24, 30);
newInquiryData.AppendChild(vin);
XmlElement roCity =
doc.CreateElement("ro_city");
roCity.InnerText = nextLine.Substring(55, 13);
newInquiryData.AppendChild(roCity);
XmlElement roZip =
doc.CreateElement("ro_zip");
roZip.InnerText = nextLine.Substring(69, 5);
newInquiryData.AppendChild(roZip);
XmlElement roCountyCode =
doc.CreateElement("ro_county_code");
roCountyCode.InnerText =
nextLine.Substring(75, 2);
newInquiryData.AppendChild(roCountyCode);
}
if (cardNumber == "3")
{
XmlElement paperIssueDate =
doc.CreateElement("paper_issue_date");
paperIssueDate.InnerText =
nextLine.Substring(8, 6);
newInquiryData.AppendChild(paperIssueDate);
XmlElement roNameAndAddressSourceIndicator =
doc.CreateElement("ro_nameaddress_source_indicator ");
roNameAndAddressSourceIndicator.InnerText =
nextLine.Substring(14, 1);
newInquiryData.AppendChild(roNameAndAddressSourceI ndicator);

XmlElement roName =
doc.CreateElement("ro_name");
roName.InnerText = nextLine.Substring(15, 30);
newInquiryData.AppendChild(roName);
XmlElement roNameOrAddress =
doc.CreateElement("ro_name_or_address");
roNameOrAddress.InnerText =
nextLine.Substring(46,
30);
newInquiryData.AppendChild(roNameOrAddress);
}
if (cardNumber == "4")
{
XmlElement additionalRoNameOrAddress =
doc.CreateElement("additional_ro_name_or_address") ;
additionalRoNameOrAddress.InnerText =
nextLine.Substring(8, 30);

newInquiryData.AppendChild(additionalRoNameOrAddre ss);
XmlElement additionalRoAddress =
doc.CreateElement("additional_ro_address");
additionalRoAddress.InnerText =
nextLine.Substring(31, 30);

newInquiryData.AppendChild(additionalRoAddress);
}
if (cardNumber == "5")
{
XmlElement recordConditionCode =
doc.CreateElement("record_condition_code");
recordConditionCode.InnerText =
nextLine.Substring(8, 2);

newInquiryData.AppendChild(recordConditionCode);
XmlElement recordConditionCodeDate =
doc.CreateElement("record_condition_code_date");
recordConditionCodeDate.InnerText =
nextLine.Substring(11, 6);

newInquiryData.AppendChild(recordConditionCodeDate );
XmlElement recordRemarks =
doc.CreateElement("record_remarks");
recordRemarks.InnerText =
nextLine.Substring(18, 30);
newInquiryData.AppendChild(recordRemarks);
}
if (cardNumber == "6")
{
XmlElement errorCode =
doc.CreateElement("error_code");
errorCode.InnerText = nextLine.Substring(8,
2);
newInquiryData.AppendChild(errorCode);
XmlElement errorMessage =
doc.CreateElement("error_message");
errorMessage.InnerText =
nextLine.Substring(13, 45);
newInquiryData.AppendChild(errorMessage);
XmlElement errorDate =
doc.CreateElement("error_date");
errorDate.InnerText = nextLine.Substring(59,
6);
newInquiryData.AppendChild(errorDate);
}
if (cardNumber == "7")
{
XmlElement nrlDate =
doc.CreateElement("nrl_date");
nrlDate.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlDate);
XmlElement nrlTransferDate =
doc.CreateElement("nrl_transfer_date");
nrlTransferDate.InnerText =
nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlTransferDate);
XmlElement nrlNameOrMessage =
doc.CreateElement("nrl_name_or_message");
nrlNameOrMessage.InnerText =
nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlNameOrMessage);
XmlElement nrlRecordId =
doc.CreateElement("nrl_record_Id");
nrlRecordId.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlRecordId);
}
if (cardNumber == "8")
{
XmlElement nrlDate =
doc.CreateElement("nrl_date");
nrlDate.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlDate);
XmlElement nrlTransferDate =
doc.CreateElement("nrl_transfer_date");
nrlTransferDate.InnerText =
nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlTransferDate);
XmlElement nrlNameOrMessage =
doc.CreateElement("nrl_name_or_message");
nrlNameOrMessage.InnerText =
nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlNameOrMessage);
XmlElement nrlRecordId =
doc.CreateElement("nrl_record_Id");
nrlRecordId.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlRecordId);
}

if (oldplate != licenseNumber)
{
XmlElement newCitationNumber =
doc.CreateElement("citation_number");
newCitationNumber.InnerText = null;
newInquiryData.AppendChild(newCitationNumber);
doc.DocumentElement.AppendChild(newVrRecord);

writeOutXml();
}
//when the old plate != new plate write out XML
oldplate = licenseSwitch(licenseNumber);

} //ends while

private string licenseSwitch(string newplate)
{
oldplate = newplate;

return oldplate;
}
private void writeOutXml()
{
XmlTextWriter tr = new XmlTextWriter("vrdatabase.xml",
null);
tr.Formatting = Formatting.Indented;
doc.WriteContentTo(tr);
tr.Close();
}
}//ends tool strip

} //ends public partial class
} //ends namespace

Aug 28 '08 #3
Roger, thanks for the reply, yes the errors do include the line numbers, I
have gone thru every } to make sure it has a corresponding {. I know I fixed
these errors in the past but I cannot find this one yet.

"Roger Frost" wrote:
1. This really doesn't answer your question
2. I hate to state the obvious.
3. If I don't ask, someone else will...

Does the error not include the offending line number(s)?

I completely understand how it is to go "cross-eyed" staring at the same
code for a period of time

...I dropped it in visual c# express but the text wrapping made it even
harder to understand...but sometimes the "outlining" in visual C# can help
track down missing braces and such


"Toren Valone" <To*********@discussions.microsoft.comwrote in message
news:40**********************************@microsof t.com...
Was editing code, am getting the following errors
} expected
Type or namespace definition, or end-of-file expected
Eyes crossed cannot find code below!

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Net.Sockets;
using System.IO;
using System.Xml;
using System.Xml.XPath;
namespace File_Generation_System
{

public partial class transfer : Form
{
public string nextLine;
public string cardNumber;
public string licenseNumber;
public string oLicenseNumber = null;
public StreamReader sr;
public XmlDataDocument doc;
public string oldplate;
public XmlElement newVrRecord;
public XmlElement newInquiryData;

public transfer()
{
InitializeComponent();
}

private void exitTransferScreenToolStripMenuItem_Click(object
sender, EventArgs e)
{
this.Close();
}

private void transfer_Load(object sender, EventArgs e)
{
//TcpClient tcpclient = new TcpClient("mvs.teale.ca.gov",
Int32.Parse("21"));
//NetworkStream ns = tcpclient.GetStream();
//FileStream fs = File.Open("form1.cs", FileMode.Open);

//int data = fs.ReadByte();
//while (data != -1)
//{
// ns.WriteByte((byte)data);
// data = fs.ReadByte();
//}
//fs.Close();
//ns.Close();
//tcpclient.Close();
}

private void vRInquiriesToolStripMenuItem1_Click(object sender,
EventArgs e)
{

//Create Dataset
DataSet ds = new DataSet();

//Read XML document into dataset
ds.ReadXml("vrdatabase.xml");

foreach (DataColumn col in ds.Tables["inquiry_data"].Columns)
{
MessageBox.Show("columnname=" + col.ColumnName );
}

//This allows for editing
ds.EnforceConstraints = false;

//Create new XML document
doc = new XmlDataDocument(ds);

//Create a nodelist with just Licenses
XmlNodeList nodeLst =
doc.SelectNodes("//vrdatabase/vr_record/inquiry_data/license_number");

//Create new vr_record tag
//newVrRecord = doc.CreateElement("vr_record");

//Create inquiry_data child element
// XmlElement newInquiryData =
doc.CreateElement("inquiry_data");
//newVrRecord.AppendChild(newInquiryData);

int nodeTotal = nodeLst.Count;

MessageBox.Show("node total=" + nodeTotal);
//Create Strean reader eventually point to real file
FileStream fileStream = new
FileStream("vrinqout.txt",FileMode.Open,FileAccess .Read);
sr = new StreamReader(fileStream);

//Declare a counter
int totalRecords = 0;

//create the declaration if not created do this on first run or
whenever file
// does not exist
//XmlDeclaration xmldecl = doc.CreateXmlDeclaration("1.0",
null,
null);

while ((nextLine = sr.ReadLine()) != null)
{

cardNumber = nextLine.Substring(nextLine.Length - 1, 1);
licenseNumber = nextLine.Substring(0, 7);
if (cardNumber == "1")
{
newVrRecord = doc.CreateElement("vr_record");
newInquiryData = doc.CreateElement("inquiry_data");
newVrRecord.AppendChild(newInquiryData);

XmlElement newLicenseNumber =
doc.CreateElement("license_number");
newLicenseNumber.InnerText =
nextLine.Substring(0,7);
newInquiryData.AppendChild(newLicenseNumber);

//Insert call to section to walk thru loaded
dataset
to see if
//license number exists.

//updateXmlDatabase(newLicenseNumber.ToString());

}
if (cardNumber == "2")
{

XmlElement regExpireDate =
doc.CreateElement("reg_expire_date");
regExpireDate.InnerText = nextLine.Substring(8, 6);
newInquiryData.AppendChild(regExpireDate);

XmlElement yearModel =
doc.CreateElement("year_model");
yearModel.InnerText = nextLine.Substring(15, 2);
newInquiryData.AppendChild(yearModel);

XmlElement make = doc.CreateElement("make");
make.InnerText = nextLine.Substring(18, 5);
newInquiryData.AppendChild(make);

XmlElement vin = doc.CreateElement("vin");
vin.InnerText = nextLine.Substring(24, 30);
newInquiryData.AppendChild(vin);

XmlElement roCity = doc.CreateElement("ro_city");
roCity.InnerText = nextLine.Substring(55, 13);
newInquiryData.AppendChild(roCity);

XmlElement roZip = doc.CreateElement("ro_zip");
roZip.InnerText = nextLine.Substring(69, 5);
newInquiryData.AppendChild(roZip);

XmlElement roCountyCode =
doc.CreateElement("ro_county_code");
roCountyCode.InnerText = nextLine.Substring(75, 2);
newInquiryData.AppendChild(roCountyCode);
}
if (cardNumber == "3")
{
XmlElement paperIssueDate =
doc.CreateElement("paper_issue_date");
paperIssueDate.InnerText = nextLine.Substring(8,
6);
newInquiryData.AppendChild(paperIssueDate);

XmlElement roNameAndAddressSourceIndicator =
doc.CreateElement("ro_nameaddress_source_indicator ");
roNameAndAddressSourceIndicator.InnerText =
nextLine.Substring(14, 1);

newInquiryData.AppendChild(roNameAndAddressSourceI ndicator);

XmlElement roName = doc.CreateElement("ro_name");
roName.InnerText = nextLine.Substring(15, 30);
newInquiryData.AppendChild(roName);

XmlElement roNameOrAddress =
doc.CreateElement("ro_name_or_address");
roNameOrAddress.InnerText = nextLine.Substring(46,
30);
newInquiryData.AppendChild(roNameOrAddress);
}
if (cardNumber == "4")
{
XmlElement additionalRoNameOrAddress =
doc.CreateElement("additional_ro_name_or_address") ;
additionalRoNameOrAddress.InnerText =
nextLine.Substring(8, 30);

newInquiryData.AppendChild(additionalRoNameOrAddre ss);

XmlElement additionalRoAddress =
doc.CreateElement("additional_ro_address");
additionalRoAddress.InnerText =
nextLine.Substring(31, 30);
newInquiryData.AppendChild(additionalRoAddress);

}
if (cardNumber == "5")
{
XmlElement recordConditionCode =
doc.CreateElement("record_condition_code");
recordConditionCode.InnerText =
nextLine.Substring(8, 2);
newInquiryData.AppendChild(recordConditionCode);

XmlElement recordConditionCodeDate =
doc.CreateElement("record_condition_code_date");
recordConditionCodeDate.InnerText =
nextLine.Substring(11, 6);

newInquiryData.AppendChild(recordConditionCodeDate );

XmlElement recordRemarks =
doc.CreateElement("record_remarks");
recordRemarks.InnerText = nextLine.Substring(18,
30);
newInquiryData.AppendChild(recordRemarks);
}

if (cardNumber == "6")
{
XmlElement errorCode =
doc.CreateElement("error_code");
errorCode.InnerText = nextLine.Substring(8, 2);
newInquiryData.AppendChild(errorCode);

XmlElement errorMessage =
doc.CreateElement("error_message");
errorMessage.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(errorMessage);

XmlElement errorDate =
doc.CreateElement("error_date");
errorDate.InnerText = nextLine.Substring(59, 6);
newInquiryData.AppendChild(errorDate);
}
if (cardNumber == "7")
{
XmlElement nrlDate = doc.CreateElement("nrl_date");
nrlDate.InnerText = nextLine.Substring(13, 45);
newInquiryData.AppendChild(nrlDate);

XmlElement nrlTransferDate =
doc.CreateElement("nrl_transfer_date");
nrlTransferDate.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlTransferDate);

XmlElement nrlNameOrMessage =
doc.CreateElement("nrl_name_or_message");
nrlNameOrMessage.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlNameOrMessage);

XmlElement nrlRecordId =
doc.CreateElement("nrl_record_Id");
Aug 28 '08 #4
Thanks!

"Caio Proiete [MCT]" wrote:
Hello Toren,

This was probably a simply copy-paste mistake.

The methods "licenseSwitch" and "writeOutXml" are placed *inside* the method
"vRInquiriesToolStripMenuItem1_Click"

Try to move them *below* the "}//ends tool strip", and it should be fine :)

Cheers,

Caio Proiete
www.caioproiete.com

Was editing code, am getting the following errors
} expected
Type or namespace definition, or end-of-file expected
Eyes crossed cannot find code below!
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Net.Sockets;
using System.IO;
using System.Xml;
using System.Xml.XPath;
namespace File_Generation_System
{
public partial class transfer : Form
{
public string nextLine;
public string cardNumber;
public string licenseNumber;
public string oLicenseNumber = null;
public StreamReader sr;
public XmlDataDocument doc;
public string oldplate;
public XmlElement newVrRecord;
public XmlElement newInquiryData;
public transfer()
{
InitializeComponent();
}
private void exitTransferScreenToolStripMenuItem_Click(object
sender, EventArgs e)
{
this.Close();
}
private void transfer_Load(object sender, EventArgs e)
{
//TcpClient tcpclient = new TcpClient("mvs.teale.ca.gov",
Int32.Parse("21"));
//NetworkStream ns = tcpclient.GetStream();
//FileStream fs = File.Open("form1.cs", FileMode.Open);
//int data = fs.ReadByte();
//while (data != -1)
//{
// ns.WriteByte((byte)data);
// data = fs.ReadByte();
//}
//fs.Close();
//ns.Close();
//tcpclient.Close();
}
private void vRInquiriesToolStripMenuItem1_Click(object
sender,
EventArgs e)
{
//Create Dataset
DataSet ds = new DataSet();
//Read XML document into dataset
ds.ReadXml("vrdatabase.xml");
foreach (DataColumn col in
ds.Tables["inquiry_data"].Columns)
{
MessageBox.Show("columnname=" + col.ColumnName );
}
//This allows for editing
ds.EnforceConstraints = false;
//Create new XML document
doc = new XmlDataDocument(ds);
//Create a nodelist with just Licenses
XmlNodeList nodeLst =
doc.SelectNodes("//vrdatabase/vr_record/inquiry_data/license_number");
//Create new vr_record tag
//newVrRecord = doc.CreateElement("vr_record");
//Create inquiry_data child element
// XmlElement newInquiryData =
doc.CreateElement("inquiry_data");
//newVrRecord.AppendChild(newInquiryData);
int nodeTotal = nodeLst.Count;

MessageBox.Show("node total=" + nodeTotal);

//Create Strean reader eventually point to real file
FileStream fileStream = new
FileStream("vrinqout.txt",FileMode.Open,FileAccess .Read);
sr = new StreamReader(fileStream);
//Declare a counter
int totalRecords = 0;
//create the declaration if not created do this on first
run or
whenever file
// does not exist
//XmlDeclaration xmldecl = doc.CreateXmlDeclaration("1.0",
null,
null);
while ((nextLine = sr.ReadLine()) != null)
{
cardNumber = nextLine.Substring(nextLine.Length - 1,
1);
licenseNumber = nextLine.Substring(0, 7);
if (cardNumber == "1")
{
newVrRecord = doc.CreateElement("vr_record");
newInquiryData =
doc.CreateElement("inquiry_data");
newVrRecord.AppendChild(newInquiryData);
XmlElement newLicenseNumber =
doc.CreateElement("license_number");
newLicenseNumber.InnerText =
nextLine.Substring(0,7);
newInquiryData.AppendChild(newLicenseNumber);
//Insert call to section to walk thru loaded
dataset
to see if
//license number exists.

//updateXmlDatabase(newLicenseNumber.ToString());

}
if (cardNumber == "2")
{
XmlElement regExpireDate =
doc.CreateElement("reg_expire_date");
regExpireDate.InnerText =
nextLine.Substring(8, 6);
newInquiryData.AppendChild(regExpireDate);
XmlElement yearModel =
doc.CreateElement("year_model");
yearModel.InnerText = nextLine.Substring(15,
2);
newInquiryData.AppendChild(yearModel);
XmlElement make = doc.CreateElement("make");
make.InnerText = nextLine.Substring(18, 5);
newInquiryData.AppendChild(make);
XmlElement vin = doc.CreateElement("vin");
vin.InnerText = nextLine.Substring(24, 30);
newInquiryData.AppendChild(vin);
XmlElement roCity =
doc.CreateElement("ro_city");
roCity.InnerText = nextLine.Substring(55, 13);
newInquiryData.AppendChild(roCity);
XmlElement roZip =
doc.CreateElement("ro_zip");
roZip.InnerText = nextLine.Substring(69, 5);
newInquiryData.AppendChild(roZip);
XmlElement roCountyCode =
doc.CreateElement("ro_county_code");
roCountyCode.InnerText =
nextLine.Substring(75, 2);
newInquiryData.AppendChild(roCountyCode);
}
if (cardNumber == "3")
{
XmlElement paperIssueDate =
doc.CreateElement("paper_issue_date");
paperIssueDate.InnerText =
nextLine.Substring(8, 6);
newInquiryData.AppendChild(paperIssueDate);
XmlElement roNameAndAddressSourceIndicator =
doc.CreateElement("ro_nameaddress_source_indicator ");
roNameAndAddressSourceIndicator.InnerText =
nextLine.Substring(14, 1);
newInquiryData.AppendChild(roNameAndAddressSourceI ndicator);

XmlElement roName =
doc.CreateElement("ro_name");
roName.InnerText = nextLine.Substring(15, 30);
newInquiryData.AppendChild(roName);
XmlElement roNameOrAddress =
doc.CreateElement("ro_name_or_address");
roNameOrAddress.InnerText =
nextLine.Substring(46,
30);
newInquiryData.AppendChild(roNameOrAddress);
}
if (cardNumber == "4")
{
XmlElement additionalRoNameOrAddress =
doc.CreateElement("additional_ro_name_or_address") ;
additionalRoNameOrAddress.InnerText =
nextLine.Substring(8, 30);

newInquiryData.AppendChild(additionalRoNameOrAddre ss);
XmlElement additionalRoAddress =
doc.CreateElement("additional_ro_address");
additionalRoAddress.InnerText =
nextLine.Substring(31, 30);

newInquiryData.AppendChild(additionalRoAddress);
}
if (cardNumber == "5")
{
XmlElement recordConditionCode =
doc.CreateElement("record_condition_code");
recordConditionCode.InnerText =
nextLine.Substring(8, 2);

newInquiryData.AppendChild(recordConditionCode);
XmlElement recordConditionCodeDate =
doc.CreateElement("record_condition_code_date");
recordConditionCodeDate.InnerText =
nextLine.Substring(11, 6);

newInquiryData.AppendChild(recordConditionCodeDate );
XmlElement recordRemarks =
doc.CreateElement("record_remarks");
recordRemarks.InnerText =
nextLine.Substring(18, 30);
newInquiryData.AppendChild(recordRemarks);
}
if (cardNumber == "6")
{
XmlElement errorCode =
doc.CreateElement("error_code");
errorCode.InnerText = nextLine.Substring(8,
2);
newInquiryData.AppendChild(errorCode);
XmlElement errorMessage =
doc.CreateElement("error_message");
errorMessage.InnerText =
nextLine.Substring(13, 45);
newInquiryData.AppendChild(errorMessage);
XmlElement errorDate =
doc.CreateElement("error_date");
errorDate.InnerText = nextLine.Substring(59,
6);
newInquiryData.AppendChild(errorDate);
}
if (cardNumber == "7")
{
XmlElement nrlDate =
doc.CreateElement("nrl_date");
nrlDate.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlDate);
XmlElement nrlTransferDate =
doc.CreateElement("nrl_transfer_date");
nrlTransferDate.InnerText =
nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlTransferDate);
XmlElement nrlNameOrMessage =
doc.CreateElement("nrl_name_or_message");
nrlNameOrMessage.InnerText =
nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlNameOrMessage);
XmlElement nrlRecordId =
doc.CreateElement("nrl_record_Id");
nrlRecordId.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlRecordId);
}
if (cardNumber == "8")
{
XmlElement nrlDate =
doc.CreateElement("nrl_date");
nrlDate.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlDate);
XmlElement nrlTransferDate =
doc.CreateElement("nrl_transfer_date");
nrlTransferDate.InnerText =
nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlTransferDate);
XmlElement nrlNameOrMessage =
doc.CreateElement("nrl_name_or_message");
nrlNameOrMessage.InnerText =
nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlNameOrMessage);
XmlElement nrlRecordId =
doc.CreateElement("nrl_record_Id");
nrlRecordId.InnerText = nextLine.Substring(13,
45);
newInquiryData.AppendChild(nrlRecordId);
}

if (oldplate != licenseNumber)
{
XmlElement newCitationNumber =
doc.CreateElement("citation_number");
Aug 28 '08 #5

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

Similar topics

4
by: Vince | last post by:
Hi, I am not used to template and I cannot find what's wrong with this code : Compiler(MSVS 7) complains at line : class iterator : public std::iterator<... Here is the source code
2
by: Middletree | last post by:
This is an ASP-built Intranet app, so I have saved off a static version of the page for reference, and it is located at http://www.middletree.net/err.htm and the page to compare it to is...
1
by: Mullin Yu | last post by:
my web services is reference a vb6 com dll, and if it's registered at the local machine, the web service is working. but, if i put the dll to a z: which is mapping to a network driver and...
13
by: Brad | last post by:
I will also post this in the CR group but because I program in VB maybe somebody here might be able to help. I am working on a new project that incorporates a few forms. I just created my first...
3
by: David T. Ashley | last post by:
Hi, Red Hat Enterprise Linux 4.X. I'm writing command-line PHP scripts for the first time. I get the messages below. What do they mean? Are these operating system library modules, or...
15
by: Bjorn Jensen | last post by:
Hi! An beginner question: Pleas help me with this (-: Error (the arrow points on the s in sqrt) ===== tal.java:6: cannot find symbol symbol : method sqrt(int) location: class tal...
1
by: .Net Sports | last post by:
I'm using Persits.upload module in ASP, and when i use the following form pointed to the object I've always used, i get a "The system cannot find the file specified" error pointing to the line of...
4
by: GHUM | last post by:
The compile works, BUT linking fails: 2.5\Release\psycopg\_psycopg.def -Lc:\python25\libs -Lc: \python25\PCBuild -Lc:/p ostgres/83RC2/lib -lpython25 -lpq -lws2_32 -ladvapi32 -o build...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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...

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.