|
Paulraj G wrote: I have added the library name in project setting.
You should:
- Add the
.lib files as linker input (additional dependecies). - Make
Visual Studio aware of the folder(s) wherein such library files are (add the folders in the VC++ directories list). - Include the appropriate headers in your source files.
Paulraj G wrote: but the library files are not working...
What (the fresh hell) does it mean? Could you, please, be more specific?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
tsk tsk, you don't know what "files not working" mean? It means, of course, they are playing cards or drinking cooffe insteads of answering the calls of the process and doing their job. Imagine it... they are so lazy that don't even give any error message.
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Those library files, always reading books when they should be working...
|
|
|
|
|
Hi...
Thanks for both of your reply.
M.D.V.,
I am not that kind of person. Due to some network problem, Internet connection was cancelled. thats why the delay...
Sorry for the trouble...
G.Paulraj
|
|
|
|
|
What kind of person?
For what I understood, he wrote about lazy libraries...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Mmmm... so?
I gave you an answer to your question and then I made a joke with the start point of one CPallini's comment (please pay attention to the "tree design" to see which message hangs on which other message and on the icons of "message type"). I never said anything about you.
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
in grosso modo:
Once per library:
1) Install the library. Unzip it to a directory or install it via a package manager.
2) Tell the compiler where to look for the header file(s) for the library.
3) Tell the linker where to look for the library file(s) for the library.
Once per project:
5) Tell the linker which static or import library files to link.
6) #include the library's header file(s) in your program.
7) Make sure the program know where to find any dynamic libraries being used.
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Hello Sirs,
How to find the compression type of jpeg, when we give one sample input jpeg file the output result is this image contains (ex.) xxxx compression type. How to identify it .?
please replay
Failure is Success If we learn from it!!
|
|
|
|
|
Game-point wrote: How to find the compression type of jpeg, when we give one sample input jpeg file the output result is this image contains (ex.) xxxx compression type.
JPEG images use JPEG Compression. May be you should hardcode the output?
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
Hello all,
I am trying to figure out how to make an adaptive program, which asks questions and if you get it wrong, it will ask you another question in that area.
I know this will utilize arrays but I am just asking for some guidence on if I should use looping statements or write the whole thing out.
Thoughts on where to start?
"EDIT: The source is on the 9'th reply to this thread. Please read it to help me out."
V/R
Rob
modified on Thursday, January 28, 2010 10:25 AM
|
|
|
|
|
|
thank you very much, I am reading that now.
Now I have a question. I have the program ask the question
"What is the answer to this queston?"
It then reads the users input, and checks if the answer was correct. If the answer was correct, it will continue. The problem it reads the user input and checks it with the answer, the program exits. I think the problem is its not clearing the user input for the next question.
|
|
|
|
|
It would help if you can post the relevant portion of your code.
|
|
|
|
|
here you go:
chapterone:
system("cls");
cout << "Fill in the blank." << endl;
cout << "Loosely defined, a ____ is a group of computers and other devices (such as printers) that are connected by some type of transmission media." << endl;
cout << "A.)Network " " B.)Router " " C.)Switch " " D.)Internet " << endl;
cin >> userinput ;
if (userinput == B,b,C,c,D,d)
cout << "Sorry, that was a wrong answer." << endl;
else
cout << "Congradulations, your answer is correct!" << endl;
system("cls");
cout << "Fill in the blank." << endl;
cout << "Loosely defined, a ____ is a group of computers and other devices (such as printers) that are connected by some type of transmission media." << endl;
cout << "A.)Network " " B.)Router " " C.)Switch " " D.)Internet " << endl;
cin >> userinput ;
|
|
|
|
|
What is the data type of userinput .
rbwest86 wrote: if (userinput == B,b,C,c,D,d)
This statement is wrong.
It should be -
if (userinput == B || userinput == b || userinput == C || userinput == c || userinput == D || userinput == d)
|
|
|
|
|
thank you for helping me with a lot of my syntax problems. I am still learning C++ obviously.
Now another question I have is how to limit the users input to just A-D. If you put in 0 the program buggs out.
So how can I implement more controls in my program?
A separate note is how to make the program progress correctly. If you get it wrong, I need it to count the questions wrong along with the correct questions and display the results at the end. Do I need to associate userinput with correct and wrong strings?
|
|
|
|
|
|
K I just got done reading that power point file you sent me.
Now after reading it I think I need to "flush" the stream?
so I should include a cin.clear() ?
Im a little confused. Because I need to store the amount of correct answers, and the amount of incorrect answers. I will mess with it more in the morning.
|
|
|
|
|
Ok, this is what I have so far:
#include <iostream>
#include <string>
using namespace std;
int main()
{
int userinput;
int inputcounter = -1;
int correctanswer;
int wronganswer;
int choice;
int A,a,B,b,C,c,D,d;
cout << "Roberts Network+ Test Questions" << endl;
cout << endl;
cout << endl;
cout << "Please Select a Chapter:" << endl;
cout << "Chapter One = 1" << endl;
cout << "Chapter Two = 2" << endl;
cout << "Chapter Three = 3" << endl;
cout << "Chapter Four = 4" << endl;
cout << "Chapter Five = 5" << endl;
cout << "Chapter Six = 6" << endl;
cout << "Chapter Seven = 7" << endl;
cout << "Chapter Eight = 8" << endl;
cout << "Chapter Nine = 9" << endl;
cout << "Chapter Ten = 10" << endl;
cout << "Chapter Eleven = 11" << endl;
cout << "Chapter Twelve = 12" << endl;
cout << "Chapter Thirteen = 13" << endl;
cout << "Chapter Fourteen = 14" << endl;
cout << "Chapter Fifteen = 15" << endl;
cout << endl;
cin >> choice;
switch (choice)
{
case 1: goto chapterone;
break;
case 2: goto chaptertwo;
break;
case 3: goto chapterthree;
break;
case 4: goto chapterfour;
break;
case 5: goto chapterfive;
break;
case 6: goto chaptersix;
break;
case 7: goto chapterseven;
break;
case 8: goto chaptereight;
break;
case 9: goto chapternine;
break;
case 10: goto chapterten;
break;
case 11: goto chaptereleven;
break;
case 12: goto chaptertwelve;
break;
case 13: goto chapterthirteen;
break;
case 14: goto chapterfourteen;
break;
case 15: goto chapterfifteen;
break;
default: cout << "Error, invalid entry." << endl;
}
while (inputcounter <= 20)
{
chapterone:
system("cls");
cout << "Fill in the blank." << endl;
cout << "Loosely defined, a ____ is a group of computers and other devices (such as printers) that are connected by some type of transmission media." << endl;
cout << "A.)Network " " B.)Router " " C.)Switch " " D.)Internet " << endl;
cin >> userinput, inputcounter ;
++inputcounter ;
if (userinput == B || userinput == b || userinput == C || userinput == c || userinput == D || userinput == d)
{
cout << "Sorry, that was a wrong answer." << endl;
++wronganswer ;
}
else
{
cout << "Congradulations, your answer is correct!" << endl;
++correctanswer ;
}
system("cls");
cout << "Fill in the blank." << endl;
cout << "Loosely defined, a ____ is a group of computers and other devices (such as printers) that are connected by some type of transmission media." << endl;
cout << "A.)Network " " B.)Router " " C.)Switch " " D.)Internet " << endl;
cin >> userinput, inputcounter ;
++inputcounter ;
if (userinput == B || userinput == b || userinput == C || userinput == c || userinput == D || userinput == d)
{
cout << "Sorry, that was a wrong answer." << endl;
++wronganswer ;
}
else
{
cout << "Congradulations, your answer is correct!" << endl;
++correctanswer ;
}
system("cls");
}
chaptertwo:
chapterthree:
chapterfour:
chapterfive:
chaptersix:
chapterseven:
chaptereight:
chapternine:
chapterten:
chaptereleven:
chaptertwelve:
chapterthirteen:
chapterfourteen:
chapterfifteen:
cout << "Your score is " << (correctanswer - wronganswer);
return 0;
}
So after reading my source, what are some of the multiple problems I have so far? Please keep in mind that I am trying my hardest to make sense of things and looking online for every possible resource I can.
Thank you in advance.
V/R
Rob
|
|
|
|
|
I am working on a ISAPI filter. I need some information that user entered on a web page. I tried to process SF_NOTIFY_PREPROC_HEADERS, SF_NOTIFY_READ_RAW_DATA and SF_NOTIFY_URL_MAP events, and was only able to get the full header.
How can I get the whole contents of the request, including form, fields and their values?
I'll very much appreciate your help.
Jack
|
|
|
|
|
I'm trying to convert some old code that is using 'calloc' to use 'new' but I'm having a little trouble with this:
void (**temp_stack)(void);
temp_stack=(void (**)())calloc(count+1,sizeof(void *));
I tried using this:
void (**temp_stack)(void);
temp_stack=new (void*[count+1]);
but get the following error:
error C2440: '=' : cannot convert from 'void ** ' to 'void (__cdecl ** )(void)'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Can anyone help me figure it out?
Thanks,
George
George
|
|
|
|
|
void (**temp_stack)(void);
temp_stack=(void (**)())calloc(count+1,sizeof(void *));
that doesn't even compile in VC6.
|
|
|
|
|
Chris Losinger wrote: that doesn't even compile in VC6.
It does in VC2010. What is the error message you got?
|
|
|
|
|
error C2563: mismatch in formal parameter list
|
|
|
|