|
The following class libraries may help:
|
|
|
|
|
Thanks for the quick answer !
I'm sure I'll find plenty of usefull informations in the links you provided.
A question comes to my mind though...Is ODBC the only way to do it ? Or is it the easiest ? Does it exists on Linux ?
Thanks again for your help !
Jerome
|
|
|
|
|
ODBC is the most portable way, it exists in Linux/Unix and you can write database-independent code with it (with some effort).
|
|
|
|
|
If you know what DB you will use and you know it won't change, you can use the API of your DB. I think most of the known DBs have at least a C Interface you can use.
For Oracle look for OCI (Oracle Call Interface) in the Oracle-Docs (online at otn.oracle.com[^] )
<--edit-->
Forgot to mention Pro*C/C++ Precompiler for Oracle. With this precompiler you can write your SQL-Statemetns simply into your C/C++ code. Then run the precompiler. It will subsitute your statements with the correct OCI-calls.
<--edit-->
If you don't know what DB you will use or you want to be able to change it very easy you can use ODBC.
The hardest way: You can implement a generic Data-Access-Class in combination with a Wrapper-Class for each DB-API. So you just replace your wrapper class and you can use another DB.
--
karl
|
|
|
|
|
Thank you for your help, and for the link ! (and also for your suggestion about the hard-way....which I'll try to avoid !!!!)
Jerome
|
|
|
|
|
Hi,
I'm using SHBrowseForFolder Shell API, in my program to select a Folder. I have been able to Display only Drives by initializing a ITEMIDLIST got from SHGetSpecialFolderLocation, in the BROWSEINFO structure.
I dont want to display the Floppy Drive - Letter and the CD ROM Drive Letter. Also among the File System Drives, I want to only display drives (Drive Letters), that have a NTFS File System. Is there any way in which this can be done? i.e Can i filter out the drives that i dont want to display from the dialog that SHBrowseForFolder puts up?
Also can I use SHBrowseForFolder to display Drives and Folders from a Remote System?
Any information regarding this would be a great help.
Regards
Anand
|
|
|
|
|
|
Thanks Riazi, This code was really a help, a little modification should get me going.
Thanks
Anand
|
|
|
|
|
|
Hi,
I have a listview with a background image by using the LVM_SETBKIMAGE message. The textcolor is set to transparent by using LVM_SETTEXTBKCOLOR with CLR_NONE so the image is shown behind any text within the listview. When I set an image for a subitem (report view), the text isn't drawn transparent but with a solid background. Is it possible to add images to subitems and have the text drawn transparent and if so, how do I do it?
Thanks in advance,
Aart Onkenhout
|
|
|
|
|
Hello:
While building a project containing many DLLs the VC++ 6.0 compiler stopped automatically if there was an error in a DLL. New Visual Studio .NET always continues in building although my fix usually requires rebuilding of all subsequent DLLs. Now I have to stop it manually and it is very annoying. Is there an option that stops building after an error?
Thanks Mirek
|
|
|
|
|
Press ESC on your keyboard!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Rickard:
I know how to stop building manually. My question is how to force it to stop automatically. I'm converting a VC++ project to new VS .NET and the project consists of 32 subprojects with more than 2 millions lines. Currently I'm somewhere in the middle and I get hundreds of warnings/errors after every build. So during building I always have to scroll back through hundreds of output lines to check if there was an error or not (and stop it if there is an error). Of course I could change the startup project always after I finish a DLL or I could use the "Build (selection only)" command but I'm always very disappointed when I see that someone has changed something what was good (better than after the change). But may be I'm wrong and there is an option that solves this problem.
Regards Mirek
|
|
|
|
|
mireks wrote:
So during building I always have to scroll back through hundreds of output lines to check if there was an error or not
I have no idea about what you want, and moreover I'm novice...
but (I'm sure that you'll know this) you can press F4 to go through the errors and warnings found...
If nobody answers you and you didn't know it... it can help you...
Hope this helps...
|
|
|
|
|
Joan: thank you for your answer but, unfortunately, it doesn't solve the problem. What I want: My project is large and consists of 32 subprojects (DLLs). When I'm building this project and if there is an error (for example in a DLL #5) then I want Visual Studio to stop building so that I could fix the error. VC++ 6.0 and all previous versions really stopped but new VS .NET continues in building (a DLL #6 and all other DLLs) and writes thousands of other warnings/error messages. I can stop it myself but sometimes it is difficult to notice that there was an error. In my case it doesn't make any sense to continue in building if there is an error, it is just a waste of time (especially if building takes about 20 minutes). I don't know why Microsoft has made this change. I can live with it but - as I've already written - it is annoying.
Regards Mirek
|
|
|
|
|
mireks wrote:
I know how to stop building manually
Argh... Again I read a message carelessly!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
How to create a Table(Like Msword Tables) in Windows Application?
|
|
|
|
|
Use CListCtrl with gridlines
|
|
|
|
|
I have an aplication wich splits the window in two: one is a TreeView for navigation on the document and the other side can be a CFormView, CListView ou just a CView. My problem is that, after I've created menu accelerators and their message processing routines, I cannot get the messages sent to the window on the right. I also cannot get the ON_PRINT messages. I've even tried to send ON_COMMAND messages to the window on the right and it still does not catch them. What am i doing wrong ?
Thanks
Nelson Gonçalves
|
|
|
|
|
Where do you send the messages to?
I usually send the messages to the CMainFrame , where they are catched and relayed to the relevant view.
Or maybe you can use the simpler UpdateAllViews() broadcast? Just define your own HINT-constants. You can then use the pHint for sending more complicated data (or better, a pointer to it).
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
I do not re-directionated messages. I have a funy bug, because i can catch mouse messages on the CView() window,on the rigth, but no other message. All I want is to catch keyboard accelerators on the CView(). I don't think that the UpDateAllViews() will work. I think I should work on the mainframe
Nelson Gonçalves
|
|
|
|
|
Sorry, I thought you wanted to send messages from one view to the other.
For your acceletators, try to use CMainFrame or the CMDIChildWnd.
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
Ok, thank you for your time.
Nelson Gonçalves
|
|
|
|
|
What's the difference between CCriticalSection and CSingleLock ?
When should i use CCriticalSection and when CSingleLock ?
|
|
|
|
|
Hi..
you use CSingleLock and CCriticalSection to control access to a resource you only need to wait on one object at a time and just one thread at a time can access this resource.
|
|
|
|