Originally posted by: Petri Simolin
This wrapper is excellent.
It has saved me a lot of time.
Thank you very much for sharing it with the community!
ReplyOriginally posted by: mo
WaitForSingleObject(pTimeOut->hStopEvent, pTimeOut->iTimeOut) == WAIT_TIMEOUT);
BTW...excellent code!!
Can you explain the 'theory' behind lauching a new thread for the function SQLTimeoutProc. How do these statements work together in handling a timeout:
WaitForSingleObject(hThread, INFINITE);
Originally posted by: Frank Hahn
Hi,
Great work, also loved the included example.
However I don't seem to be able to get the grasp of the correct use of update (The SingleMost-non-examplified operator).
I don't use cursors at all, as I'm working in VC7 and got a compile-error, I just stripped the cursors out (The project is Unicode, but with __UNICODE undeffed for the database-part).
My problem is with updating a blob in a single primary-key identified (and existing) row.
The insert part of the examplecode used a syntax like:
"insert into tablename (field1, field2 ) values (?,?)"
and then delaying the actual 'inserting' of the data-part (associated with the ?).
I am wondering if there is a way to do?:
"update tablename set field2=? where field1=givenkey"
where ? for field2 is to be replaced with the blob-value.
What the working sequence of calls would be, if possible at all?
Kindest regards,
/Frank
Originally posted by: Marc
i have a problem using a debug version of the gsodbc.dll.
when i start the release version of my application (that uses the gsodbc.dll) everything works fine. when i start the debug version a connection to my access-db is successfully established, but any select-statement fails with no result. i generated a debug-version of the gsodbc.dll and made several debug-settings but nothing happened.
any idea where the problem is?
Originally posted by: Jmancool
I found a serious problem...
I think the source code should be changed to below..
bindAuto(){
memset(m_pColumns, 0x00, sizeof(COLUMN) * m_iColCount);
}
Originally posted by: Steve Goodwin
You have the words "Source-free and freeware library" in your .rc file and in your text on the codeguru website but I need to know whether that allows me to use your code in my commercial product.
I already do this with expat and info-zip by adding a reference to their copyright via their own text and I add a url to each of them. I do this in my "About" box and I believe this to be sufficient in their case.
Would this be sufficient for your work or is your license more like GPL
ReplyOriginally posted by: Ken Myers
This works like a charm. I plan on using this in several applications. Could you please describe what issues/effort would be required or what dependencies exist relative to the MSSQL binding mentioned in your summary and applying the lib to Oracle? This is really appreciated!
ReplyOriginally posted by: Steve Miller
I believe you have the sample code and source code links mislabeled. The source code link points to a zip file that contains test code for different databases, whilst the sample code link points to a zip file that contains the library source.
Reply
Originally posted by: Denis Doiron
Hey i tryed your programme cause im trying to connect C++ to a odbc database.
i compiled your project and your #include in stdhead.h file is looking for gsodbc.h at this path "gsodbc/gsodbc.h"
it gives for errors...
please check this out it could realy help me
Denis Doiron
Programmer/ analyst