|
Hi,
I have written a windows application in .net 2.0
Do you know how I can have an install setup so that I can email the required files to another person to instal?
Thanks
|
|
|
|
|
Why not just attatch the deployment folder as a zipped file?
|
|
|
|
|
How and where do I get to this deployment folder please?
Thanks
|
|
|
|
|
What he's saying is that there's nothing magic about .NET executables and components. Just copy the .exe file and any .dll files out of the bin/Release or bin/Debug directory, zip them up, and send them to your friend.
|
|
|
|
|
hoe do these dll and .exe files get created. Are they created as you compile the program?
Thanks
|
|
|
|
|
u can create an installer/deployment project in .Net and give
the applications exe path to the installer so when the installer is run
ur application is installed on the users machine.
Regards,
Pramod
|
|
|
|
|
I am looking a way to find out the LDAP path of a computer object. I found an example in vbs, but I don't figure out to translate this in c#. Does anyone got an idea how to do this?
Thanks.
I post you the vbs code for your info.
<br />
Public Const ADS_NAME_INITTYPE_GC = 3<br />
Public Const ADS_NAME_TYPE_1779 = 1<br />
Public const ADS_NAME_TYPE_NT4 = 3<br />
<br />
sSAMAccountName = "domain\computername$" 'replace with the computer account with $ on the end<br />
<br />
Set oNTr = WScript.CreateObject("NameTranslate")<br />
oNTr.Init ADS_NAME_INITTYPE_GC, ""<br />
oNTr.Set ADS_NAME_TYPE_NT4, sSAMAccountName<br />
GetDNFromSAM = oNTr.Get(ADS_NAME_TYPE_1779)<br />
<br />
Set oUser = GetObject("GC://" & GetDNFromSAM)<br />
sUserContainerDN = Replace(lcase(oUser.distinguishedName), lcase("cn=" & oUser.cn) & ",", "")<br />
WScript.Echo sUserContainerDN
|
|
|
|
|
found it. With the help of... Marc Scheuner
http://www.techietwo.com/detail-6060651.html
Ok, the solution:
Add a COM reference ActiveDs (Active DS Type Library)
On top of the document add using ActiveDs;
Private void GetPath()
{
string sComputerName = "Hostname";
ActiveDs.IADsADSystemInfo oSysInfo = new ActiveDs.ADSystemInfoClass();
ActiveDs.IADsNameTranslate oNameTranslate = new ActiveDs.NameTranslateClass();
oNameTranslate.Init((int)ActiveDs.ADS_NAME_INITTYPE_ENUM.ADS_NAME_INITTYPE_DOMAIN,"EUROPE");
oNameTranslate.Set((int)ActiveDs.ADS_NAME_TYPE_ENUM.ADS_NAME_TYPE_NT4,("EUROPE\\" + sComputerName + "$"));
string sTemp = oNameTranslate.Get((int)ActiveDs.ADS_NAME_TYPE_ENUM.ADS_NAME_TYPE_1779);
MessageBox.Show("Path=" + sTemp);
}
Note the $ sign, that is needed in order to get the path = the Netbios name of the computer object.
Thanks all, hopefully you have something on it.
|
|
|
|
|
Does anyone know of a way to build a self extracting executable in C#?
I have written an encryption class and I would like to be able to add my encrypted files to an executable which, when opened, would prompt for a password and then decrypt the file.
I've been having a look at dynamic assemblies and adding resources, but as yet I haven't discovered a way to embed the resource (or in this case the encrypted file) into the executable.
I would really appreciate it if anyone has some suggestions or could point me in the direction of a useful article on this as its doing my head in!
Thanks in advance
Paul
|
|
|
|
|
Hi all,
i know win98 dont have low level hooking just like said in :
http://support.microsoft.com/kb/318804/[^]
how can i do Global hooking for (at least) keyboard so i can work on 98 also?
Thanks in advance.
Ran.
R.Z
|
|
|
|
|
Why post this in a ntoerh thread? What was wrong with the first one you had going?
You can either try the normal Keyboard and Mouse hooks in a .DLL, or you can try the WH_CALLWNDPROC hook and filter for the Keyboard and Mouse messages yourself.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi I am having some trouble trying to pass a dropdownlist into a function that is executed each time the date is changed on the date selector, there are 2 separate dropdownlists so I need to tell them apart anyone got any ideas
Thanks in advance Tim
date.DateChanged += new System.EventHandler(this.Squad_Club_SelectedIndexChanged);<br />
<br />
<br />
private void Squad_Club_SelectedIndexChanged(object sender, System.EventArgs e)<br />
{<br />
string prefix = "";<br />
DropDownList ddl = sender as DropDownList;<br />
if (ddl != null)<br />
{<br />
if (ddl.ID == "clubASquad") prefix = "home";<br />
else if (ddl.ID == "clubBSquad") prefix = "away";<br />
else return;<br />
<br />
InitializeSquad(ddl.SelectedValue,prefix);<br />
}<br />
}
|
|
|
|
|
Hi all,
I was working as a COM developer and new to .NET platform and C#. Please someone help me clarifying my doubts regarding garbage collection.
I have used an Excel Application object inside my C# code. Do I need to explicitly call System.GC.Collect on the application, worksheet and workbook objects?
JJ
|
|
|
|
|
Hi,
You should never call the GC.Collect explicitly... Just let the Framework handle it
Do Dispose() your IDisposable objects when possible and clear all unneeded references to make the collection quicker...
Cheers
Damian
|
|
|
|
|
Hi Damian,
Thanks for the suggestions.
Regards,
JJ
|
|
|
|
|
hi to all,
i am working with c# win application.
i want to copy a file from a server on the local machine.
the path to my file is "http://server/Dir1/myfile.doc".
before doing the copy, i need to verify if the file on the server has recent date than the file on the local machine. if yes i want to make the copy and if not i do nothing
any suggestions or code sample
best regards and thanks in advance
fady
|
|
|
|
|
If you convert each segment of the date into a string, and check each segment in order, so:
if (server.year > local.year)
if (server.month > local.month)
if (server.day > local.day)
etc
- I am not sure on the datetime conversion functions, but there will be a way to split it up into segments with normal string functions and then convert them to int32's
Regards
James
|
|
|
|
|
Hey howzit,
I got a project off the net and I am trying to compile it. It gives me this error message:
"Visual Studio cannot start debugging because the debug target 'C:\.....\bin\Debug\xxx.exe' is missing. Please build the project and retry, or set the OutputPath and AssemblyName properties appropriately to point at the correct location for the target assembly."
So I built it first and then ran it. Can someone explain why one has to built and then run some apps and others work when you press run right away?
|
|
|
|
|
can i ask a favor about our project proposal in the internet connection.We
need to make a code in c# editor or in c programming that will ask a user
to input his/her name and a password, then when the user already consumed
1 hour, her/his connection in the internet will be blocked.
So, please help me in this project....... thank you!!! i wait for you're
reply.....please send me a code at shazzney@message.com
-- modified at 3:05 Wednesday 25th January, 2006
|
|
|
|
|
There can be two ways for this
1: Client Server, if u want someone to administor the system u can create a server application that will be on the admins machine and the client on other machines which the users will use.
2: A simple application can also do this,
just start a thread when the user logs in and break the thread
when the time reaches 1 hr and then u can block keyboard and the mouse so that the user cannot access anything or u can lock the computer with the admin rights so the user cannot access anything.
Hope this idea works for u
Regards,
Pramod
|
|
|
|
|
thanks for sharing your idea but all i need is the code in c# editor/C/C++ language coz i dont know it...............
hope you will reply
|
|
|
|
|
So you dont' want to write the program? You only want someone else to do the job for you, for free? Then you lack some understanding of how the world works.
This is a forum for programmers. If you have problems with programming there are a lot of people here that are happy to help you.
If you want someone else to do a job for you, put up a proper proposal for it, including a specification and what you are willing to pay for it.
---
b { font-weight: normal; }
|
|
|
|
|
a basic version would be:
string Password;
string Username;
///WHEN THE USER PRESSES OK///
{
if (tbUsername.Text == Username && tbPassword.Text == Password)
{
this.Close() //close the password entry form
form1.Enabled = true; //assuming the main form is form1
}
else label1.Text = "Username / Password Combination does not match";
}
you cannot really copy and paste this, but thats just lazy anyway
It should give you an idea of the structure you need to use for your program
Regards
James
|
|
|
|
|
hi
i lock a file.. and i acces this how i can unlock this file
in c#..
plz send me any article, code, help for that problem..
Never Think That You Have Failed Instead Always Think That u hav Better Chance Next Time...
|
|
|
|
|
What do you mean by locking the file?
If you mean that you lock it as you open it, simply close it.
---
b { font-weight: normal; }
|
|
|
|