|
Hi,
I am learning C++ and have been doing pretty well until I got to this project I needed to complete. It's just a simple database, nothing fancy. I've imported msado15.dll, and have done eveything by the book but I keep getting this error upon executing the program that says "Data source name not found and no default drive specified. My instructor simply said that some people have an ODBC on thier systems and others don't. If I don't then I wont be able to get this to work. I'd like very much to concentrate on database building and design and was wondering if there is any way around this. I have WinXP Home editiion, and have just gotten (although not installed yet) pro. Any ideas would be appreciated.
I did set up my DSN and just now I did it again thinking that maybe something went wrong the last time. Any other ideas?? Please?
Thanks,
Garry
|
|
|
|
|
If you are using ODBC, why are you importing msado15.dll? ADO is a completely different method for database handling. In either case (ADO or ODBC), you need to have the actual database somewhere before you can use it from your program. What database server are you using?
|
|
|
|
|
I have a database set up in Access. Like I said I am real new to this so any guidence would be really appreciated. I have made a database for reading an ODBC file before and it worked, it never occured to me for some reason that Trying to go through ADO was real different. I have a sample program taht I have been using to learn from and when I am all done putting it together I get a run time error that reads "Data source name not found and no default and no default driver specified."
Is there anything I can do for this?
|
|
|
|
|
A very simle example at http://www.codeproject.com/database/excel_odbc_write.asp
Papa
Murex Co.
|
|
|
|
|
Thanks an aweful lot. I appreciate your help
|
|
|
|
|
Loved to help!
Papa
Murex Co.
|
|
|
|
|
hi,
is it dangerous usnig pointers and mfc containers in a dll?
does using regular stl in a mfc dll cause any memory leak?
bye.
|
|
|
|
|
You've got to be careful about the version of the C run-time library you're using. For the main app and all the DLLs involved this has to be of type DLL (be it multi- or single-threaded, debug or release), and it has to be exactly the same version. Taking this precaution, things should be OK (I think.)
As for the pointers, it is the same situation as with STL with respect to allocation/deallocation in different componenents of the program.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
hi,
I have 2 files-myclass.h & myclass.cpp.
The .h,as usual,contains the declarations and the .cpp the implementation.the class is a hand coded class which doesnot derive from any mfc or others.
Now,i think the compiler is not finding the implementation because I get lnk2001 error.
Why?should i set some project settings or something.i dont see any reason for this everything seems normal.I am really getting kranky with this.
please help.
|
|
|
|
|
Please post the entire message error you're getting, this might help us spot the problem.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
none of the functions are recognised and undefined external link(the general lnk2001) is given.
I have also declared the functions inline but no use
|
|
|
|
|
1. is the file in your project?
2. if the functions are _inlne, then they're probably in a .H file. is anything #including this file?
-c
30% of your base are belong to the IRS!
|
|
|
|
|
I would like to know to things:
Is it possible to write a program that shows a flash movie?How
Is it possible to launch the browser in full screen from a program?I dont mind if this is not in c++.
The problem with javascript is that it does it whenyou click a botton.
Santiago Suárez R.
|
|
|
|
|
Santiago Suárez wrote:
Is it possible to write a program that shows a flash movie?How
When you buy Flash, it comes with an activex control. Worst-case scenario, you could embed the Flash Player window into your own app and send it messages, but I'm not sure about the legal issues with that method.
Santiago Suárez wrote:
Is it possible to launch the browser in full screen from a program?
See my above post.
Jeremy L. Falcon<nobr>
Homepage : Sonork = 100.16311
"It was a blind man who taught me how to see." - Aerosmith
|
|
|
|
|
I must connect to a USB port on a Web Embedded Device.
Anybody know how I can do this?
Thanks
Diego
|
|
|
|
|
|
They are screen coords.
Look at the documentation it is very clear.
|
|
|
|
|
Hi. Another question,
I currently call ResizeParentToFit(false); in my CView::OnDraw. It resizes my windows to fit the dimension of the image I draw inside it.
However the CView screen becomes too big when I display an image that is larger than the screen, and user has no access to the lower/right borders of the window. What are the function calls I can do to make sure that the CView window's right and bottom border only becomes as big as the ParentWindow?
Thanks!
|
|
|
|
|
try these two functions:
SetScrollSizes()
MoveWindow()
|
|
|
|
|
Hi guys,
I have a MDI program with CView and CDocument. The CView windows popup with white background. Does anyone know how I can change that into gray, or for that matter, any color other than white? Thanks for the help.
|
|
|
|
|
I think this is the proccess:
Overriden OnEraseBck .Use GetClientDC to get bound of your white window and change the color with GDI tools.
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|
|
Thanks! Worked like a charm.
|
|
|
|
|
Hi everybody,
I wonder how can I insert a set of records once in Ole Db. I've refered to MSDN but I can't found out the corresponding document.
I know the CRowset has a method named Inset, but there is no detailed example. So please help and give me some codes illustrating the typical use.
Thank you.
|
|
|
|
|
There are some articles about Ole DB in CP.I've not read them but maybe they help you.
http://codeproject.com/database/#OLE%20DB
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|
|
Hi Guys,
I have a Win32 Conole application that simply continously displays a 'results' file. and at the bottom of console I give the user option to enter X to exit.
I want the console window to totally disappear/shutdown when the user enters 'X'
I don't want to see the 'Press any key to continue' prompt
If I use 'exit' or 'return' in my code I still get the 'Press any key to continue' prompt.
How can I get my app to just exit with out gettong the 'any key' prompt???
Cheers
Zed's dead, baby. Zed's dead.
|
|
|
|