Forum: C# Jan 10th, 2009 |
| Replies: 2 Views: 1,910 Hi everyone,
I'm doing an hotel application which has an introduction form. In that form I put a RichTextBox control and a menu toolstrip. I want to load a rtf file to richtextbox when the toolstrip... |
Forum: C Sep 17th, 2008 |
| Replies: 7 Views: 1,067 Well... Thanks for help from you all. I will try select(). I'm quite new to this p2p concept, that's why I got confused with server and client. |
Forum: C Sep 16th, 2008 |
| Replies: 7 Views: 1,067 Yes...I understand what you all say, but the thing I'm not very clear is, how they decide who will be server and who will be client. Like the server-client version, the server must do SOCKET,BIND,... |
Forum: C Sep 16th, 2008 |
| Replies: 7 Views: 1,067 Hi, everyone!
I'm doing a p2p streaming project. This project is actually about : the server and client will connect first (socket created), after connect then client will receive the IP address of... |
Forum: C Sep 8th, 2008 |
| Replies: 1 Views: 663 Hello everyone,
I don't know what is the exact name to call this, so I call based on what I want to do in my program. Its operation got something similar to chat server and client.
I have server... |
Forum: C Aug 31st, 2008 |
| Replies: 9 Views: 724 I copy those lines :
char sQuery[1000];
printf("msyql>");
fgets(sQuery, sizeof sQuery, stdin);
printf("%s", sQuery); //to see if fgets() works
to another text editor.... |
Forum: C Aug 31st, 2008 |
| Replies: 9 Views: 724 Er...I have one problem with mysql database. Hope you can guide me, Salem.
if (mysql_query(conn, "show tables")) {
fprintf(stderr, "%s\n", mysql_error(conn));
exit(1);
}
The... |
Forum: C Aug 30th, 2008 |
| Replies: 9 Views: 724 Ok. I know my mistakes in those 2 calls now (I always use like this, thank you for correcting). But your question about the opt_host_name, where is the pointer pointing, I want to ask another... |
Forum: C Aug 30th, 2008 |
| Replies: 9 Views: 724 Ok. I know my mistakes in those 2 calls now (I always use like this, thank you for correcting). But your question about the opt_host_name, where is the pointer pointing, I want to ask another... |
Forum: C Aug 30th, 2008 |
| Replies: 9 Views: 724 Hi, everyone!
I want to make the user authentication for mysql database. I write the code and test it, but can't run. Let's I talk about my project idea first.
I have a server, a client and a mysql... |
Forum: C# Aug 29th, 2008 |
| Replies: 4 Views: 1,182 i wan to insert data in a dab audio frame... example: i got a frame 480bytes... then i will increase the frame size to 576 bytes... and i need to insert 96 bytes of data that 1 wan...
so how to... |
Forum: C# Aug 29th, 2008 |
| Replies: 4 Views: 1,182 how to insert data like dynamic label... |
Forum: C# Aug 28th, 2008 |
| Replies: 2 Views: 1,016 using System;
using System.Collections.Generic;
using System.Text;
namespace EnsembleAnalyzer
{
/// <summary>
/// Tool to calculate and add CRC codes to a string
///
///... |
Forum: C# Aug 5th, 2008 |
| Replies: 8 Views: 769 Thanks for the reply now the problem is that i dont know where to add this code String)patientspastillnessComboBox.Items[INDEX_NUM]; // INDEX_NUM: 0 ~ n(existed item number) |
Forum: C# Aug 5th, 2008 |
| Replies: 8 Views: 769 The parameters declare are strings, but those are all combobox and I want to pass all the content of combobox into the method. So now what should I do? |
Forum: C# Aug 5th, 2008 |
| Replies: 8 Views: 769 Thank you for your reply.
I still got error can't overload the method.
consu.UpdateConsultationDetail(consultationidTextBox.Text, consultationdateTextBox.Text,... |
Forum: C# Aug 4th, 2008 |
| Replies: 8 Views: 769 Hello all,
I have overloading method problem with my miniproject. The code is below :
patients.UpdatePatientsDetail(patientsidTextBox.Text, patientsnameLabel1.Text);
Error is : no overload... |
Forum: C++ Jul 27th, 2008 |
| Replies: 6 Views: 1,005 Ok..Thank for your instruction. However, still one more thing, can you let me know the reason why, the client do not always receive full of messages from the server? (I need the messages come out in... |
Forum: C++ Jul 27th, 2008 |
| Replies: 6 Views: 1,005 Also, I can't get you at this point :
send(new_fd, "Menu\n", 5, 0)
0, 1, 2, 3, 4 are also valid return results. You can't just assume that if it wasn't an error (-1), that the only other possible... |
Forum: C++ Jul 27th, 2008 |
| Replies: 6 Views: 1,005 Ok...I show you the full code of client.
#define PORT 3490 // the port client will be connecting to
#define MAXDATASIZE 100 // max number of bytes we can get at once
int main(int argc,... |
Forum: C++ Jul 27th, 2008 |
| Replies: 6 Views: 1,005 Hi everyone!
I'm doing my project related to socket programming. The send and receive part I got problem.
The code is below :
Server side:
printf("Handling client... |
Forum: C++ Jul 22nd, 2008 |
| Replies: 6 Views: 4,268 Ok, I'll try this. If any problem I'll ask again. Hope you not feel annoyed.:)
Now I have another part need to solve. Sorry for this, just because my project requires quite a lot of parts.
This... |
Forum: C++ Jul 21st, 2008 |
| Replies: 6 Views: 4,268 Ok. Thank for your link. But I got error while compiling the example program :
In function `main':
extProg.cpp:(.text+0x147): undefined reference to... |
Forum: C++ Jul 21st, 2008 |
| Replies: 6 Views: 4,268 Ah, I forgot to write this ( will be clearer). The external program is also in C++ (.cpp). I want to call it from a parent C++ file. |
Forum: C++ Jul 21st, 2008 |
| Replies: 6 Views: 4,268 Hi everyone!
I want to call a child program from my parent program. Are there any methods to do this in C++ (platform is Linux)? I searched Google but the material found quite difficult to... |
Forum: C++ Jul 21st, 2008 |
| Replies: 7 Views: 1,261 I has just changed positions of codes and add some lines, it works now. Thank Salem for your advice. |
Forum: C++ Jul 20th, 2008 |
| Replies: 7 Views: 1,261 @Salem : yes, I use the "char* inputFileName=argv[1] " as the variable to read the user input.
Is it the error caused by this variable? |
Forum: C++ Jul 20th, 2008 |
| Replies: 7 Views: 1,261 The code is the same to my code editor. This is the code that I modified from another code. The original one works well, but can play only the file which has the name defined in the code. If I want... |
Forum: C++ Jul 20th, 2008 |
| Replies: 7 Views: 1,261 Hmm...only 1 argument. I thought I typed wrong here. So how can I correct the message "Segmentation fault (core dumped)"? |
Forum: C++ Jul 19th, 2008 |
| Replies: 7 Views: 1,261 Hi, everyone!
I thought I posted the code first, it's better. This is the code of the program I've worked with :
#include "liveMedia.hh"
#include "BasicUsageEnvironment.hh"
#include <stdio.h>
... |