Click here to Skip to main content

ATL / WTL / STL

 
Questionrookie need help with STL Pinmemberspawn200420-Feb-13 8:40 
AnswerRe: rookie need help with STL PinmemberJonathan Davies21-Feb-13 2:05 
AnswerRe: rookie need help with STL PinmemberRahul from Poona23-Feb-13 23:26 
Questionlocals not valid in debugger [modified] Pinmemberbkelly1313-Feb-13 4:13 
AnswerRe: locals not valid in debugger PinmvpRichard MacCutchan13-Feb-13 4:18 
GeneralRe: locals not valid in debugger [modified] Pinmemberbkelly1313-Feb-13 4:51 
AnswerRe: locals not valid in debugger PinmemberAlbert Holguin13-Feb-13 5:42 
GeneralRe: locals not valid in debugger PinmvpRichard MacCutchan13-Feb-13 6:36 
Question64 bit MFC application failed to create mdb and mdw files ? Pinmemberkhaliloenit12-Feb-13 4:28 
AnswerRe: 64 bit MFC application failed to create mdb and mdw files ? PinmvpRichard MacCutchan12-Feb-13 5:57 
GeneralATL how get the name of the target class inside of a template? PinmemberFrank Coder12-Feb-13 4:16 
GeneralRe: ATL how get the name of the target class inside of a template? PinmvpRichard MacCutchan12-Feb-13 5:55 
GeneralRe: ATL how get the name of the target class inside of a template? PinmemberFrank Coder15-Feb-13 20:51 
Questionadd sys dsn failed on windows 7 64 Pinmemberkhaliloenit11-Feb-13 6:59 
I try to create sys dsn from my C++ application
but i have always the same error:

The installation routines ODBC Microsoft Access Driver (*. Mdb) are not found. Please reinstall the driver.

I have Office 2007 installed but always error

For example this a VB test which return failed:

Public Class Form1
    Private Declare Function SQLConfigDataSource Lib "ODBCCP32.DLL" (ByVal hwndParent As Integer, ByVal ByValfRequest As Integer, ByVal lpszDriver As String, ByVal lpszAttributes As String) As Integer
    Private Const ODBC_ADD_SYS_DSN As Short = 4
    Private Const vbAPINull As Integer = 0 ' NULL Pointer

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        CreateSystemDSN()
 
    End Sub
    Public Sub CreateSystemDSN()
        Dim ReturnValue As Integer
        Dim Driver As String
        Dim Attributes As String
        Driver = "Microsoft Access Driver (*.mdb)"
        Attributes = "SERVER=SomeServer" & Chr(0)
        Attributes = Attributes & "DESCRIPTION=New DSN" & Chr(0)
        Attributes = Attributes & "DSN=DSN_TEMP" & Chr(0)
        Attributes = Attributes & "DATABASE=pubs" & Chr(0)
        ReturnValue = SQLConfigDataSource(vbAPINull, ODBC_ADD_SYS_DSN, Driver, Attributes)
        If ReturnValue <> 0 Then
            MsgBox("DSN Created")
        Else
            MsgBox("Create Failed")
        End If
    End Sub
End Class




Thank you.
QuestionSQL Server Compact Edition PinmemberHaakon S.11-Feb-13 5:23 
AnswerRe: SQL Server Compact Edition PinmvpRichard MacCutchan11-Feb-13 5:42 
GeneralRe: SQL Server Compact Edition PinmemberHaakon S.11-Feb-13 6:37 
GeneralRe: SQL Server Compact Edition PinmvpRichard MacCutchan11-Feb-13 6:58 
Questionerror while trying to uplaod the file in current directory using c language Pinmemberraghvendrapanda30-Jan-13 20:34 
AnswerRe: error while trying to uplaod the file in current directory using c language PinmvpRichard MacCutchan30-Jan-13 23:03 
AnswerRe: error while trying to uplaod the file in current directory using c language Pinmember«_Superman_»1-Feb-13 21:34 
QuestionTCP/IP CAsyncSocket and pointers to same Pinmemberbkelly1324-Jan-13 16:16 
Answerclasses don't call upwards Pinmemberbkelly1326-Jan-13 9:55 
QuestionATL and exceptions Pinmemberimagiro14-Jan-13 9:10 
AnswerRe: ATL and exceptions PinmemberJonathan Davies18-Jan-13 10:39 
AnswerRe: ATL and exceptions Pinmemberbkelly1324-Jan-13 16:24 
GeneralRe: ATL and exceptions PinmemberJonathan Davies6-Feb-13 8:23 
GeneralRe: ATL and exceptions PinmemberAlbert Holguin11-Feb-13 6:12 
Questionunicode and non-unicode Pinmemberbkelly1314-Jan-13 4:45 
AnswerRe: unicode and non-unicode PinmvpRichard MacCutchan14-Jan-13 7:24 
GeneralRe: unicode and non-unicode [modified] Pinmemberbkelly1314-Jan-13 9:43 
GeneralRe: unicode and non-unicode PinmvpRichard MacCutchan14-Jan-13 23:13 
GeneralRe: unicode and non-unicode PinmvpRichard MacCutchan20-Jan-13 23:08 
AnswerRe: unicode and non-unicode Pinmemberpasztorpisti20-Jan-13 2:33 
GeneralRe: unicode and non-unicode Pinmemberbkelly1320-Jan-13 9:56 
GeneralRe: unicode and non-unicode Pinmemberpasztorpisti20-Jan-13 11:45 
AnswerRe: unicode and non-unicode PinmemberAlbert Holguin11-Feb-13 6:10 
Questionsqlconfigdatasource fails on 64 bit from 64 application Pinmemberkhaliloenit11-Jan-13 0:02 
AnswerRe: sqlconfigdatasource fails on 64 bit from 64 application PinmvpRichard MacCutchan11-Jan-13 0:10 
GeneralRe: sqlconfigdatasource fails on 64 bit from 64 application Pinmemberkhaliloenit11-Jan-13 0:14 
GeneralRe: sqlconfigdatasource fails on 64 bit from 64 application PinmvpRichard MacCutchan11-Jan-13 0:32 
QuestionProblem with embedded ATL component PinmemberHungryCPPDev7-Jan-13 2:08 
Questionbooks: activeX and com, [modified] Pinmemberbkelly131-Jan-13 10:58 
AnswerRe: books: activeX and com, PinmemberJonathan Davies10-Jan-13 2:56 
QuestionWhile launching a winapp as ole server some time OnFIleNew() failed Pinmembervermaashish_mca31-Dec-12 1:27 
QuestionTCP blocking -vs- CAsyncSocket -vs- Win32 API Pinmemberbkelly1321-Dec-12 7:09 
AnswerRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pinmemberpasztorpisti22-Dec-12 10:51 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pinmemberbkelly1327-Dec-12 7:16 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pinmemberpasztorpisti27-Dec-12 14:47 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API [modified] Pinmemberbkelly1328-Dec-12 4:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.150414.1 | Last Updated 13 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid