|
Buy a book and work through it, then come back here and ask questions to help you from there.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Asalam o Alaikum:
I have two dates like (13:04:09 and 14:04:03) i want to calculate time diiference between them .
Is there any function in c++ to reslove this issue.
Thanx in advance
|
|
|
|
|
Farhan Ali wrote: Is there any function in c++ to reslove this issue.
I don't know. Ask in the C++ forum.
---
single minded; short sighted; long gone;
|
|
|
|
|
In C# you can use Datetime objects for this operation.....
Why you posted this in c# forum?
My small attempt...
|
|
|
|
|
Hi,
In my Client Server Programming, when i use the same machine as Client and
Server, Everthing is going Fine. But when i use different machine,
I am getting Error as A connection attempt failed because the connected
party did not properly respond after a period of time.
what is the reason.
Sakthi
|
|
|
|
|
Check the security settings like firewalls and all
Then make sure that the network connections are working
My small attempt...
|
|
|
|
|
Hi,
Its not because of FireWall. I am getting this error while connecting with
the client in LAN. Is there any way to set TimedOut for Connections in
Asynchronous Socket Programming.
Sakthi
|
|
|
|
|
Which tool are you using?
is that msgConnect?
My small attempt...
|
|
|
|
|
Hi ,
I am using Visual Studio.
With Thanks
Sakthi
|
|
|
|
|
can you just paste the exception you are getting
My small attempt...
|
|
|
|
|
Hi,
A connection attempt failed because the connected
party did not properly respond after a period of time.
Sakthi
|
|
|
|
|
I once ran into this error and couldn't figure it out for literally hours.
Then I realized I had typed in '45' for the timeout which, naturally, is specified in milliseconds. I was telling it to wait 45 milliseconds to timeout.
I sheepishly changed it to 45000 and went about my business.
Check for that 
|
|
|
|
|
Hi,
i didnt set any timedout parameter for Socket Connection.
As for as I know TimedOut can be set for sending and receiving messages.
If i want to set Timedout for Socket Connection how should i do.
Sakthi
|
|
|
|
|
Can anyone cite any examples of the C# language being implemented outside of Mono and .NET?
|
|
|
|
|
Just googled it. http://www.dotgnu.org/[^]
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
Thanks. What did you Google? I've not had much success excluding things from a Google search.
|
|
|
|
|
Well niether did I, it was on the 5th page for "C# NOT .NET NOT mono" Obviously, "NOT" doesn't seem to be google search operator (should be "-"), but hey, it's morning :->
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
1. what is dynamic polymorphism?
2. I have three classes c1,c2,c3. In c1 and c2 I have same method m. Now if I access the method in c3 by inheriting from c1 and c2 which class method executes c1 or c2. plz answer these...
yamini
|
|
|
|
|
The answer to two is that there is no answer, unless we first assume that c1 -> c2 -> c3. There is no way to inherit from more than one class in C#.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
1.dynamic polymorphism is late binding
If you have same methods in base and derived class
then consider the situation
You are trying to create the object
Base objBase = new Derived();
objBase.Method();
will invoke the base class' method otherwise you declared it as virtual..
The method to be invoked is clear only at running................
2. we dont have multiple polymorphism in c#, for that you can use interface.
My small attempt...
|
|
|
|
|
I get the following when trying to build a tree from the following code:
The action being performed on this control is being called from the wrong thread.
I thought I was using the correct BeginInvoke. Thanks for any help!
private void main()
{
...
SetRunCollectionTree srct = new SetRunCollectionTree(this.RunCollectionTree);
srct.BeginInvoke(null, null);
}
public delegate void SetRunCollectionTree();
public void RunCollectionTree()
{
try
{
this.collectionTree.BuildTree();
}
catch(System.Exception e)
{
MessageBox.Show(e.Message);
}
}
RABB17
"Nothing fancy needed, please just solve all our problems as quickly as possible."
|
|
|
|
|
In Vs2005 dotnet2.0 it is not permitted to access a form control from a different thread then the owner thread. You must use a callback to do this.
See
http://support.microsoft.com/kb/318604[^]
mdv113
|
|
|
|
|
Hi all,
i have a darabase in access i wanna edit a column in a table. my coding has no errors. also the dataset gets updated with the change but the real table doesn't get updated .
this is my coding.
OleDbConnection OLEDBcon = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\\WmsFoodCityPerformance.mdb" +
";Jet OLEDB:Database Password=sanuja");
OLEDBcon.Open();
string sel = "SELECT * FROM CON_AKU";
OleDbDataAdapter OLEDBda = new OleDbDataAdapter();
try
{
OleDbCommand OLEDBselcom = new OleDbCommand(sel, OLEDBcon);
OLEDBda.SelectCommand = OLEDBselcom;
}
catch
{
}
finally
{
DataSet ds = new DataSet();
OLEDBda.Fill(ds);
DataTable dt = new DataTable();
dt = ds.Tables[0];
foreach (DataRow dr in dt.Rows)
{
dr.BeginEdit();
dr["BGT_JUN"] = 0;
dr.EndEdit();
dr.AcceptChanges();
dt.AcceptChanges();
}
OLEDBda.Update(ds);
MessageBox.Show("Done");
dataGridView1.DataSource = ds.Tables[0];
}
}
please help
Regards
Ruwandi
rkherath
|
|
|
|
|
i think u need to set the update command of dataadapter with proper parameters
if u want to to update DB with Data Adapters Update method.
rahul
|
|
|
|