Click here to Skip to main content
16,007,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Release Version Of Code Library Pin
Daniel Turini27-Aug-02 6:25
Daniel Turini27-Aug-02 6:25 
GeneralRe: Release Version Of Code Library Pin
Chris Losinger27-Aug-02 6:26
professionalChris Losinger27-Aug-02 6:26 
GeneralRe: Release Version Of Code Library Pin
Jim Crafton27-Aug-02 6:26
Jim Crafton27-Aug-02 6:26 
GeneralLaunch a dialog box in a doc/view Pin
Anonymous27-Aug-02 5:14
Anonymous27-Aug-02 5:14 
GeneralRe: Launch a dialog box in a doc/view Pin
Tomasz Sowinski27-Aug-02 5:17
Tomasz Sowinski27-Aug-02 5:17 
GeneralRe: Launch a dialog box in a doc/view Pin
Rico62127-Aug-02 16:39
Rico62127-Aug-02 16:39 
GeneralRe: Launch a dialog box in a doc/view Pin
Tomasz Sowinski27-Aug-02 22:24
Tomasz Sowinski27-Aug-02 22:24 
GeneralInstallShield's CallDLLFx Pin
achandra00727-Aug-02 5:09
achandra00727-Aug-02 5:09 
What I need to do is to install ODBC DSNs while installing my main application.

I am trying to use the CallDLLFx function of InstallShield to do this - the DLL has one function that installs the DSNs which InstallShield can call.

My function declaration is

static LONG APIENTRY CreateApplicationDSN(HWND hWnd,LPLONG lplValue,LPSTR lpszValue);

My CallDLLFx in InstallShield looks like this:

<br />
function SetupODBCDrivers()<br />
<br />
STRING szDll;<br />
STRING szFunction;<br />
LONG lValue;<br />
STRING svValue;<br />
LONG lResult;<br />
<br />
begin<br />
    szDll = TARGETDIR ^ "ConfigAppODBC.dll";<br />
    szFunction = "CreateApplicationDSN";<br />
    svValue = "";<br />
    lValue = 0;<br />
    lResult = CallDLLFx ( szDll , szFunction, lValue, svValue );<br />
<br />
    if(lResult = 0 || lResult = 1)<br />
    then<br />
        return lResult;<br />
    else<br />
        return -1;<br />
    endif;<br />
end;<br />
<br />


I consistently get a -1 from this function. The DLL function ConfigAppDSN returns a 0 or a 1 based on a successful install or not.

What am I doing wrong. One thing I do know is that I do not have the ConfigAppDSN function in the .DEF file. When I do put it there, I get a linker LINK2001 error.

Thanks
ashish
GeneralRe: InstallShield's CallDLLFx Pin
Stephane Rodriguez.27-Aug-02 7:52
Stephane Rodriguez.27-Aug-02 7:52 
GeneralDid I Miss Something Here... Pin
Nick Parker27-Aug-02 4:44
protectorNick Parker27-Aug-02 4:44 
GeneralRe: Did I Miss Something Here... Pin
Chris Hambleton27-Aug-02 5:01
Chris Hambleton27-Aug-02 5:01 
GeneralRe: Did I Miss Something Here... Pin
Chris Losinger27-Aug-02 5:02
professionalChris Losinger27-Aug-02 5:02 
GeneralRe: Did I Miss Something Here... Pin
Nick Parker27-Aug-02 5:07
protectorNick Parker27-Aug-02 5:07 
GeneralRe: Did I Miss Something Here... Pin
Tomasz Sowinski27-Aug-02 5:00
Tomasz Sowinski27-Aug-02 5:00 
GeneralRe: Did I Miss Something Here... Pin
Nick Parker27-Aug-02 5:13
protectorNick Parker27-Aug-02 5:13 
GeneralRe: Did I Miss Something Here... Pin
Nick Parker27-Aug-02 5:04
protectorNick Parker27-Aug-02 5:04 
GeneralRe: Did I Miss Something Here... Pin
Tomasz Sowinski27-Aug-02 5:08
Tomasz Sowinski27-Aug-02 5:08 
GeneralRe: Did I Miss Something Here... Pin
markkuk27-Aug-02 5:41
markkuk27-Aug-02 5:41 
GeneralRe: Did I Miss Something Here... Pin
Roger Allen27-Aug-02 6:11
Roger Allen27-Aug-02 6:11 
QuestionChoosing the best view? Pin
kc5zrs27-Aug-02 4:42
kc5zrs27-Aug-02 4:42 
AnswerRe: Choosing the best view? Pin
Tomasz Sowinski27-Aug-02 4:51
Tomasz Sowinski27-Aug-02 4:51 
GeneralFiguring out someone else's program Pin
Like2Byte27-Aug-02 4:14
Like2Byte27-Aug-02 4:14 
GeneralRe: Figuring out someone else's program Pin
Tomasz Sowinski27-Aug-02 4:20
Tomasz Sowinski27-Aug-02 4:20 
GeneralRe: Figuring out someone else's program Pin
Like2Byte27-Aug-02 4:35
Like2Byte27-Aug-02 4:35 
QuestionHow to speed up from DDB to DIB?Emergency Pin
csqlhy27-Aug-02 4:14
csqlhy27-Aug-02 4:14 

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

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