convert this VB progaram to vc++ to use odbctool.dll 
Author Message
 convert this VB progaram to vc++ to use odbctool.dll

How to use 'OdbcTool.dll' in vc++ to get the DSN list this is VB code to
find DSN list any one convert this into vc++
Dim odbcTool As New ODBCTool.Dsn
Dim Dsn() As String, i As Long
If odbcTool.GetDataSourceList(Dsn()) Then
    ' a True return value means success
    lstDataSources.Clear
    For i = 0 To UBound(dsn)
        lstDataSources.AddItem dsn(i)
    Next
Else
    ' a False value means error
    MsgBox "Unable to read DSN list", vbExclamation
End If

Regards
veeru



Mon, 11 Oct 2004 19:51:39 GMT  
 convert this VB progaram to vc++ to use odbctool.dll
Hi,

For a Visual C++ application, you can call SQLDataSources() function to get
the DSN list instead of using ODBCTool.DNS object. Pleae refer to the
following KB article:

HOWTO: Retrieving a List of All ODBC Data Sources (Q119064)
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q119064

Hope this helps!

Regards,
HuangTM
This posting is provided "AS IS" with no warranties, and confers no rights.



Wed, 13 Oct 2004 13:55:53 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Using VB collections in a VB DLL in VC

2. Convert variant to object (VB-COM used in VC)

3. Howto make a dll in VC++ 6 to be used in VB 6 and VB .Net

4. Howto make a dll in VC++ 6 to be used in VB 6 and VB .Net

5. Howto make a dll in VC++ 6 to be used in VB 6 and VB .Net

6. Using VB DLLs from VC

7. Debugging a VC dll used in VB exe

8. How to use VC to create class dll used by VB

9. HLP : VC's DLL problems when using VB 6.0

10. Using VC DLL in VB

11. Using a VB DLL in VC

12. VC DLL used by VB

 

 
Powered by phpBB® Forum Software