|
cy163@hotmail.com wrote: Does anyone know if it makes sense to try to use the library in Linux.
Certainly - there are many cross-platform libraries, just look at SourceForge.
|
|
|
|
|
|
hello everybody
i am connecting vc++(MFC) to mysql but there is only single error
that is libmysql.lib file is not found
can anybody tell me how to recover this error
\thanks
hi
|
|
|
|
|
have you linked to this library in Linker Settings?
Yeah, You are right Mr Prasad. Didn't notice that he is getting a compilation error. probably read too fast.
-- modified at 1:51 Monday 7th May, 2007
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
_AnShUmAn_ wrote: have you linked to this library in Linker Settings?
That's why he is facing compilation error. Otherwise, it would have been linking error.
Prasad
MS MVP - VC++
|
|
|
|
|
paras_s12 wrote: can anybody tell me how to recover this error
Check the path of libmysql.lib , you have given in linker setting. Error indicates that, it's not there.
Prasad
MS MVP - VC++
|
|
|
|
|
Hi,
I want to convert from 'int' to 'unsigned short *'?what i have to do?
Siddharth
|
|
|
|
|
int i=10;
unsigned short* pTypeInt=(unsigned short*)&i;
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
May I ask you why do you want to do this wonderful conversion? Did you get an error like "Unable to convert parameter 3 from int to unsigned short* ? If so, what exactly were you trying to do?
"The difficulty lies, not in the new ideas, but in escaping from the old ones."
-- John Maynard Keyes, 1936
|
|
|
|
|
I want to use U16,U8 in my functions...
|
|
|
|
|
hi,
plz help me out.
how i can get an thread ID/ process ID for an exe.
for eg, i want to hold a thread which is executing copying operation (i.e, explorer.exe).
Thread ID more preferable if not ,atleast Process ID using vc++.
thanking u,
ram
|
|
|
|
|
|
I am using an application called Somnologica that has with at a SDK for writing plugins. It is provided as a static library compiled with VC 6 and header files. It uses MFC 6 extensively in the interfaces.
Currently I need to use Visual C++ 6 to compile these plugins but I am getting very tired of using a 9 year old compiler. I would much rather be using Visual C++ 8 ( even 7.1 would be a huge improvement ).
Any ideas on how I might go about this?
One strategy I have considered is using VC++ 8 but compiling the plugin using VC 6's header files and MFC but this seems like it would fraught with difficulties. And even if I get it to compile with MFC 6, I've got no idea what binary compatibility problem I might encounter.
Thanks
|
|
|
|
|
Release-mode LIBs are (or should be) forward-compatible with future linkers. Debug-mode binaries are never guaranteed to be compatible, though.
|
|
|
|
|
I´m starting a new mission critical (lots of transactions per second) tcp based nt service.
I don't want to program the tcp client\server stuff from scratch, so do you have any good tips on a professional winsock library ? It may be free or not, quality and usability are on target.
Thanks for any help !
|
|
|
|
|
|
GuimaSun wrote: ´m starting a new mission critical (lots of transactions per second) tcp based nt service.
I don't want to program the tcp client\server stuff from scratch, so do you have any good tips on a professional winsock library ? It may be free or not, quality and usability are on target.
Thanks for any help !
http://www.codeproject.com/internet/#Client%2FServer+Development[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
When i use the following code all works well for a while. If you enter the inner loop once it works fine but will not allow to enter it a second time. can someone explain this to me please or show me how to enter it again.
thanks.
<br />
#include <iostream><br />
<br />
using namespace std;<br />
<br />
int main () {<br />
int number;<br />
int testval = 0;<br />
<br />
while (true) {<br />
cout << "Pick a number 4 quits" << endl;<br />
cin >> number;<br />
if (number == 4) {<br />
return 0;<br />
}<br />
else if (number == 1) {<br />
while (testval != 5) {<br />
cout << "pick a new number: ";<br />
cin >> testval;<br />
<br />
if (testval == 1) {<br />
cout << "inner loop 1" << endl;<br />
}<br />
else if (testval == 2) {<br />
cout << "inner loop 2" << endl;<br />
}<br />
else {<br />
cout << "inner loop 3" << endl;<br />
}<br />
}<br />
}<br />
else if (number == 2) {<br />
cout << "outer loop 1" << endl;<br />
}<br />
else {<br />
cout << "outer loop 2" << endl;<br />
}<br />
}<br />
}<br />
|
|
|
|
|
Can you wrap your code in pre tags instead of code tags?
Unindented code is hard to read (for me anyway )
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
sure thing
#include <iostream>
using namespace std;
int main () {
int number;
int testval = 0;
while (true) {
cout << "Pick a number 4 quits" << endl;
cin >> number;
if (number == 4) {
return 0;
}
else if (number == 1) {
while (testval != 5) {
cout << "pick a new number: ";
cin >> testval;
if (testval == 1) {
cout << "inner loop 1" << endl;
}
else if (testval == 2) {
cout << "inner loop 2" << endl;
}
else {
cout << "inner loop 3" << endl;
}
}
}
else if (number == 2) {
cout << "outer loop 1" << endl;
}
else {
cout << "outer loop 2" << endl;
}
}
}
|
|
|
|
|
Once testval has been set to five in the inner loop then the inner loop will never be
entered again because testval is still 5.
Try this:
int main ()
{
int number;
int testval = 0;
while (true)
{
cout << "Pick a number 4 quits" << endl;
cin >> number;
if (number == 4)
{
return 0;
}
else if (number == 1)
{
while (testval != 5)
{
cout << "pick a new number: ";
cin >> testval;
if (testval == 1)
{
cout << "inner loop 1" << endl;
}
else if (testval == 2)
{
cout << "inner loop 2" << endl;
}
else
{
cout << "inner loop 3" << endl;
}
}
<code>testval = 0;</code>
}
else if (number == 2)
{
cout << "outer loop 1" << endl;
}
else
{
cout << "outer loop 2" << endl;
}
}
}
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
ahhh i'm silly sometimes.
thank you much for that i was going nuts truing to figure it out.
|
|
|
|
|
You just completed a homework assignment for him...
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|