|
what`s wrong with this?
i got an error.
Error 1 Missing partial modifier on declaration of type 'Chat.chatc'; another partial declaration of this type exists
namespace Chat
{
//public partial class chatc : Form
class chatc
{
private static Form myForm;
static Sys.Sockets.TcpClient myTCP;
[DllImport("kernel32.dll")]
private static extern void ExitProcess(int a);
public static void Main()
{
thanks.
to know everything is to know yourself...
|
|
|
|
|
chatc is a form, and therefore the framework creates two files for it, one that contains the designer stuff and one for your code. You commented out the class definition and inserted your own ( which contains an instance of Form for some unknown reason ), but the other class still exists, and so that is the reason for the error. You have two files that reference the class chatc, and only one says it's a partial class.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
thanks so much. i resolve that error. i forgot that i comment out that one. but after i compile another error appear.
Error 2 Program 'C:\Documents and Settings\...\obj\Debug\Chat_client.exe' has more than one entry point defined: 'Chat.chatc.Main()'
i just
namespace Chat
{
public partial class chatc : Form
// class chatc
{
private static Form myForm;
static Sys.Sockets.TcpClient myTCP;
[DllImport("kernel32.dll")]
private static extern void ExitProcess(int a);
public static void Main()
to know everything is to know yourself...
|
|
|
|
|
C#Coudou wrote: public static void Main()
I means that you have more than one of these.
|
|
|
|
|
|
|
Hello
I want to send folder to multiple users at a single time within a network.
Reply me.
Thanks
Devesh Mishra
|
|
|
|
|
Are you intending to look at on-the-fly zip-and-email?
|
|
|
|
|
No no sir. I am saying about only folder, not about the email.
C, i can send folder using 2 ways..Either using Zip folder or without zip. So which one will be much more efficient and how can i follow that ??
Thanks
Devesh Mishra
|
|
|
|
|
It depends on the number of files in the folder, and the network speed. Also, if the files are all compressed (jpgs for example ), they won't get any smaller, so you get no speed advantange, but you pay the time cost of compressing into a zip still.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
So according to you which option i have to follow.
1. using Zip
2. Without Zip
And also tell me how can i follow these option to get my target ....
Thanks
Devesh Mishra
|
|
|
|
|
Like I said, it really depends on what sort of files you want to send.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
This is going in circles. And I'm sure we had a similar discussion yesterday.
How do you mean "send folder"? What do you mean by that?
In a zip you are sending a file? But you have not explained adequately what you mean by that either.
You also say you want to sent it to "users". But you can't "send a folder" to a user. You can only copy or move a folder into another folder.
|
|
|
|
|
Sir,
I want to send folder by any means(Zip or without Zip). Not talking about the files.
Thanks
Devesh Mishra
|
|
|
|
|
devesh_code wrote: I want to send folder by any means(Zip or without Zip). Not talking about the files.
Stop repeating the same thing. It is obvious that people don't understand enough what you are asking. Try asking in a different way. Try explaining what you mean.
Try giving us the Big Picture. What is the overall scenario? Don't just give a little bit of the scenario because often you will find that there are some extremely intelligent people here that will be able to tell you a much more efficient way of completing the overall task rather than a small part of it.
|
|
|
|
|
are u talking about sending a folder containing files (Duh) across the network to many users on the LAN?
|
|
|
|
|
Don't ask me. As the original poster!
|
|
|
|
|
Watching this thread from outside is very funny. (Of course it's not your fault)
Looking forward for some more episodes!
|
|
|
|
|
Then all you need to do is send the name of the folder, and create it on the new machine. An empty folder cannot be sent, except in a zip, and it's a dumb thing to do.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi
If we send the name of the folder and create it on the new machine, then it'll be typical in case of folders inside a folder. Because i don't know the number of folders insisde a single folder.
By the way, I don't want to send empty folder. i want to send a folder and the folder must contain few files and few more folders.
Thanks
Devesh Mishra
|
|
|
|
|
what is the use of sending an empty folder ??
|
|
|
|
|
I have a user control in the form.
I have written some code in menu click event in the form class.
When I click a button in the user control, the same thing should happen as I clicked a menu item.
How can I make this event to happen from the user control class, like "SendMessage" is used in VC++...
|
|
|
|
|
Use a delegate to send a message back to the parent form, then hook up the menu event to call the same method.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello,
You should work with delegates here.
Your form could handle a userevent from your UserControl.
All the best,
Martin
|
|
|
|
|
hi..
code to convert multiple .jpg file to byte[] in c#.net
|
|
|
|