|
I know how to use the system calls an prepare the msg queues then send or receive it but the problem with me is how to Authenticate a user in a previously stored database let say " txt file " ... I tried to make two threads the 1st writ a message and the second receive it ..
|
|
|
|
|
ralph 2 wrote: I did .. thanx
Did you actually understand points 1, 2 and 11?
ralph 2 wrote: I noticed that you r guys just Criticize not actually giving help
This is not true at all. If you take the time to read these forums you will see that the great majority of answers are examples of help being offered. However, we expect people to do their own work not just post a general question asking someone else to do it for them. We are especially not going to write school/college/university projects so other people can get fraudulent qualifications.
It's time for a new signature.
|
|
|
|
|
Richard : I didn't mean the forum or the other guys really i amazed by how much they r helpful .. I'm talking about the replies I received from u guys .. I'm doing my best believe me .. but this material we didn't cover in the class So i have no idea how to start .. i did my own research and without benefit .. you don't even know how hard was this semester for me especially in the " SP " course ... I'm not trying to get fraudulent qualifications I'm just trying to solve my project which has almost 1/3 from the overall mark ... sorry for bothering and than for the help
|
|
|
|
|
ralph 2 wrote: I'm talking about the replies I received from u guys
All the replies are trying to educate you as to how you should use the forum: don't cross post, don't demand code, etc.
This is what you wrote in your original question:
ralph 2 wrote: ALL communications between client and server should use message queues techniques ...and i want it in c language ... Can u help me with the code
which suggests that you are expecting someone to write the code you need and post it here, which is not what we do. You are expected to do your own research (I posted you a link with some samples of message queue processing) and try and write your own program. Then when you get to a stage where your code does not produce the results you expect you can ask for help, as long as you demonstrate that you have at least tried to do your own work. You may be surprised at how much help people will give to such questions.
It's time for a new signature.
|
|
|
|
|
OK then ... I gonna deliver my code in the stage where i'm so far .. as it is so i don't need your help .. Really u made a big deal out of nothing .. sorry anyway and be sure because of u & your atitude this is my last visit to the site or at least i will read just not asking for any help ..
|
|
|
|
|
ralph 2 wrote: Really u made a big deal out of nothing
On the contrary it was you who made the big deal instead of listening to what people were telling you and accepting some useful advice. I think you may find your attitude needs to change before you try to make a living in the real world.
It's time for a new signature.
|
|
|
|
|
As I said before from this moment I will be listening here not asking any questions ..
|
|
|
|
|
|
???
It's time for a new signature.
|
|
|
|
|
I have made a program that reads its own kind of file, which is written in plain text. When I run the program and select to open the file, it reads it perfectly, but how do I make it that when I double click on a file of this type it opens with my program? I have edited the registry and set it as default, but when I double click the file it runs the program with nothing there, the file hasn't loaded. Is there some code I should put into the program to allow it to open the file?
If you're reading this, you're reading my signature - actually, no joke
|
|
|
|
|
|
in addition to what sauro told, very simply, the extern variables __argc and __argv can do the role anywhere in your program.
|
|
|
|
|
I'm not using MFC, can I still use __argc and __argv and if so how do i implement them?
|
|
|
|
|
__argc is an integer variable holding the count of commandline arguments. __argv is pointer to two dimensional character array of comand line strings.
first argument __argv[0]
second argument __argv[1]
last argument __argv[__argc-1]
alternatively you can use GetCommandLine API also
If your registry settings for file association are correct, you will be getting the file path as a commandline argument to your application.
modified on Friday, July 30, 2010 9:24 AM
|
|
|
|
|
Assuming this is a Windows program then the command line parameters are passed in the third parameter of the WinMain() function. This is a simple text string which you need to parse for the specific details your program needs.
It's time for a new signature.
|
|
|
|
|
mmagill0 wrote: I have edited the registry and set it as default, but when I double click the file it runs the program with nothing there...
Did you put %1 in your registry string?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Hi!
I've to insert a value to a column in a particular data base tabel on a Button Click Event. I write the following statement to execute this:
SQLdb.Query("INSERT INTO Current(TeamID) values('countryId')");
countryId is an int value. I've printed and verified it. But when the click event happens and if I open the database and check for the corresponding column, only "countryId" is present(variable's name not the variable value as I expect). If I give countryId without single quotes in the statement also the result is the same. What to do to store the variable's value in to the database?
|
|
|
|
|
You need to first format the string before calling the function.
CString cs;
cs.Format(_T("INSERT INTO Current(TeamID) values(%d)"), countryId); Now you can pass cs into the function.
|
|
|
|
|
Hi!
CString is MFC class. I can't use MFC for this project. Can I use Format()
for std::string s also? Can you please tell me the difference between Format()
for MFC and Format() for std::string if any?
|
|
|
|
|
CString is a common class for MFC and ATL.
You can use it by including atlstr.h .
There is no Format for std::string .
You will either have to use boost::format or sprintf .
char query[512];
sprintf_s(query, 512, "INSERT INTO Current(TeamID) values(%d)", countryId);
|
|
|
|
|
Or you can also use a std:stringstream to format the string properly. Check this article[^] for more info.
|
|
|
|
|
Hi all,
i m using access database,with ODBC Connection,and i m using CRecordset class here.
i want to insert the image file in Access database please tell me how can i do this.
thanks in advance.
|
|
|
|
|
(Could not find a more appropriate location for this question.)
We are looking to use WiX as our installer creator as it is so powerful, and not that hard to learn/use. But, it does not automatically find dependencies, whereas the VS installer automatically adds in standard merge modules. Is there any tool we can use to locate dependent merge modules such as Microsoft.VC80.MFC ?
|
|
|
|
|
You can use the Dependency Walker, which is provided with Visual Studio. To run it open a Visual Studio Command Prompt and execute depends.exe : the Dependency Walker lets you open an executable file and give you informations about dependencies and imported and exported symbols.
|
|
|
|
|
Thank you. Unfortunately it only tells us the DLLs. What we really would like to know is the merge modules. We can of course go through the DLLs, and locate the matching merge modules, but that is fairly time consuming.
|
|
|
|