|
Now that is posting 2 hrs later just for rep points.
|
|
|
|
|
HI ,
Thank you for your comment, but I have just seen this question.
I am not posting answer for any points in fact I don't even know that How the point system is calculated because I am not an active member to give answer frequently.
Sorry if my answer gives wrong information to anyone . My intention was to provide an answer with multiple ways to achieve the stated thing.
Thanks,
Nilesh
|
|
|
|
|
|
For completeness you could also include the Split/Join technique.
|
|
|
|
|
Hello To All,
I have an Image and I want to print this Image in Ellipse Area.
The Following Code i am using which print the Image of Rectangle Format.
e.Graphics.DrawEllipse(Pens.Red, rect);
e.Graphics.DrawImage(bmp, xlocation, ylocation, bwidth , bheight);
Thanks
Anubhava Dimri
If you can think then I Can.
|
|
|
|
|
See here.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
|
|
|
|
|
thank sir
If you can think then I Can.
|
|
|
|
|
Dear friends
i am having some clarification ..if some one can help me by explaining
1. What is the diffrence and relation ( Localization , Globalization,satellite assembly)
i have read artical about globalization , as my understanding we need to create (Folder for Language and Resource File for each language placed insaide the folder) i understand that .net environment convets thar .resx files as Resource.dll
my problem is
i have text files for each language, that has key value pair and this files need to be convered resource.dll for globalization
(note:my requirement is at any point of time User can go and edit the text file , by executing some command convet those files as resource.dll and these dll used for globalization)
in .net 2005 there is some command like
"D:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\ResGen.exe" "C:\Inetpub\wwwroot\SNIF3.0\SNIF3\Web\SNIF\sniffiles\Config\Query.txt"
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\al.exe /t:lib /embed:"C:\Inetpub\wwwroot\SNIF3.0\SNIF3\Web\SNIF\sniffiles\Config\Query.resources" /out:"C:\Inetpub\wwwroot\SNIF3.0\SNIF3\Web\SNIF\sniffiles\Config\ReflectionCase.resources.dll" /title:"Queries"
How to do this in 3.5?? is this the correct way for my problem??
give me some idea? link?
Thank you
Joe
|
|
|
|
|
=>Joe<= wrote: What is the diffrence and relation ( Localization , Globalization,satellite assembly)
That's a very broad subject, broad enough to make it a distinct specialization. Localization and globalization both point to translation, *and* things like the format of a date and the time, the format of a decimal point, or even different logo's. (Some companies use different logo's/brandnames in different countries)
=>Joe<= wrote: i have text files for each language, that has key value pair and this files need to be convered resource.dll for globalization
Like mentioned above, localization and globalization are more than merely translating the application. There a very cool article on CodeProject (personal opinion btw) on doing the translating automatic; Localize Application using Google Translator[^] - might give you a good starting point
=>Joe<= wrote: (note:my requirement is at any point of time User can go and edit the text file , by executing some command convet those files as resource.dll and these dll used for globalization)
That would require a restart of the application. That's the normal approach btw; no running applications are influenced by changing the regional settings in Windows - if it did, then it would suddenly format a currency-field with value "2" as "2 dollar" where they were formatted as pounds before. Hence, regional settings are read on startup, and not reassigned for as long as the application runs.
=>Joe<= wrote: give me some idea? link?
Start here[^]
I are Troll
|
|
|
|
|
Hi!!
Can anyone tell me if i can use threading in my windows service...
i've 3 module which i want to run concurrently..
will it be easier to run by threads or on timer basis...
|
|
|
|
|
Of course you can use multiple threads inside a Windows Service.
Whether or not you should is something that we can't tell you unless you provide more information.
|
|
|
|
|
You can use threads easily in windows services. But if you can use .net 40 I'd suggest you check the new Task Parallel Library before you decide.
|
|
|
|
|
geo_m wrote: But if you can use .net 40 I'd suggest you check the new Task Parallel Library before you decide.
.net 40? I want your time machine.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
heh, too many dots - .net 4.0 is exact. We're used here to write it in this short manner .net20, .net30, .net35, .net40. I use it so often - googling, referencing, also can be found in some original microsoft comments so I didn't even realize that it's a way too ahead in time
|
|
|
|
|
You're actually expected to use threads in a service.
IMHO, using a timer to hold up your service is just an excuse to not learn threading. Too many schmucks try to use a timer to do something that it's not designed to do and doesn't fit the problem they're trying to solve.
|
|
|
|
|
I am developing a small image editing program and the output is in a compress tiff file.my program runs well in my workstation which is win7 but when i try to run my program in winXP,it throws an exception "paramater is not valid".the exception is caused by my compression that am using,which is CCITT4.is there any other way to make CCITT4 work in winXP? thanks a million guys...
|
|
|
|
|
The symptoms suggest that you're using a call to a library that is more recent than those included in WinXP. Did you write the compression routine yourself, or use a third party tool? IIRC, WinXP shipped with the .Net Framework 2.0, and since you're developing on a Win7 machine you have at least the 3.5 version installed. You might try installing the .Net Framework 3.5 package on your WinXP machine before rewriting everything.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
i've already installed vs2008 in winXP.I believe that .Net framework 3.5 is already included in vs2008. and the CCITT4 compression is included in vs2008. so I don't have to use a third party software or dll.is there anyway i can make the compression in winXP...thanks...
|
|
|
|
|
You're correct - VS2008 does install the 3.5 Framework. I can't think of any other reason that the routine would fail in XP but work in Win7, especially if the same tool is installed on both. I haven't worked with CCITT4, so I have no personal experience to offer. Hopefully someone more helpful will come along soon; good luck!
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
thank you very much man...
|
|
|
|
|
Check out CCodecList[^]
Most likely the codec is not installed. The above code shows how to list the codecs installed on a machine.
|
|
|
|
|
Hi everyone!
when i run the programs of server and client, they both run and also show the acknowledgement like
>>Server Started!
>>Client No:1 started!
>>From client-1Message from Client
>>Server to client<1>1
and so on for client 2, 3 ...
but i want communication like if i type some text and then it display that text!!!
I am using visual 2010...
multithread Server program is
using System;
using System.Threading;
using System.Net.Sockets;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
TcpListener serverSocket = new TcpListener(8888);
TcpClient clientSocket = default(TcpClient);
int counter = 0;
serverSocket.Start();
Console.WriteLine(" >> " + "Server Started");
counter = 0;
while (true)
{
counter += 1;
clientSocket = serverSocket.AcceptTcpClient();
Console.WriteLine(" >> " + "Client No:" + Convert.ToString(counter) + " started!");
handleClinet client = new handleClinet();
client.startClient(clientSocket, Convert.ToString(counter));
}
clientSocket.Close();
serverSocket.Stop();
Console.WriteLine(" >> " + "exit");
Console.ReadLine();
}
}
public class handleClinet
{
TcpClient clientSocket;
string clNo;
public void startClient(TcpClient inClientSocket, string clineNo)
{
this.clientSocket = inClientSocket;
this.clNo = clineNo;
Thread ctThread = new Thread(doChat);
ctThread.Start();
}
private void doChat()
{
int requestCount = 0;
byte[] bytesFrom = new byte[10025];
string dataFromClient = null;
Byte[] sendBytes = null;
string serverResponse = null;
string rCount = null;
requestCount = 0;
while ((true))
{
try
{
requestCount = requestCount + 1;
NetworkStream networkStream = clientSocket.GetStream();
networkStream.Read(bytesFrom, 0, (int)clientSocket.ReceiveBufferSize);
dataFromClient = System.Text.Encoding.ASCII.GetString(bytesFrom);
dataFromClient = dataFromClient.Substring(0, dataFromClient.IndexOf("$"));
Console.WriteLine(" >> " + "From client-" + clNo + dataFromClient);
rCount = Convert.ToString(requestCount);
serverResponse = "Server to clinet(" + clNo + ") " + rCount;
sendBytes = Encoding.ASCII.GetBytes(serverResponse);
networkStream.Write(sendBytes, 0, sendBytes.Length);
networkStream.Flush();
Console.WriteLine(" >> " + serverResponse);
}
catch (Exception ex)
{
Console.WriteLine(" >> " + ex.ToString());
}
}
}
}
}
the Client program is
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Net.Sockets;
namespace client
{
public partial class Form1 : Form
{
System.Net.Sockets.TcpClient clientSocket = new System.Net.Sockets.TcpClient();
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
msg("Client Started");
clientSocket.Connect("127.0.0.1", 8888);
label1.Text = "Client Socket Program - Server Connected ...";
NetworkStream serverStream = clientSocket.GetStream();
byte[] outStream = System.Text.Encoding.ASCII.GetBytes("Message from Client$");
serverStream.Write(outStream, 0, outStream.Length);
serverStream.Flush();
byte[] inStream = new byte[10025];
serverStream.Read(inStream, 0, (int)clientSocket.ReceiveBufferSize);
string returndata = System.Text.Encoding.ASCII.GetString(inStream);
msg("Data from Server : " + returndata);
}
public void msg(string mesg)
{
textBox1.Text = textBox1.Text + Environment.NewLine + " >> " + mesg;
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
}
}
Plzzzzz guide me.........
Regards
|
|
|
|
|
yum 2010 wrote: but i want communication like if i type some text and then it display that text!!!
You mean when you press "A", that the other side immediately receives that character and displays it?
yum 2010 wrote: Plzzzzz guide me
Guiding someone trough a forest is a level beyond pointing the right direction
I are Troll
|
|
|
|
|
Eddy Vluggen wrote: You mean when you press "A", that the other side immediately receives that character and displays it?
yeah!!
|
|
|
|
|
Then send a message whenever a key is pressed
You're already sending messages, I guess you can adapt it to send a message on every keystroke.
I are Troll
|
|
|
|