|
Hi,
I have develop Chat application like gtalk, Some one help me, how start and develop.
Thanks for reading..
|
|
|
|
|
You can start by searching CodeProject, where you'll find many resources.
As you design your application, and start to write code, you can ask specific questions here, or on the QA forums, and many people will be glad to help you ... if ... you take the time to write your questions clearly, specify what you are doing, and give details about the problems you are having.
"What Turing gave us for the first time (and without Turing you just couldn't do any of this) is he gave us a way of thinking about and taking seriously and thinking in a disciplined way about phenomena that have, as I like to say, trillions of moving parts.
Until the late 20th century, nobody knew how to take seriously a machine with a trillion moving parts. It's just mind-boggling." Daniel C. Dennett
|
|
|
|
|
|
You might want to look at a number of samples available on the internet.
|
|
|
|
|
The program of conversion
1. Binary to decimal
2. Decimal to binary
3. Hex decimal to decimal
4. Decimal to hex decimal
5. Octal to decimal
6. Decimal to octal
Means at the user's request, for example, the introduction of No. 4
Convert from Decimal to hex decimal
Thus, the rest of the options, preferably without work ARRAYS
|
|
|
|
|
A little reading of the .NET number classes would show you how to solve this quite easily.
Veni, vidi, abiit domum
|
|
|
|
|
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.
Try it yourself, you may find it is not as difficult as you think!
|
|
|
|
|
Some of these conversions are supported by the framework classes.
However, assuming this is homework, you need to implement these using some logic.
Look at the algorithms for these conversions and then implement them in your code.
|
|
|
|
|
That is a process called "base conversion", to give you something to google for.
|
|
|
|
|
|
Hi could someone please help me fix this simple program of mine. I'm trying to explore c# and i really want to learn so please bear with me and help me.
What I want to do is that from the method getDrawer it will ask the user to input the number of drawers you want, then it will pass the answer to the Main() My code below has an error please help me fix this. Thank you very much. Here is my code so far:
using System;
public class DesksP
{
int Main()
{
int drawerValue;
int drawerA = getDrawer(drawerValue);
Console.WriteLine("The number of drawers is/ are:{0}", drawerA);
}
private static int getDrawer(int drawerValue)
{
Console.WriteLine("Enter number of drawers: ");
drawerValue = Convert.ToInt16((Console.ReadLine()));
return drawerValue;
}
}
|
|
|
|
|
int drawerValue;
This line needs to come before the declaration of main , so it is accessible in both methods. It, and main , also need to be made static , the same as getDrawer . I would suggest reading .NET Book Zero by Charles Petzold[^] for a very comprehensive introduction to .NET and C#.
Veni, vidi, abiit domum
|
|
|
|
|
As Richard says, Main needs to be static or it won't be executed.
But...you never assign a value to drawerValue in a Main method, so the compiler will complain when you try to pass it to the getDrawer method - but when you get into getDrawer, you don't use any existing value anyway! And you are trying to convert to a 16 bit integer, and return a 32 - this isn't a major problem, but just use int throughout.
So...try this:
public class DesksP
{
int Main()
{
int drawerA = getDrawer();
Console.WriteLine("The number of drawers is/ are:{0}", drawerA);
}
private static int getDrawer()
{
Console.WriteLine("Enter number of drawers: ");
return Convert.ToInt32((Console.ReadLine()));
}
}
Though I would suggest that you might be better off looking at int.TryParse[^] to do the conversion, as it allows you to check if the user typed "Hello" instead of "107" and tell him off!
int value;
Console.WriteLine("Enter number of drawers: ");
while (!int.TryParse(Console.ReadLine(), out value))
{
Console.WriteLine("Please enter a number!");
}
return value;
|
|
|
|
|
Hi I tried this code below but it shows an error "not all code paths return a value". Please check what's wrong in it thanks
public class DesksP
{
int Main()
{
int drawerA = getDrawer();
Console.WriteLine("The number of drawers is/ are:{0}", drawerA);
}
private static int getDrawer()
{
Console.WriteLine("Enter number of drawers: ");
return Convert.ToInt32((Console.ReadLine()));
}
}
|
|
|
|
|
Your Main() method needs to return a value since you've declared that it does.
/ravi
|
|
|
|
|
public class DesksP
{
static int Main()
{
int drawerA = getDrawer();
Console.WriteLine("The number of drawers is/ are:{0}", drawerA);
return 0;
}
private static int getDrawer()
{
Console.WriteLine("Enter number of drawers: ");
return Convert.ToInt32((Console.ReadLine()));
}
}
|
|
|
|
|
How to use downloaded .wav audio sample voice for text to speech (speechlib)?
SpVoice voice = new SpVoice();
voice.Voice = voice.GetVoices("name = Microsoft Anna"); => The voice want to change from .wav file but not microsoft anna
voice.Speak(Label1.text, SpeechVoiceSpeakFlags.SVSFlagsAsync);
Thanks.
|
|
|
|
|
Are you asking how to use a downlaoded .wav file as the new "voice sample" for a text-to-speech operation?? You don't like "Anna" so you want to replace her with a new sampled voice?
|
|
|
|
|
Yes. I have downloaded .wav voice sample but no idea of how to use it with speechlib.
|
|
|
|
|
You can't. You cannot change the voice just by using a WAV file. You don't have the ability to create new voices either in the SpeechLib DLL.
|
|
|
|
|
So, means only have the choice to use microsoft anna etc? Is it means that visual studio text to speech voice only can use microsoft anna etc? Thanks.
|
|
|
|
|
Yes, unless you install extra voices. If you enumerate the voices using the speech engine, you'll see what is already installed.
Is there any particular reasons you're using SpeechLib directly and not the classes found in the System.Speech namespace in .NET?? That makes it much easier to use. For example, Text to Speech[^].
|
|
|
|
|
But the problem is if i install extra microsoft voice on my laptop, it is also not working for those people do not have the voices on their laptop, means that they also have to install themselves?
|
|
|
|
|
If you wanted to use a specific voice all the time, yes, they would have to install the same voice package.
The link I gave also shows how to pick a voice without specifying the exact voice to use.
|
|
|
|
|
Ok, thanks for your explanation. I think I also have to downloaded voice package as my laptop oni have microsoft anna. It is difficult as I also nid male voice. Thus, others people who use the system oso nid to download voice package in order to use male voice.
|
|
|
|