|
Do you know if there is any sample code around for any of this solutions ?
Thank you.
|
|
|
|
|
1) Search for WinRes on Google. I know it exist, I never used it.
2) Contact a translation vendor and let them deal with it - you give them the DLL with the English text embedded, they return translated DLL's (in case they are signed you need to work with them how their tool can support this - possibly though delayed signing).
3) This should only be done by enterprises - if you are not working for a company at least 3 software developers in a deticated localization team (NOT localization engineers - the entire localization team will probably be at least 15 people before you have the 3 developers) this is not the option for you. Such a localization team will also be experienced in using third party localization tools and can hence make the judgement on when your translation volume is so high that they no longer can keep up using the standard 3rd party tools.
Unfortunately Microsoft made some serious design errors in the localization file format of .NET, but it is still best to follow the standard .NET localization methods instead of inventing your own XML format.
|
|
|
|
|
Well I wanted to create my application so that anyone can edit file, for instance I give application to my friend in France, he takes it and translates it into French without having to play around with WinRes resgen and other things .
Thank you anyway for you`r response.
|
|
|
|
|
Hi,
I am using .Net Framework 1.1
Is it possible to watch a directory for any changes,like we have FileSystemWatcher for files.
(or)
Is it possible to raise an Event if a shared directory is being accessed in windows.
Actually my problem is simple, I have an application in which i have to monitor network access.If a user in the network tries to access a folder in the network a message is sent to the server indicating that a user is trying to access the network.The server decides to allow or deny permission for the user to view the directory at random.
note:I have a service running in the server and another in the client.
Any Ideas ..,
Thanks un advance...
Luck is Opportunity with hardwork
|
|
|
|
|
sundar156 wrote: Is it possible to watch a directory for any changes,like we have FileSystemWatcher for files.
You can use the FileSystemWachter for watching Directories (look in the documentation for "FileSystemWatcher class, about FileSystemWatcher class").
It should work, as I know, but I'm working with .Net 2.0
Regards,
Ingo
------------------------------
PROST Roleplaying Game
War doesn't determine who's right. War determines who's left.
|
|
|
|
|
thanks for the reply...
But a
FileSystemWatcher can only watch for created ,Renamed ,Changed,Deleted Events...(i Have to generate an event when a user clicks on the folder or file i.e before he opens a file)
I should not allow the user to open the folder/File untill the Server(or an admin in the server machine) permits.
Any help is appreciated....
Luck is Opportunity with hardwork
|
|
|
|
|
sundar156 wrote: But a
FileSystemWatcher can only watch for created ,Renamed ,Changed,Deleted Events...(i Have to generate an event when a user clicks on the folder or file i.e before he opens a file)
I should not allow the user to open the folder/File untill the Server(or an admin in the server machine) permits.
Ok, now I see your problem. Well thats difficult. It has something to do with the rights management and I think it can't be solved easily.
I don't know a really good solution but I got an idea. You could just regret the user the access and allow your own application the access. A user has then to use this application to open a file/directory forbidden to him. Of course than it's possible to ask the admin.
Sound silly? Perhaps, but I don't know another way, yet. I haven't done anything with file rights management yet.
Sorry,
Ingo
------------------------------
PROST Roleplaying Game
War doesn't determine who's right. War determines who's left.
|
|
|
|
|
Hey, I keep getting the UnauthorisedAccessException from the following code - the user account I'm using to connect to the server in question does have permission to read/edit the registry. I have also modified the my routing table so I can access the server resources by name. If anyone could help me out I'd greatly appreciate it.
using System;<br />
using System.Security;<br />
using System.Security.Permissions;<br />
using Microsoft.Win32;<br />
<br />
[assembly: RegistryPermissionAttribute(SecurityAction.RequestMinimum, Read = @"HKEY_LOCAL_MACHINE\SOFTWARE\Network Associates\TVD\Shared Components\VirusScan Engine\4.0.xx")]<br />
[assembly: SecurityPermissionAttribute(SecurityAction.RequestMinimum, UnmanagedCode = true)]<br />
<br />
String KEY = "SOFTWARE\\Network Associates\\TVD\\Shared Components\\VirusScan Engine\\4.0.xx";<br />
<br />
try<br />
{<br />
RegistryHive hKey = RegistryHive.LocalMachine;<br />
<br />
RegistryKey DATKey = RegistryKey.OpenRemoteBaseKey(hKey, _ServerName).OpenSubKey(KEY);<br />
}<br />
...
It seems to get past the RegistryHive.LocalMachine part, but throws the exception when it gets to the open remote base key call. I tried separating the OpenRemoteBaseKey() and OpenSubKey() calls into 2 separate lines, to see if it was maybe OpenSubKey() that was throwing it, but the same exception was thrown on the OpenRemoteBaseKey() call.
Thanks.
|
|
|
|
|
b_girl wrote: UnauthorisedAccessException
It means you have to be authenticated and have permissions on the server.
|
|
|
|
|
I am authenticating with the server and the account I'm authenticating with has permission to read/edit the registry. I'm doing the authentication when I connect - I'm using the Ras API to establish a VPN connection to the server.
Do I have to authenticate again after the connection is established?
|
|
|
|
|
I have a C# .Net application which generates a XML file on the web server when the user clicks on a button. After that file is produced, I need to be able to push that xml file to the client machine (preferably with an open dialog box so the user can choose the destination). I am thinking this can be done with Response.Write, but I have not been successful. Thanks.
|
|
|
|
|
You could use the WebClient class
Try this:
string URL = "http://www.somesite.com/filename.fileExtention";
string localLoc = "C:\\filename.fileExtention";
System.Net.WebClient c = new System.Net.WebClient();
c.DownloadFile(URL,localLoc);
You could use a browse dialog for the location to save the directory.
Hope that helps,
K
-K
|
|
|
|
|
On second thoughts, I do not think this would work as you are writing from server to client. That's something I didn't register the 1st time around. oops. Sorry.
-K
|
|
|
|
|
|
On every DirectX sample I see the whole form and every aspect of drawing the controls/graphics on the form is handled exclusively by DirectX, ie overiding OnPaint().
My question is, is it possible to have just part of your application directX? e.g., I want to design a normal form w/ visual studio, and then add a little box on my form that will display some directx content. (Specifically, I just want to load 3d model and rotate it.)
Is this even possible? Maybe a directx control I can place on my form. I don't have any directx experience, can somebody please guide me?
/\ |_ E X E GG
|
|
|
|
|
Inherit from a control and override the controls onpaint event for your direct X. I did this for the star wars credits I placed in a system once. It works well.
A man said to the universe:
"Sir I exist!"
"However," replied the Universe, "The fact has not created in me A sense of obligation."
-- Stephen Crane
|
|
|
|
|
Do you have any examples?
/\ |_ E X E GG
|
|
|
|
|
Due to the signing of a non-compete no. However, if you understand direct X then it is a trivial task. If you do not understand direct X then you are asking the wrong questions. First I would research writing your own custom control, it will cover the on paint override, then just pass the control's handle to direct X
A man said to the universe:
"Sir I exist!"
"However," replied the Universe, "The fact has not created in me A sense of obligation."
-- Stephen Crane
|
|
|
|
|
I haven't tried it, but you might take a look at this article
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Thanks, that's just what I was looking for.
Actually now, I'm using a picturebox and direct 3d!
/\ |_ E X E GG
|
|
|
|
|
excuse me
first thanks for help
i want to set the DataBindings property for datagrid by dataview
but it send me an exception here is the code i wrote
DataView custadd=new DataView(customer.Tables["address"],"","",DataViewRowState.CurrentRows );
custadd.AllowEdit=true;
custadd.AllowNew=true;
custadd.AllowDelete=true;
custadd.Table =customer.Tables["address"];
custadd.RowFilter="cust_ID='"+txid.Text+"'";
dataGrid1.DataBindings.Add("DataSource",custadd, );
the databindings takes three arguments but i do not know the 3 argument
thanks
MD_NADA
MD_NADA
|
|
|
|
|
can some1 recomend me of a good tcp\ip socket server code\snifft ? (if it can get multiple connections it will be better)
|
|
|
|
|
I liked this example a lot. It's an asynchronous TCP Server/Client.
http://codeguru.earthweb.net/csharp/csharp/cs_misc/sampleprograms/article.php/c7695/
http://codeguru.earthweb.net/csharp/csharp/cs_network/sockets/article.php/c8781/
Good Luck
-K
|
|
|
|
|
Does anyone know how to overcome the DBNull.Value problem with databinding to a detached row?
When you bind to a detached row and any of the columns have a null value (DBNull.Value), an exception get's raised. It is impossible to use the DataBindings[idx].Format or DataBindings[idx].Parse to 'catch' the null value and change it, because you have to set the databinding before you can set the .Format and .Parse handlers, and the error gets thrown when you set the databinding.
... and no, I don't want to bind to a DataTable. I need to bind to a detached row.
Paul Brower
|
|
|
|
|
I'm assuming by 'detached row' you mean a DataRow that is not in a DataTable. Is that correct?
Why do you need to bind to a detached row? Why not just bind to a DataView which filters in only that row? What about binding to the ItemArray of the row instead?
|
|
|
|