473,586 Members | 2,702 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

what is the error plz..

I am getting this error and i Don'r know where is the problem?

please help..

An unhandled exception of type 'VistaDB.VistaD BException' occurred in
vistadb.provide r.dll

Additional information: Error in dll_sql_ExecSQL
Error code: 546 Parameter not found in the list of params
Error code: 610 OpenSQL: Error:546
Parameter not found in the list of params


this is the code..

private void btnSave_Click(o bject sender, System.EventArg s e)
{
// save patients data;

VDBConnection.A ccessMode = AccessMode.Remo te;
VDBConnection.D ataSource = "127.0.0.1:2021 1";
VDBConnection.D atabase = "shefaDB";
VDBConnection.L oginUser = "SA";
VDBConnection.L oginPassword = "";

VDBConnection = new
VistaDBConnecti on("AccessMode= Remote;DataSour ce=127.0.0.1;Da tabase=shefa
DB;LoginUser = SA;LoginPasswor d =;");

string insertCmd = "insert into persons (PERSON_NAME, ID_TYPE,
ID_NUMBER, NATIONALITY, GENDER, DATE_OF_BIRTH, BLOOD_GROUP, COMPANY,
PROFESSION, MARITAL_STATUS, OLD_FILE_NO, PERSON_IS_VIP, ADDRESS_FLAT,
ADDRESS_BUILDIN G, ADDRESS_ROAD, ADDRESS_BLOCK, ADDRESS_AREA,
ADDRESS_PO_BOX, IS_OUTSIDE_COUN TRY, ADDRESS_OUTSIDE _ADDRESS,
ADDRESS_COUNTRY ) values (@fullname, @idtype, @idnumber, @nationality,
@gender, @dateofbirth, @bloodgroup, @company, @profession,
@maritalstatus, @oldfileno, @isvip, @address_flat, @address_buildi ng,
@address_road, @address_block, @address_area, @address_box,
@address_is_out side_country, @address_outsid e, @address_countr y)";
// string insertCmd = "insert into persons (PERSON_NAME, ID_TYPE,
ID_NUMBER, NATIONALITY, GENDER, DATE_OF_BIRTH, BLOOD_GROUP, COMPANY,
PROFESSION, MARITAL_STATUS, OLD_FILE_NO, PERSON_IS_VIP, ADDRESS_FLAT,
ADDRESS_BUILDIN G, ADDRESS_ROAD, ADDRESS_BLOCK) values (@fullname,
@idtype, @idnumber, @nationality, @gender, @dateofbirth, @bloodgroup,
@company, @profession, @maritalstatus, @oldfileno, @isvip,
@address_flat, @address_buildi ng, @address_road, @address_block) ";

VDBCommand.Comm andText = insertCmd;
VDBCommand.Conn ection = VDBConnection;

VDBCommand.Conn ection.Open();

