|
If I create a .net application is it fully compatible with a 64 bit OS or do I need to compile it specifically for this task?
I lack knowledge in this specific area and would gladly accept references...
|
|
|
|
|
See Jeffrey Richter's "CLR via C#" book
The target platform of the assembly is being controlled via /platform key of the compiler, here is the table of possible values and target assembly behavior depending on Windows version:
/platform x86 Windows x64 Windows IA64 Windows
----------------------------------------------------------------------------
anycpy exec. as 32bit app exec as 64bit app exec as 64bit app
x86 exec. as 32bit app exec as WoW64 app exec as WoW64 app
x64 does not exec. exec as 64bit app does not exec.
Itanium does not exec. does not exec. exec as 64bit app
To make it short, if you compile you app for "anycpu" it will run under 64bit framwork
Regards,
Lev
|
|
|
|
|
Thank you for the perfect answer .
|
|
|
|
|
you're welcome
Regards,
Lev
|
|
|
|
|
How to Access WMI From Server 2008 to Windows XP
How To Create remote Keystrokes Monitoring application Using asp.net with c#
|
|
|
|
|
priyapriyam wrote: How to Access WMI From Server 2008 to Windows XP
Did you tried by yourself?Where is your piece of code?
priyapriyam wrote: How To Create remote Keystrokes Monitoring application Using asp.net with c#
Do you want us to develop your applications?Lots projects available on net.
Cheers!!
Brij
|
|
|
|
|
First, noone is going to help you write a keylogger since they can so easily be used, and primarily ARE used, for nasty purposes. Second, you don't understand how ASP.NET works. It's impossible to write such an application using ASP.NET.
|
|
|
|
|
how can i find the checkbox is checked or not.....
present inside the datagridview...
send me sample coding..
|
|
|
|
|
Why crosspost.This won't help anybody instead of irritating..
Cheers!!
Brij
|
|
|
|
|
|
hi
Suppose you have gridview with one checkbox named CheckBox1.
You can find the checkbox control using the code
protected void Button1_Click(object sender, EventArgs e)
{
foreach (GridViewRow gvRow in GridView1.Rows)
{
CheckBox ch = (CheckBox)gvRow.FindControl("CheckBox1");
Response.Write(ch.Checked.ToString());
}
}
|
|
|
|
|
Hi All,
I am trying to test the success of WMI to check connectivity to a remote computer:
I have 2 computers:A,B Computer A: Windows Server 2008.Computer B: Windows XP SP2.They are all on the same network (a workgroup, not domain), with no firewalls in between (excepting Windows Firewall, which I have disabled on Computer B)
i wrote the following code.if local system means that code is working fine.Remotely means it show on Access Denied Error.How to Access WMI From Server 2008 to Windows XP.That remote connection Windows xp to Server 2008 Success.but Server 2008 to Windows Xp show on error like that access denied. Can Anyone help me?
Any help would be appreciated.
ConnectionOptions connection = new ConnectionOptions();
connection.EnablePrivileges = true;
ManagementScope scope = null;
//connection.Authority = "NTLMDomain:" + domain;
//connection.Username = userName;
//connection.Password = password;
//Local Machine
if (compName.ToUpper() == Environment.MachineName.ToUpper())
{
scope = new ManagementScope(@"\root\cimv2", connection);
}
else //Remote Machine
{
scope = new ManagementScope(@"\\" + compName + @"\root\cimv2", connection);
}
scope.Options.EnablePrivileges = true;
scope.Connect();
//
ObjectQuery query = new ObjectQuery("SELECT * FROM Win32_OperatingSystem");
ManagementObjectSearcher objsearcher = new ManagementObjectSearcher(scope, query);
ManagementObjectCollection objcol = objsearcher.Get();
|
|
|
|
|
The account you run your app under has to have administrator permissions to each machine on the network you want to query. Or, you can supply appropriate credentials in the WMI connection code to do the same thing.
|
|
|
|
|
Hello everybody,
This is my first post here and I am learning .NET so please excuse my baby steps.
I am trying to load the elements in tree view. My base item is loading two times. I know why it's loading but i don't know how to protect it or what's the other method so that base item will not load twice.
Thanks. Here is the code.
Private Sub LoadScenarios()
For Each aScenarioBase As MmScenario In aDataSet()
Dim baseScenarioTreeNode As TreeNode = Me.tvScenario.Nodes.Add(aScenarioBase.Id.ToString, aScenarioBase.Label)
LoadScenariosAndChildren(aScenarioBase, baseScenarioTreeNode)
Next
End Sub
Private Sub LoadScenariosAndChildren(ByVal aScenarioParent As MmScenario, ByVal parentScenarioTreeNode As TreeNode)
Dim childScenarioTreeNode As TreeNode = parentScenarioTreeNode.Nodes.Add(aScenarioParent.Id.ToString, aScenarioParent.Label)
For Each aScenario As IScenario In aScenarioParent.Children()
LoadScenariosAndChildren(aScenario, childScenarioTreeNode)
Next
End Sub
Results:
0000
0000
0001
0001.1
0002
I want:
0000
0001
0001.1
0002
Many Thanks.
|
|
|
|
|
Have you debugged and stepped through your code? You'll learn a lot watching what happens.
only two letters away from being an asset
|
|
|
|
|
yes, i looked at every steps. I know why it's doing that but i don't know how to prevent that. Any help will be appreciated. Thanks.
|
|
|
|
|
In LoadScenarios() you add the node to the tree then pass that node as the parent to LoadScenariosAndChildren where you immediately add the node again. Don't load the node in LoadScenarios().
only two letters away from being an asset
|
|
|
|
|
Exactly, I don't want to load the node in LoadScenarios() but without doing that i cannot pass the node. Is there way just to initialize?
what i am trying to do is to create the following structure in treeview:
---Base_0
-----Base_0_1
---Base_1
---Base_2
---Base_2_1
---Base_2_1_1
---Base_3
Thanks for your prompt response.
|
|
|
|
|
i mean this :
---Base_0
-----Base_0_1
---Base_1
---Base_2
-----Base_2_1
-------Base_2_1_1
---Base_3
|
|
|
|
|
musabiralo wrote: cannot pass the node
Pass a null then check for it. If the node is null, add to the root, if not add children
There are plenty of examples of how to recursively populate a tree, have you looked at any of them?
only two letters away from being an asset
|
|
|
|
|
i bind one table in my datagridview
i have 4 check box in my datagridview...
one for present...
second one for absent...
third one for morning present...
fourth one for evening present...
if i check only one check box i get the following error...
// ERROR // Object reference not set to an instance of an object.
bcz i assigned check box value to one string variable...
string value11 =”aa” , value22 =”aa” , value33 =”aa” , value44 =”aa” ;
con27.Open();
int rows = dataGridView1.Rows.Count;
rows = rows - 1;
for (int i = 0; i < rows; i++)
{
SqlCommand cmd27 = new SqlCommand("sp_update_att_lkg", con27);
cmd27.CommandType = CommandType.StoredProcedure;
value11 = dataGridView1.Rows[i].Cells[0].Value.ToString();
value22 = dataGridView1.Rows[i].Cells[1].Value.ToString();
value33 = dataGridView1.Rows[i].Cells[2].Value.ToString();
value44 = dataGridView1.Rows[i].Cells[3].Value.ToString();
string value10 = dataGridView1.Rows[i].Cells[4].Value.ToString();// S_ID
string value6 = dataGridView1.Rows[i].Cells[5].Value.ToString();// name
string value7 = dataGridView1.Rows[i].Cells[6].Value.ToString();// class
string value8 = dataGridView1.Rows[i].Cells[7].Value.ToString();//section
string value9 = dataGridView1.Rows[i].Cells[8].Value.ToString();// scode
string value5 = dataGridView1.Rows[i].Cells[9].Value.ToString();// uid
string dt1 = dateTimePicker1.Text;
DateTime DT = DateTime.Parse(dt1); // ATTENDANCE
if (value11 == "True")
{
value11 = "present";
}
else
{
value11 = "absent";
}
cmd27.Parameters.Add(new SqlParameter("@puid", SqlDbType.Int));
cmd27.Parameters["@puid"].Value = value5;
cmd27.Parameters.Add(new SqlParameter("@pname", SqlDbType.VarChar));
cmd27.Parameters["@pname"].Value = value6;
cmd27.Parameters.Add(new SqlParameter("@pclass", SqlDbType.VarChar));
cmd27.Parameters["@pclass"].Value = value7;
cmd27.Parameters.Add(new SqlParameter("@psection", SqlDbType.VarChar ));
cmd27.Parameters["@psection"].Value = value8;
cmd27.Parameters.Add(new SqlParameter("@pcode", SqlDbType.VarChar));
cmd27.Parameters["@pcode"].Value = value9;
cmd27.Parameters.Add(new SqlParameter("@pattend",SqlDbType.DateTime));
cmd27.Parameters["@pattendance"].Value = DT;
cmd27.Parameters.Add(new SqlParameter("@pstatus", SqlDbType.VarChar));
cmd27.Parameters["@pstatus"].Value = value11;
cmd27.Parameters.Add(new SqlParameter("@ps_id", SqlDbType.VarChar));
cmd27.Parameters["@ps_id"].Value = value10;
cmd27.ExecuteNonQuery();
}
expecting suggestions...
|
|
|
|
|
There is a question about run dotnetframework1.1 application and dotnetframework2.0 application at the same time.
Is anybody tell me the solution for this? Thanks very much!
OS: Win2003 64bit
|
|
|
|
|
If you have web application deployed on IIS,then every virtual directory should be mapped to corrrect version of ASP.NET ISAPI exetention.You can configure it by aspnet_regiis.exe.So every Virtual directory will run on 1.1,and for 2.0,you also need to register it,after registering it you'll get dropdown for ASP.NET version in the properties of your Virtual Directory and selecting ASP.NET tab.
Cheers!!
Brij
|
|
|
|
|
The server's OS is Win2003 64bit
Installed dotnetframework1.1(32bit) and dotnetframework2.0(64bit).
There has no ASP.NET choose in IIS.
|
|
|
|
|
lucasluo wrote: There has no ASP.NET choose in IIS.
Its means you have installed IIS after .NET Framwork.
If you want this, From the command prompt , go to Framework Directory
e.g : c:\windows\microsoft.net\Framework\V2.05732
then run aspnet_regiis Command
cheers,
Abhijit
|
|
|
|