|
Hi,
Is it Possible to connect a MySql Database with a VC++ app ???
regards
Sonu
|
|
|
|
|
Yes. Use the MySQL ODBC driver and MFC database classes, or use the MySQL++ C++ API calls directly.
|
|
|
|
|
where can i get the MySQL Driver ? I just have the SQL Server driver.
|
|
|
|
|
|
Yes, but be aware of that several user have reported problems with CRecordset and the ODBC-driver.
|
|
|
|
|
MySql Has a couple of headers and libs like DBLibrary is for SQLServer. These Headers and Libs are several Apis that permits the access to MySql, Open Recordset, Querys, etc...
Look in www.MySql.com...
Best Regards...
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
Hi all, I have three simple questions that I just cannot solve :
1. How do I draw text with a transparent background? I have created a CFont structure (with appropriate colour, font and size), but don`t know how to draw its background transparently (it draws the text in a white box and pastes it to the screen)
2. How do I change the MFC default icons that appear in the top left hand corner of the Mainframe and Child frame respectively?
3. How do I change the line that says "MFC Application" when looking at the file in Windows Explorer?
Be grateful if someone could help me out, cheers guys,
Alan.
"When I left you I was but the learner, now I am the Master" - Darth Vader
|
|
|
|
|
1. i guess you should change the backgroundcolor of your output (e.g. determine the rect, draw a rectangle in this color (using a colored pen) and then use DrawText in this rectangle).. but no real transparency, i know.
2. in the resource editor there is an icon, called IDR_MAINFRAME. Change this and it will work (remember changing both the 32x32 and 16x16 icon)
3. resource edit / version / vs_version_info
"There are three roads to ruin: women, gambling and technicians. The most pleasant is with women, the quickest is with gambling, but the surest is with technicians." Georges Pompidou
|
|
|
|
|
Thanks for the response, your answers to questions 2 and 3 were cool, I didn`t spot the 16x16 icon and thats why I could change the icon for the app, but not the icons in the app. I would still like to know if text backgrounds and transparency is possible? I would be very surprised if it weren't.
Many Thanks Bernhard,
Alan.
"When I left you I was but the learner, now I am the Master" - Darth Vader
|
|
|
|
|
Chambers wrote:
How do I draw text with a transparent background?
Call CDC::SetBkMode(); with TRANSPARENT before drawing text.
/ravi
"There is always one more bug..."
ravib@ravib.com
http://www.ravib.com
|
|
|
|
|
Hi Guys,
how can i get the Properties of a specific file ????
Thanx
regards
Sonu
|
|
|
|
|
GetFileAttributes and GetFileAttributesEx
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
What do you mean by "properties"?
- ::GetFileAttributes()
- ::SHGetFileInfo
- CFile::GetStatus()
/ravi
"There is always one more bug..."
ravib@ravib.com
http://www.ravib.com
|
|
|
|
|
actually i am want to get the font face name of a specif *.ttf file. I have tryed everything but i dont know how to get the font face name. I thought maybe to get the file properities will help me. May be you know an another solution.
regards
Sonu
|
|
|
|
|
Can you tell me where I can buy the autherization-key of the PC/TCP ONNET DEVELOPER'S TOOLKIT 3.01 FOR DOS/WINDOWS?
Contact me:ligf@mcm.com.cn
Thank you!
|
|
|
|
|
|
I set a system wide HOOK (Mouse Hook).
when press right button of mouse, it will pop up a owner draw menu instead of old one.
I failed, who can tell me how could i do?
|
|
|
|
|
I set a system wide HOOK (Mouse Hook).
when press right button of mouse, it will pop up a owner draw menu instead of old one.
I failed, who can tell me how could i do?
|
|
|
|
|
NO, It is difficult to pop up OWNER KIND menu...
|
|
|
|
|
i want to paint falling down snow flowers on the screen,how to?
thanks
|
|
|
|
|
I would attempt to find a bitmap image of a snow flake first. Then I would look at some of the sample code for drawing transparent bitmaps. Check the Bitmaps and Palettes section of this site.
|
|
|
|
|
|
Hi.
I have a question about deleting a few. Here is a scenario. The program first asks the user to enter the name of a file to take to.
ostream outFile;
outFile.open(userchoice, ios::out);
With ofstream, I found that it will create the file if it cannot find it. I tried implementing "nocreate," but VC++ 6 gave me an error that there is not such function "ios::nocreate."
Anyways, the program would create the file if it cannot find it and the file would be empty or 0 byte size. Afterward, the program calculates specific data (not worth mentioning) and outputs data to the outpuf *if applicatable*. So sometimes the program writes nothing and I would a 0 byte file under the name that the user originally entered.
I would like to know if there is a way to delete a file. So in the case above, there would be a line of code to delete the file if applicable.
Thanks,
Kuphryn
|
|
|
|
|
remove
It is just a simple old C routine.
Tim Smith
Descartes Systems Sciences, Inc.
|
|
|
|
|
Thanks.
ofstream x;
x.open(file, ios::out);
s.remove(file); // Is this a valid syntax?
Kuphryn
|
|
|
|