VDBCommand.Para meters.Add("@fu llname", VistaDBType.Var char);
VDBCommand.Para meters.Add("@id type", VistaDBType.Var char);
VDBCommand.Para meters.Add("@id number", VistaDBType.Var char);
VDBCommand.Para meters.Add("@na tionality", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ge nder", VistaDBType.Var char);
VDBCommand.Para meters.Add("@da teofbirth", VistaDBType.Dat e);
VDBCommand.Para meters.Add("@bl oodgroup", VistaDBType.Var char);
VDBCommand.Para meters.Add("@co mpany", VistaDBType.Var char);
VDBCommand.Para meters.Add("@pr ofession", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ma ritalstatus", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ol dfileno", VistaDBType.Var char);
VDBCommand.Para meters.Add("@is vip", VistaDBType.Cha racter);
VDBCommand.Para meters.Add("@ad dress_flat", VistaDBType.Cha racter);
VDBCommand.Para meters.Add("@ad dress_building" ,
VistaDBType.Cha racter);
VDBCommand.Para meters.Add("@ad dress_road", VistaDBType.Cha racter);
VDBCommand.Para meters.Add("@ad dress_block", VistaDBType.Cha racter);
VDBCommand.Para meters.Add("@ad dress_area", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ad dress_box", VistaDBType.Cha racter);
VDBCommand.Para meters.Add("@ad dress_is_outsid e_country",
VistaDBType.Cha racter);
VDBCommand.Para meters.Add("@ad dress_outside", VistaDBType.Mem o);
VDBCommand.Para meters.Add("@ad dress_country", VistaDBType.Var char);
/*
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
*/

// basic info
if (txtFullName.Te xt == "") VDBCommand.Para meters["@fullname"].Value
= null; else VDBCommand.Para meters["@fullname"].Value =
txtFullName.Tex t;
// VDBCommand.Para meters["@fullname"].Value = null;
VDBCommand.Para meters["@idtype"].Value = cboIDType.Text;
VDBCommand.Para meters["@idnumber"].Value = txtIDNumber.Tex t;
VDBCommand.Para meters["@nationali ty"].Value = cboNationality. Text;
VDBCommand.Para meters["@gender"].Value = cboGender.Text;
VDBCommand.Para meters["@dateofbir th"].Value = cboBirthday.Val ue;
VDBCommand.Para meters["@bloodgrou p"].Value = cboBlood.Text;
VDBCommand.Para meters["@company"].Value = cboCompany.Text ;
VDBCommand.Para meters["@professio n"].Value = cboProfession.T ext;
VDBCommand.Para meters["@maritalstatus "].Value =
cboMaritalStatu s.Text;
VDBCommand.Para meters["@oldfileno "].Value = txtOldFileNo.Te xt;
if (chkVIP.Checked == true) VDBCommand.Para meters["@isvip"].Value =
"Y"; else VDBCommand.Para meters["@isvip"].Value = "N";

// address
VDBCommand.Para meters["@address_f lat"].Value = txtFlat.Text;
VDBCommand.Para meters["@address_build ing"].Value = txtBuilding.Tex t;
VDBCommand.Para meters["@address_r oad"].Value = txtRoad.Text;
VDBCommand.Para meters["@address_block "].Value = txtBlock.Text;

if (txtArea.Text == "") VDBCommand.Para meters["@address_a rea"].Value
= "AA"; else VDBCommand.Para meters["@address_a rea"].Value =
txtArea.Text;
// VDBCommand.Para meters["@address_a rea"].Value = txtArea.Text;
VDBCommand.Para meters["@address_b ox"].Value = txtBox.Text;
if (chkOutsideAddr ess.Checked == true)
VDBCommand.Para meters["@address_is_ou tside_country"].Value = "Y"; else
VDBCommand.Para meters["@address_is_ou tside_country"].Value = "N";

if (txtOutsideAddr ess.Text == "")
VDBCommand.Para meters["@address_outsi de"].Value = "AA"; else
VDBCommand.Para meters["@address_outsi de"].Value =
txtOutsideAddre ss.Text;
if (cboCountry.Tex t == "")
VDBCommand.Para meters["@address_count ry"].Value = "AA"; else
VDBCommand.Para meters["@address_count ry"].Value = cboCountry.Text ;
// VDBCommand.Para meters["@address_outsi de"].Value =
txtOutsideAddre ss.Text;
// VDBCommand.Para meters["@address_count ry"].Value = cboCountry.Text ;

/*
VDBCommand.Para meters["@type"].Value = txtHomeTelCode;
VDBCommand.Para meters["@type"].Value = txtHomeTel;
VDBCommand.Para meters["@type"].Value = txtMobileCode;
VDBCommand.Para meters["@type"].Value = txtMobile;
VDBCommand.Para meters["@type"].Value = txtOtherTelCode ;
VDBCommand.Para meters["@type"].Value = txtOtherTel;
VDBCommand.Para meters["@type"].Value = txtOfficeTelCod e;
VDBCommand.Para meters["@type"].Value = txtOfficeTel;
VDBCommand.Para meters["@type"].Value = txtExtension;
VDBCommand.Para meters["@type"].Value = txtDirectTelCod e;
VDBCommand.Para meters["@type"].Value = txtDirectTel;
VDBCommand.Para meters["@type"].Value = txtHomeFaxCode;
VDBCommand.Para meters["@type"].Value = txtHomeFax;
VDBCommand.Para meters["@type"].Value = txtOfficeFaxCod e;
VDBCommand.Para meters["@type"].Value = txtOfficeFax;
VDBCommand.Para meters["@type"].Value = txtOtherFaxCode ;
VDBCommand.Para meters["@type"].Value = txtOtherFax;
VDBCommand.Para meters["@type"].Value = txtOfficeEmail;
VDBCommand.Para meters["@type"].Value = txtPersonalEmai l;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
*/

VDBCommand.Exec uteNonQuery();

MessageBox.Show ("Patient's file was created successfully. Would like
to make an appointment now?");

/*
try
{
VDBCommand.Exec uteNonQuery();
MessageBox.Show ("Added");
}
catch (SqlException e)
{
if (e.Number == 2627)
MessageBox.Show ("ERROR: A record already exists with");
else
MessageBox.Show ("ERROR: Could not add record");
}
*/

VDBCommand.Conn ection.Close();

// this.Close();
}
Many Thanks,
Jassim Rahma

*** Sent via Developersdex http://www.developersdex.com ***
Jan 6 '06 #1
1 1284
Jassim,

It looks like you are specifying a parameter in your call to your
query/stored proc which doesn't exist. Are you sure you have the parameter
list correct?

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Jassim Rahma" <jr****@hotmail .com> wrote in message
news:O4******** ********@TK2MSF TNGP15.phx.gbl. ..
I am getting this error and i Don'r know where is the problem?

please help..

An unhandled exception of type 'VistaDB.VistaD BException' occurred in
vistadb.provide r.dll

Additional information: Error in dll_sql_ExecSQL
Error code: 546 Parameter not found in the list of params
Error code: 610 OpenSQL: Error:546
Parameter not found in the list of params


this is the code..

private void btnSave_Click(o bject sender, System.EventArg s e)
{
// save patients data;

VDBConnection.A ccessMode = AccessMode.Remo te;
VDBConnection.D ataSource = "127.0.0.1:2021 1";
VDBConnection.D atabase = "shefaDB";
VDBConnection.L oginUser = "SA";
VDBConnection.L oginPassword = "";

VDBConnection = new
VistaDBConnecti on("AccessMode= Remote;DataSour ce=127.0.0.1;Da tabase=shefa
DB;LoginUser = SA;LoginPasswor d =;");

string insertCmd = "insert into persons (PERSON_NAME, ID_TYPE,
ID_NUMBER, NATIONALITY, GENDER, DATE_OF_BIRTH, BLOOD_GROUP, COMPANY,
PROFESSION, MARITAL_STATUS, OLD_FILE_NO, PERSON_IS_VIP, ADDRESS_FLAT,
ADDRESS_BUILDIN G, ADDRESS_ROAD, ADDRESS_BLOCK, ADDRESS_AREA,
ADDRESS_PO_BOX, IS_OUTSIDE_COUN TRY, ADDRESS_OUTSIDE _ADDRESS,
ADDRESS_COUNTRY ) values (@fullname, @idtype, @idnumber, @nationality,
@gender, @dateofbirth, @bloodgroup, @company, @profession,
@maritalstatus, @oldfileno, @isvip, @address_flat, @address_buildi ng,
@address_road, @address_block, @address_area, @address_box,
@address_is_out side_country, @address_outsid e, @address_countr y)";
// string insertCmd = "insert into persons (PERSON_NAME, ID_TYPE,
ID_NUMBER, NATIONALITY, GENDER, DATE_OF_BIRTH, BLOOD_GROUP, COMPANY,
PROFESSION, MARITAL_STATUS, OLD_FILE_NO, PERSON_IS_VIP, ADDRESS_FLAT,
ADDRESS_BUILDIN G, ADDRESS_ROAD, ADDRESS_BLOCK) values (@fullname,
@idtype, @idnumber, @nationality, @gender, @dateofbirth, @bloodgroup,
@company, @profession, @maritalstatus, @oldfileno, @isvip,
@address_flat, @address_buildi ng, @address_road, @address_block) ";

VDBCommand.Comm andText = insertCmd;
VDBCommand.Conn ection = VDBConnection;

VDBCommand.Conn ection.Open();

VDBCommand.Para meters.Add("@fu llname", VistaDBType.Var char);
VDBCommand.Para meters.Add("@id type", VistaDBType.Var char);
VDBCommand.Para meters.Add("@id number", VistaDBType.Var char);
VDBCommand.Para meters.Add("@na tionality", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ge nder", VistaDBType.Var char);
VDBCommand.Para meters.Add("@da teofbirth", VistaDBType.Dat e);
VDBCommand.Para meters.Add("@bl oodgroup", VistaDBType.Var char);
VDBCommand.Para meters.Add("@co mpany", VistaDBType.Var char);
VDBCommand.Para meters.Add("@pr ofession", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ma ritalstatus", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ol dfileno", VistaDBType.Var char);
VDBCommand.Para meters.Add("@is vip", VistaDBType.Cha racter);
VDBCommand.Para meters.Add("@ad dress_flat", VistaDBType.Cha racter);
VDBCommand.Para meters.Add("@ad dress_building" ,
VistaDBType.Cha racter);
VDBCommand.Para meters.Add("@ad dress_road", VistaDBType.Cha racter);
VDBCommand.Para meters.Add("@ad dress_block", VistaDBType.Cha racter);
VDBCommand.Para meters.Add("@ad dress_area", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ad dress_box", VistaDBType.Cha racter);
VDBCommand.Para meters.Add("@ad dress_is_outsid e_country",
VistaDBType.Cha racter);
VDBCommand.Para meters.Add("@ad dress_outside", VistaDBType.Mem o);
VDBCommand.Para meters.Add("@ad dress_country", VistaDBType.Var char);
/*
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
VDBCommand.Para meters.Add("@ty pe", VistaDBType.Var char);
*/

// basic info
if (txtFullName.Te xt == "") VDBCommand.Para meters["@fullname"].Value
= null; else VDBCommand.Para meters["@fullname"].Value =
txtFullName.Tex t;
// VDBCommand.Para meters["@fullname"].Value = null;
VDBCommand.Para meters["@idtype"].Value = cboIDType.Text;
VDBCommand.Para meters["@idnumber"].Value = txtIDNumber.Tex t;
VDBCommand.Para meters["@nationali ty"].Value = cboNationality. Text;
VDBCommand.Para meters["@gender"].Value = cboGender.Text;
VDBCommand.Para meters["@dateofbir th"].Value = cboBirthday.Val ue;
VDBCommand.Para meters["@bloodgrou p"].Value = cboBlood.Text;
VDBCommand.Para meters["@company"].Value = cboCompany.Text ;
VDBCommand.Para meters["@professio n"].Value = cboProfession.T ext;
VDBCommand.Para meters["@maritalstatus "].Value =
cboMaritalStatu s.Text;
VDBCommand.Para meters["@oldfileno "].Value = txtOldFileNo.Te xt;
if (chkVIP.Checked == true) VDBCommand.Para meters["@isvip"].Value =
"Y"; else VDBCommand.Para meters["@isvip"].Value = "N";

// address
VDBCommand.Para meters["@address_f lat"].Value = txtFlat.Text;
VDBCommand.Para meters["@address_build ing"].Value = txtBuilding.Tex t;
VDBCommand.Para meters["@address_r oad"].Value = txtRoad.Text;
VDBCommand.Para meters["@address_block "].Value = txtBlock.Text;

if (txtArea.Text == "") VDBCommand.Para meters["@address_a rea"].Value
= "AA"; else VDBCommand.Para meters["@address_a rea"].Value =
txtArea.Text;
// VDBCommand.Para meters["@address_a rea"].Value = txtArea.Text;
VDBCommand.Para meters["@address_b ox"].Value = txtBox.Text;
if (chkOutsideAddr ess.Checked == true)
VDBCommand.Para meters["@address_is_ou tside_country"].Value = "Y"; else
VDBCommand.Para meters["@address_is_ou tside_country"].Value = "N";

if (txtOutsideAddr ess.Text == "")
VDBCommand.Para meters["@address_outsi de"].Value = "AA"; else
VDBCommand.Para meters["@address_outsi de"].Value =
txtOutsideAddre ss.Text;
if (cboCountry.Tex t == "")
VDBCommand.Para meters["@address_count ry"].Value = "AA"; else
VDBCommand.Para meters["@address_count ry"].Value = cboCountry.Text ;
// VDBCommand.Para meters["@address_outsi de"].Value =
txtOutsideAddre ss.Text;
// VDBCommand.Para meters["@address_count ry"].Value = cboCountry.Text ;

/*
VDBCommand.Para meters["@type"].Value = txtHomeTelCode;
VDBCommand.Para meters["@type"].Value = txtHomeTel;
VDBCommand.Para meters["@type"].Value = txtMobileCode;
VDBCommand.Para meters["@type"].Value = txtMobile;
VDBCommand.Para meters["@type"].Value = txtOtherTelCode ;
VDBCommand.Para meters["@type"].Value = txtOtherTel;
VDBCommand.Para meters["@type"].Value = txtOfficeTelCod e;
VDBCommand.Para meters["@type"].Value = txtOfficeTel;
VDBCommand.Para meters["@type"].Value = txtExtension;
VDBCommand.Para meters["@type"].Value = txtDirectTelCod e;
VDBCommand.Para meters["@type"].Value = txtDirectTel;
VDBCommand.Para meters["@type"].Value = txtHomeFaxCode;
VDBCommand.Para meters["@type"].Value = txtHomeFax;
VDBCommand.Para meters["@type"].Value = txtOfficeFaxCod e;
VDBCommand.Para meters["@type"].Value = txtOfficeFax;
VDBCommand.Para meters["@type"].Value = txtOtherFaxCode ;
VDBCommand.Para meters["@type"].Value = txtOtherFax;
VDBCommand.Para meters["@type"].Value = txtOfficeEmail;
VDBCommand.Para meters["@type"].Value = txtPersonalEmai l;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
VDBCommand.Para meters["@type"].Value = ;
*/

VDBCommand.Exec uteNonQuery();

MessageBox.Show ("Patient's file was created successfully. Would like
to make an appointment now?");

/*
try
{
VDBCommand.Exec uteNonQuery();
MessageBox.Show ("Added");
}
catch (SqlException e)
{
if (e.Number == 2627)
MessageBox.Show ("ERROR: A record already exists with");
else
MessageBox.Show ("ERROR: Could not add record");
}
*/

VDBCommand.Conn ection.Close();

// this.Close();
}
Many Thanks,
Jassim Rahma

*** Sent via Developersdex http://www.developersdex.com ***

Jan 6 '06 #2

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

Similar topics

72
5797
by: E. Robert Tisdale | last post by:
What makes a good C/C++ programmer? Would you be surprised if I told you that it has almost nothing to do with your knowledge of C or C++? There isn't much difference in productivity, for example, between a C/C++ programmers with a few weeks of experience and a C/C++ programmer with years of experience. You don't really need to...
4
2452
by: atv | last post by:
Whatis the proper way to handle errors from function calls? For example, i normally have a main function, with calls to mine or c functions. Should i check for errors in the functions called themselves, or should i return a code to main and handle the error there? If i don't return them to main, except for the structure, what use is the...
6
407
by: Daniel Rudy | last post by:
What is wrong with this program? When I try to compile it, I get the following error. Compiler is gcc on FreeBSD. strata:/home/dcrudy/c 1055 $$$ ->cc -g -oe6-3 e6-3.c e6-3.c: In function `main': e6-3.c:32: syntax error before `||' e6-3.c:33: syntax error before `printf' e6-3.c:36: syntax error before `||' e6-3.c:40: syntax error before...
13
5029
by: Jason Huang | last post by:
Hi, Would someone explain the following coding more detail for me? What's the ( ) for? CurrentText = (TextBox)e.Item.Cells.Controls; Thanks. Jason
10
3211
by: Protoman | last post by:
Could you tell me what's wrong with this program, it doesn't compile: #include <iostream> #include <cstdlib> using namespace std; class Everything { public: static Everything* Instance()
669
25771
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic paper written on this subject. On the Expressive Power of Programming Languages, by Matthias Felleisen, 1990....
4
1564
by: brian | last post by:
i broke down where i think the problems areas would be. any help would be greatly appreciated. where the file is called <script type="text/javascript" src="k.js"> </script> the beginning of my form, test.cgi doesnt exsist but i think it should run the function before the action. Is this correct???
4
6679
by: grizggg | last post by:
I have searched and not found an answer to this question. I ran upon the following statement in a *.cpp file in a member function: static const char * const pacz_HTMLContentTypeHeader = "Content-Type: text/html\r\n"; Why is the second const needed and what does it do? Thanks
9
9547
by: Trent | last post by:
Here is the error while using Visual Studio 2005 Error 1 error LNK2019: unresolved external symbol "void __cdecl print(int,int,int,int,int,int,int,int)" (?print@@YAXHHHHHHHH@Z) referenced in function _main assign2.obj Thanks a lot ! Here is the code:
5
13478
by: =?GB2312?B?17/HvyBaaHVvLCBRaWFuZw==?= | last post by:
Hi, I would like to have someone comments on what's the best practice defining error codes in C. Here's what I think: solution A: using enum pros: type safe. better for debug (some debugger will show the name not only the value) cons: enum can not be forward declared which makes all error codes
0
8200
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8338
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8215
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6610
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5390
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...
0
3836
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...
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1179
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.