|
Hello everyone,
I want to do some stuff, if the user is not doing something in my application for a time x.
Thank you for your help and time
Martin
|
|
|
|
|
Is there a better way, then looking at MouseMove?
|
|
|
|
|
|
Will try that out!
Thanks
|
|
|
|
|
Not possible, because application is always working in the background.
Thanks
|
|
|
|
|
hai all,
how can i implement multi language in .net 2005 using windows API.. is it possible to display multi language in windows form using TextOut?.. how?
Regards
|
|
|
|
|
Why use the windows api when you can do localisation using resources?
WM.
What about weapons of mass-construction?
|
|
|
|
|
I am writing a MIME parser and i need to convert the Windows-1252 encoded strings to utf-8. For example, the text =?Windows-1252?Q?une_beaut=E9=? should become une beauté.
Do you know what the conversion algorithm is? Does a "shortest" method exist in the framework?
"no xe tuto oro quel che luse"
rechi+
|
|
|
|
|
I think there is no method for parsing this string.
The only thing you can do is to split the string, take the E9 and then using Byte.Parse to take the byte. Then you can convert it using System.Encoding.Convert(... to convert it from Window-1252 to UTF8. Then take the string back from that byte array.
|
|
|
|
|
Thank you for the answer.
I will use the Convert method as you said.
"no xe tuto oro quel che luse"
rechi+
|
|
|
|
|
See this sample:
Encoding source = Encoding.GetEncoding(1252);
Encoding target = Encoding.UTF8;
byte[] input = new byte[1] {0xE9};
byte[] output = Encoding.Convert(source, target, input);
string result = Encoding.UTF8.GetString(output);
Console.WriteLine(result);
|
|
|
|
|
Encoding.Default mite be handy
|
|
|
|
|
Hi,
I'm using Visual Studio.Net 2005 with Crystal reports. I tried the tutorial on Publishing and consuming a report as a webservice from MSDN. When I run the windows form, I get error messages saying that the report failed to load. It works fine if I give the file path to the .rpt file, but when its been published as a webservice and I give the URL, I get the error. I have the required sample reports and database(MS Access Db). I get the same problem when I try the tutorial about populating a combobox (Windows form) with reports from a webservice. I get the list of reports, but when I try to display the report, I get errors saying the report cannot load.
If anyone knows, plz let me know.
Thx,
Mahesh
|
|
|
|
|
hi there,
i have an application with a local database,now i want to transfer datas to a server using cable modem(for security reasons),how can i do this?
i have read some articles on tapi but couldnt use them.
|
|
|
|
|
Hello...
I don't know how exactly cable modem works, but I think it works like a DSL modem. DSL modem can connect only to a DSLAM. You cannot connect directly DSL modem to DSL modem. That means you must use a good old analog modem (56k modem) or you can use VPN. Just use the VPN function from Windows XP.
|
|
|
|
|
hi,
i want to transfer the data in my app using codes not using an external app.
|
|
|
|
|
Ok... that means you don't know anything about VPN.
VPN is an encrypted network in the internet.
You must first make a connection using Connection Wizard in Windows XP.
Then you can see that Windows XP has created a new network. And you see, that your client and your server got a new IP address. For example : 192.168.0.1 and 192.168.0.2
Then you can send your data (or whatever) through this IP. You can work with your code normally. Your data with automatically encrypted from client to server.
|
|
|
|
|
hi,
I know everything about VPN and so but i want to connect by modem and i dont want my user concern about vpn,internet and so,I want to make connection using modem in my source code and handle everything automaticaly,in fact i have some stupid users and they know nothing about internet or network.
|
|
|
|
|
Then find out how to create a VPN from code
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
It's quite obvious that you don't know how a cable modem works.
You can't use it to "call" another cable modem, or a server for that matter. It will only connect to the cable company service, and supply you with a connection to the Internet. You don't get to tell it where to connect or how. It is mearly a part of the cabling medium that your IP traffic travels over, which your application shouldn't care about at all.
The only way you're going to get a secure connection to your server is to have a VPN tunnel setup between your two networks. How you code builds this tunnel is entirely up to the VPN solution your using. There is no support for this in the .NET Framework.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
hello
i have a server where i make a thread to proccess some data. i a time a send some data to the client and i need a response from him. i received the respons from client in server in event OnReceived, but i don't know how to pass this data to the thread. in fact in the thread i want to make a function byte[] SendAndReceived(Byte[]).
in my opinion in the thread i need a new event ThreadOnReceived() where to pass the event(data) received in server OnReceived(), but i don't know if this is a good ideea, and i don't know how to implement it.
thanks,
Mihai
|
|
|
|
|
Your assumption is correct.
You should either expose an event, or pass a delegate.
delegate void DataReceivedHandler(byte[] data);
void Loop()
{
while(true)
{
if (DataReveived != null)
{
DataReceived(data);
}
}
}
void OnDataReceived(byte[] data)
{
}
void StartLoop()
{
DataReceived = new DataReceivedHandler(OnDataReceived);
Thread.Start(new ThreadStart(Loop));
}
|
|
|
|
|
hai,,,
is there any particular function by which i can directly use unicode in API..
for eg:
StaticObjects.[lIndex] = "बीच की रेखा";
"बीच की रेखा" is language hindi.. but when i run the code, instead of hindi it shows "??????" in those places... how can i solve this...? while debugging it for the first time its showing warning-----
"some unicode charecters in ths file could not be saved in the current code page. Do you want to resave this file as Unicode in order to maintain your data?"
how to solve this
|
|
|
|
|
The .NET Framework is using Unicode.
You need to check:
1) Is your source file actually saved as Unicode (if you can open the file again and the text is fine, it is saved in Unicode). If not, manually save the file with Unicode - Advanced Save Options on the File menu in VS2005)
2) Where are you outputting the text. The Console will NOT run Unicode by default (you can try to mess with the command "chcp").
|
|
|
|
|
hai..
yes the files is saving as unicode only.... i am displaying this in an ordinary form, which is a child form to a main form. i tried in a single form on button click i am able to disply the value. but on formload i am not able to display it.? can u help me out in this... thanks in advance...
Regards
|
|
|
|