I am trying to learn C# for a few months. I have managed writing my own classes and developped a few little .NET applications. My Pc has .NET FrameWork of ver: 2.0 .
Recently I have a need to create a new project (In Visual Studio - 2005) for some kind of small devices that runs Windows CE and have Compact FrameWork. In Visual Studio 2005 I do this steps "File\New\Project" and choose "Visual C# \ Smart Device" and <pocket pc="" 2006=""> Or <widnows ce="" 5.0=""> as project type, and choose <device application=""> .. Just to new a project for mobile devices.
Unfortunately creating fails with this message ("This Project requires .NET Compact FrameWork v2.0, whics is not installed on this machine"). And also I tried Device Application(1.0) but the result is an error. Althoug I use C#, just to test I tried this in Vb.net but I failed creating a new Device App. project.
What does it mean ? Should I install Compact FW 2.0 on my PC, which seems strange to me ?
And I also should mention that while I was intalling Visual Studio-2005 with a Custom Instalation in which I only not choosen the J# components. I am sure that I selected all other compnents (Vb.net, C#, Web programming Tools, Device porgramming Capabilities.. things like that )
Anybody could assist me. how to resize two dimensional array. Actually I have chunk the first row in matrix. like I have Matrix. I have chunk
Matrix[0...3] and I want to redeclare Matrix like dynamically. if u have any way. Please help me out.
try the following code from this post. http://blog.miseldine.com/?p=24
privatestaticvoid ExecuteSql(SqlConnection ___conn, string ___fileName)<br />
//array for storage of SQL<br />
string __sqlStatements;<br />
//the only clever bit: spilt at each GO statement<br />//as the normal SQL connector will spit out anything<br />//after the GO.<br />
Regex __r = new Regex("^GO", RegexOptions.Multiline);<br />
//for file reading: just replace with the string of<br />//SQL if not from file. Or embed SQL as resource…<br />
StreamReader __sr = new StreamReader(___fileName);<br />
string __sql = __sr.ReadToEnd();<br />
__sqlStatements = __r.Split(__sql);<br />
SqlCommand __comm = new SqlCommand();<br />
__comm.Connection = ___conn;<br />
//loop through each block in the spilt SQL and<br />//execute.<br />foreach (string __sqlBlock in __sqlStatements)<br />
if (__sqlBlock.Trim().Length > 0)<br />
__comm.CommandText = __sqlBlock;<br />
catch (SqlException)<br />
//here, execute your DROP script<br />break;<br />
thks to original author.
here is another one... http://msdn2.microsoft.com/en-us/library/ms811086.aspx
You can make its installer by creating a setup project in Visual Studio. Or you can add another project of type Setup Wizard in the same solution which is a bit easier way. Then there is InstallShield which you could use. There are many many ways to create an installer.
On google, search how to create setup projects in Visual Studio.
i have a class A. Class B derives class A and class C derives from class B and class D derives from class c. Now i need to call a method of class A from class D. is it possible? if so how can i acheive this. Is there any facility in C# that helps me to call the methods any of the classes A, B, C from class D? very urgent
I know very well what inheritance is. Here my problem class A has a method Method1 and Class B inherits class A and Class C inherits class B where Class C overides the Method1 and class D inherits class C. know when i call Methodi from class D the Method1 of class C will be called. but i want to call the Method1 of class A. We can use super keyword in C++. is there any thing in C# that helps us to acheive this? got this time you got it?