|
Sorry, guess I wasn't thinking up the Aussie sheep farmers around here.
only two letters away from being an asset
|
|
|
|
|
|
Ewwwwwwwwwwwwwwwwwwww
"too much daily WTF for someone..." - Anton Afanasyev
|
|
|
|
|
It could be worse. He can get much more verbose, thus descriptive, writing in COBOL!
|
|
|
|
|
Dave Kreskowiak wrote: He can get much more verbose, thus descriptive, writing in COBOL!
Then I'd change it from ewwwwwww to ughhhhhhhh ( which is my feelings about Cobol anyways )
"too much daily WTF for someone..." - Anton Afanasyev
|
|
|
|
|
depending where you are there may be strict regulatory requirements for data. Animals in the UK now have to be traceable. You need to may need to know parentanimals. Places the animal has moved to with dates. Animal passport Number etc.
Best bet is to talk to a farmer and see what they have to do on paper and try to replicate that. Don't try to replicate the whole mess of paperwork systems at once, concentrate on getting one working as well as possible and then add extra functionality later.
Russell
|
|
|
|
|
Is it possible to get the logged on users password or to use the users account to start an application?
We have two options: restart a windows service under the windows logon account or start an executable with the windows logon account.
If we start the application via the windows service it starts with the SYSTEM account and we don't want that.
Any ideas? Thanks...
|
|
|
|
|
No you can't retrieve the password.
You can change the account a service uses to logon with via the services management console.
only two letters away from being an asset
|
|
|
|
|
thanks, but wanted to it programmatically... .
We can't tell the user to this...
|
|
|
|
|
thanks, but wanted to do it programmatically... .
We can't tell the user to this...
|
|
|
|
|
V. wrote: Is it possible to get the logged on users pa
Nope.
V. wrote: restart a windows service under the windows logon accou
You have to supply the username AND PASSWORD in order to do this. The only way to get the users password is to ask for it and have them type it in. Then you can restart the service.
But, in the case of Windows XP, you can have multiple users logged in on the machine at any time. How is your service going to handle this situation? You really can't stop the service and change the account every time someone logs in.
If you have a process that needs to run under the users account, create your application as a normal console or Windows Forms .EXE and put a shortcut to it in the Startup folder. The app runs under the users security context when the user logs in.
|
|
|
|
|
Thanks for the reply.
Dave Kreskowiak wrote: If you have a process that needs to run under the users account, create your application as a normal console or Windows Forms .EXE and put a shortcut to it in the Startup folder. The app runs under the users security context when the user logs in.
Unfortunately it's not that easy, there is more to it then that.
we're searching in an entirely different direction now...
|
|
|
|
|
how can i add new button next to maximize or minimize buttons (on border of form)
|
|
|
|
|
|
hi
i am having problem when i am trying to write something on remote location using .net thread.
e.g. i have a central location letsay MachineName|MachineIP/SharedDrive.
and i am creating a thread on click of a button which i need to write some information on that location.
i have also added a node <identity impersonate="true" username="Domain\User" password="*******"> in web.config of my application.
and i have also given credential in <machine.config>--<processmodel enable="true" username="SameInWeb.Config" password="SameInWeb.Config">
but it is giving the following exception:
The system detected a possible attempt to compromise security. Please ensure that you can contact the server that authenticated you.
below is my method which i am calling on a separate thread.
private void WriteSomeThingToRemoteLocation ()
{
FileStream fileStream = null;
BinaryFormatter binaryFormatter = null;
System.Object systemObject = null;
System.Object obj = new object();
lock ( obj )
{
string _contractLocaterKey = Guid.NewGuid().ToString().Replace( "-", "" );
string fullPath = @"\\MyMachineIP\SharedDrive" + "\\" + _contractLocaterKey + ".dat";
try
{
fileStream = new FileStream( fullPath, FileMode.CreateNew, FileAccess.Write );
binaryFormatter = new BinaryFormatter();
systemObject = new object();
systemObject = "Hello this is testing1";
binaryFormatter.Serialize( fileStream, systemObject );
systemObject = new object();
systemObject = "Hello this is testing2";
binaryFormatter.Serialize( fileStream, systemObject );
}
// catch(Exception ex)
// {
// avoided for getting noticed what happened;
// }
finally
{
if ( fileStream != null )
{
fileStream.Close();
fileStream = null;
}
binaryFormatter = null;
systemObject = null;
}
}
}
please help in this matter as i am stucking in the problem from more than 3 days.
this thing is happening OK :
1. if i call this method directly on another method.
2. if i call this method in a console application .
3. if i call this method on a thread in a console application.
any help would be highly appreciated.
thanks
vishal sharma
Thanks & Regards
Vishal Sharma
vishalsharma556@yahoo.co.in
|
|
|
|
|
I have a VB 6 code with me. The code is playing with excel. It generates worksheets and adds templates to them, sets cell values, etc. I want to rewrite the entire code into C#.Net. For that I have used Microsoft Excel 11.0 COM reference. (This is same in VB6). The problem is that I cannot find code in C#.Net equivalent to VB6 counterpart. Examples are given below:
oBook.Worksheets("General")
or this
oSheet.Rows(2).Copy oSheet.Rows(i)
There are many examples like this.
Either I don't know how to write this in .Net or there is no equivalent.
Does anybody know, where I can learn how to use Excel in .Net 2003 in good amount of depth so that I can convert any code in VB6 to .Net 2003?
Regards
Anil
|
|
|
|
|
hi anil
look at this example
http://www.codeproject.com/office/package.asp
regards
|
|
|
|
|
Joe,
Thanks! That was a nice article. That solved my Worksheet("abc") problem.
Regards,
Anil
|
|
|
|
|
In any web application in C# how we can view/edit/delete some data in the FormView control without using any databaseobject control like sqldatasource,objectdatasource .We want to connect the FormView control with sql databse by writing code in codebehind(like using DataSet).
Waiting for reply......
priyabrata
|
|
|
|
|
hey
i am also looking for the same solution that u r stuck wid ....
i want to hard code form behind in my code behind without using databaseobjects ....
i 'vl inform if i find a solution ... kindly share if u find d way to do it ...
thanx
deepayan
|
|
|
|
|
Simple question.
Is there a command to copy a directory in a different path without doing this manually on files and sub-directory contained there?
I've not found any copy command on System::IO::Directory ... it's strange!
Thank you
Russell
|
|
|
|
|
If you wanna move the directory, use Directory.Move
|
|
|
|
|
No, .... sorry...I want to copy it
Russell
|
|
|
|
|
Do you want to copy subfolders too?
|
|
|
|
|
yes...like MS-DOS command xcopy does.
Of course, I can use directly that command, ... but I'm trying to understand if there is an implemented function that does this copy that I still not know.
Thank you
Russell
|
|
|
|