|
http://www.ebooksportal.org
|
|
|
|
|
racing57 wrote: I currently write software using VC++ and have done for the last 5 years, i am looking to migrate to C# and am wondering if anyone can recommend some books that would be usefull bearing in mind my last 5yrs experience..
Inside C# by Tom Archer
Michael
CP Blog [^] Development Blog [^]
|
|
|
|
|
As an instructor I get this question a lot.
The Inside C# by Tom Archer is a good "intermediate going towards advanced" programmer. I wore my copy of the first edition out, very useful.
If you need an advanced book, I would recommend either CLR via C# by Jeffrey Richter, which is terrific for figuring out what is going on under the covers, or a more practical book, Practical .NET2 and C#2 by Patrick Smacchia.
HTH
|
|
|
|
|
Thanks... i think i have plenty to go on now...
|
|
|
|
|
|
I used version 2 into the ground, and just bought the 4th ed(he updates for new versions of .NET) cause its even more helpful. I'd highly recommend it.
|
|
|
|
|
Yes, it is good idea.
I Recommend you to read (C# for programmers second edition) by Deitel and Deitel.
It is Good Book for you.
ala qunaibi
|
|
|
|
|
hi all,in my web config i set the timeout="120" and i use some session variables in my page load event,it works fine in my local system, when i upload it, it shows null reference error(not all time but some times).when i work contineously it work fine if i leave for a minutes it show null reference error........what to do?...any remedy?
Regards,
ayyp
|
|
|
|
|
Is the system you're uploading to a web farm? Is the application distributed across multiple servers?
Logifusion[^]
|
|
|
|
|
That's strange. I suggest to put a Breakpoint on Session_End method from Global.asax just to be sure that the session timeout is the problem.
damianbc
|
|
|
|
|
yes,i try it using try and catch block in my coding it thro catch block error
here is code
private void Page_Load(object sender, System.EventArgs e)
{
try
{
lbluser.Text="Welcome "+Session["name"].ToString()+"...";
}
catch
{
MessageBox.Show("UserName is Empty");
}
}
Regards,
ayyp
|
|
|
|
|
Hello!
I want to read a item´s text from another process, but I tried so many ways!
All I could find was in VB or C++!
But I got no clue how to use VirtualAlloc, OpenProcess, CloseHandle, etc in c# with structs!
Because TVM_GETITEM needs a struct, and in order to get the information that I need from another process I must do a lot of things!
If anyone got any Idea that can help me, I appreciate!
Thanks
Regards
|
|
|
|
|
Hello
Are you accessing the treeview from another thread in your application, or between different applications?
|
|
|
|
|
It´s from different applications.. each one on its own process.
|
|
|
|
|
Hi i have one doubt ,for craeting an object in which this requires parent object where as parent is abstract?How it's possible?
Class Structure:
public abstract class Setting : DefinitionObject, ISerializable
{
#region Fields
// Fields
. . . . . .
#endregion
#region Construction/Finalization
// Construction/Finalization
/// <summary>Constructor.</summary>
/// <param name="parent">The parent setting.</param>
/// <param name="category">The setting category.</param>
/// <param name="strName">The setting name.</param>
public Setting(Setting parent, SettingCategory category, string strName)
{
EditMode = true; //Setting object need to be in edit mode.
m_Parent = parent;
Name = strName;
CategoryAsString = XmlSettingCategory.CategoryToXmlCategory(category);
//Setting base properties set the dirty flag to True. Therefore we have to set it back to false.
base.SetDefDirty(false);
}
}
public class CollectionSetting : Setting, ISerializable
{
#region Fields
// Fields
. . . . .
#endregion
#region Constructor / Finalization
// Constructor / Finalization
/// <summary>Constructor.</summary>
/// <param name="parent">The parent setting.</param>
/// <param name="category">The setting category.</param>
/// <param name="strName">The setting name.</param>
public CollectionSetting(Setting parent, SettingCategory category, string strName) : base(parent, category, strName)
{
}
}
CollectionSetting cSetting = new CollectionSetting(? , ?? , ???);
What i give the input to "?"Because this requires parent object but parent class is an abstract?
Please help me .....
A.Arputha Lazer.
-- modified at 5:38 Monday 19th June, 2006
|
|
|
|
|
|
|
Also wrong, you can have constructors on abstract classes, inheriting classes can access them. It's not the best practice, because then all inheriting class must have a constructor with matching signature, but you can do it.
public abstract class BaseClass {
protected string name;
public BaseClass(string name) {
this.name = name;
}
}
public class ChildClass : BaseClass {
public ChildClass(string name) : base(name) {
}
}
And you can instantiate your inherited type with an abstract instance, that's what polymorphism is all about. You can't construct an abstract class, but you can construct concrete implementations of it as if they were the abstract class. Meaning you can use any class that inherits from the base class as an instance of the base class.
public abstract class Setting {
}
public class SimpleSetting : Setting {
private Setting parent;
public SimpleSetting() {
}
public SimpleSetting(Setting parent) {
this.parent = parent;
}
}
public class CollectionSetting : Setting {
private Setting parent;
public CollectionSetting(Setting parent) {
this.parent = parent;
}
}
public class Test {
static void Main(string[] args) {
Setting s = new CollectionSetting(new SimpleSetting());
}
}
But you are right about abstract members, don't know where they heard you can only have static members on abstract types. You can do everything with a abstract type that you can with a normal class.
Visit BoneSoft.com
|
|
|
|
|
|
It's usually a can of worms you don't wanna open, but it can be done. Unless for some strange reason you want to insure that all inheritors have a specific constructor, which is somewhat unorthodox to dictate from a base class. Once upon a time, I read something that listed another reason or two why not to do that, but I don't remember what they said. It's probably wise to continue believing that it can't be done.
Visit BoneSoft.com
|
|
|
|
|
You would want a constructor in an abstract class if you want to establish rules of required constructor parameters fed to the ABC.
|
|
|
|
|
How to get the day of the given date in c#.net. Is it possible to add 30 days from the given date which omits the saturdays and sundays? Help me.
SR Ranjini
|
|
|
|
|
try out following codes
DateTime drt = new DateTime(2004,04,21);
MessageBox.Show(drt.DayOfWeek.ToString());
rahul
|
|
|
|
|
Hi,
U right the code below,
.......(Put the TextBox in the Web Form)
TextBox1.Text = DateTime.now; // For the current Date & Time //
I don't know how to omit sat. & sun days from the month.
Regards,
Jesal Rana
OK
|
|
|
|
|
Hello Folks,
I really need help to solve a real stupid situation
I have a SQL Server database table named MAINT_START.Columns of this table are:
PlateNumber char(11)--------> PK
MaintEntryDate smalldatetime---> PK
MaintReason char(20)
I want to update this table's MaintReason column via a SQL String. My code is like this:
/**********************************************************************
string strUpdate="UPDATE MAINT_START SET MaintReason='" + cMaintReason.Text.TrimEnd() + "'," +
" MaintCompany='" + cMaintCompany.Text.TrimEnd() + "'," +
" MaintCompanyTel='" + cMaintCompanyTel.Text.TrimEnd() + "'," +
" MaintCompanyAddress='" + cMaintCompanyAddress.Text.TrimEnd() + "'" +
" WHERE PlateNumber='" + cPlateNumber.Text + "' AND" +
" MaintEntryDate =Convert.ToDateTime(cMaintEntry.Text)";
SqlCommand aCommand=new SqlCommand(strUpdate,Myconnection);
/************************************************************************
Dear friends is it really impossible to insert or update a smalldatetime column?
Please Help..
|
|
|
|