|
|
when im running my c api code for database connectivity..
im getting this error--
"Cannot open include file: 'mysql.h': No such file or directory"
i have tried to find the mysql.h header file in visual studio..im getting this file in include folder..
now how should i run this code...
|
|
|
|
|
hi
include a winsock.h above mysql.h
and give a path in the project menu ->setting ->link
library module
add this path of mysql
"C:\Program Files\MySQL\MySQL Server 5.0\lib\opt\libmysql.lib"
hi
|
|
|
|
|
|
i hav done all which u hav told me
but still im getting the same error...
plz help me
|
|
|
|
|
yar copy libmySQL.dll from bin folder in program files
and paste this in ur applications folders
hi
|
|
|
|
|
in vc++ thr in no such dll file...???????????
whr to find?
|
|
|
|
|
if u dont have this
then to which database u connect vc++
r u joking?>?????>>>>>>>>>>>>
hi
|
|
|
|
|
sorry i misinterprate u..
but now i hav done all wht u hav told me..
still me getting same prob
plz wht u do??????/
|
|
|
|
|
im agn having the same error..ie mysql.h not found
|
|
|
|
|
Are you sure you have this file on your system?
|
|
|
|
|
|
See this[^] thread can solve your problem or no?
|
|
|
|
|
wht code i hav written is moslty similar to this one...
but in this code also im having the same error
|
|
|
|
|
eclairs_db wrote: when im running my c api code for database connectivity..
im getting this error--
"Cannot open include file: 'mysql.h': No such file or directory"
This is a preprocessor error, not a runtime error.
eclairs_db wrote: i have tried to find the mysql.h header file in visual studio
So did you find it?
eclairs_db wrote: now how should i run this code...
You don't, until it has been successfully compiled/linked. In the IDE, you need to verify that the directories for your include files are correct.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
i hav included .dll file in my vc++ ...now wht to do..
i hav done all which hav been told me here
i hav done all according to me..
can u help me.
basically i hav to create database in mysql at run time with the help of programming
|
|
|
|
|
eclairs_db wrote: i hav included .dll file in my vc++
Which has absolutely nothing to do with the problem.
eclairs_db wrote: i hav done all which hav been told me here
Explain, in detail, what you did. If the problem persists, then you've obviously done something wrong.
eclairs_db wrote: basically i hav to create database in mysql at run time with the help of programming
At this point, your code is of little importance. You need to configure the IDE so that it knows where to find the include files. Until you do this, nothing else matters. If you are using VS2005, see slide #7 of this. If you are using VS6, select Options from the Tools menu, and then click the Directories tab.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
now how to do tht..
IDE configuration is big thing i think
how to do tht?
|
|
|
|
|
I can't make it any clearer than I already have.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
thank you sir
u hav helped me alot
nw i hav to do it by myself
any ways
thx agn
|
|
|
|
|
Hello,
i have a PropertySheet with PropertyPages. If there is no button in a page the "OK"-button of the sheet is the default button. Otherwise the first button in the page will automatically become the default button (none of the buttons in the page has the def-btn-style). My client want me to set always the "OK"-button of the sheet as default button. So i tried SetDefID(IDOK) in the OnInitDialog-handler of the page. But it had no effect.
Is there an easy way to prevent the default behavior of the sheet or must i overwrite the WndProc() of the sheet or page and catch the message where the first button in the page is set do default?
Best regards,
Tabor25
|
|
|
|
|
Well, SetDefID(IDOK) wasn't going to work, as the OK button isn't actually *on* the page - its off it.
Maybe GetParent ()->SetDefID(IDOK) ? Or try setting focus to the OK button?
Iain.
|
|
|
|
|
I included windows media player control successfully, but now I am getting problem with that. I am not able to play movie inside that. It does not resond to any of its functions like SetFileName, SetEnabled,Play. Its buttons doesnot activate. All of its buttons remain inactive.
|| Lust Causes Sorrow ||
|
|
|
|
|
hi...
I have a number of items in a Treectrl. I want to drop a file on a particular item in treectrl....
i was placed the TreeCtrl in a DIALOG,derived from Cdialog class.
Mainly,I have to use ONDrag enter(),Ondargover() events in Dialog class...
is it posible to do this....if yes
How to do this.....?
is any body knows reply me....
|
|
|
|
|
Do you want to drag your items of a leaf to other leaf on the current tree?
|
|
|
|