Windows Vista Forums

Invalid value for key AttachDBFileName - related to 16-bit calling code ?
  1. #1


    Willy Guest

    Invalid value for key AttachDBFileName - related to 16-bit calling code ?

    This thing is complicated so bare with me.

    We have a pure .NET application using an SQL express database which we
    deploy via ClickOnce. When we launch the application via the normal
    shorcuts (internet or program files) it *always* works.

    Now the beauty is that this application has to be launched from a ***16 bit
    Delphi 1 application*** (nobody chooses this, neither did we - the 16bit app
    will live for at least 2 years - and this application is still used by tens
    of thousands of customers). This delphi application has a plugin mechanisms
    which enabled us to load 16-bit "add-ins". The short shory is the 16 bit
    application uses WinExec (exePath,SW_NORMAL) to launch our app. (we have
    control over the parameters but not over the WinExec part - the first
    parameter should be an EXE as well)

    Since the 16-bit app can't call an appref-ms (we launch the appref-ms file
    in program files\ourCompany\ourproduct as created by ClickOnce and
    documented in http://safari.oreilly.com/0321197690 ) file directly and since
    the clickonce application doesn't take program parameters, we have created
    a man in the middle .NET application (MyBoot.EXE) to do the work for us. It
    takes the commandline parameters from the delphi app and puts them in a
    local file for the .NET ClickOnce app.



    Now listen :
    - on windows vista it always works
    - on windows XP it sometimes works (but most of the time it does not)
    - if I manually launch myBoot.EXE with the commandline parameters then it
    always works.

    The question :
    - is there something different with Windows on Windows for 16 bit
    applications between XP and Vista or is my Vista machine just faster than
    all of the XP machines (3) on which I tested this ?
    - how can I overcome this problem ?

    (already tried increasing the timeout for the connection string but it
    doesn't have anything to do with that - is it the switch between 16bit code
    and 32 bit code? - I've also tried launching the .application file but that
    doesn't help me either - I've also made the man in the middle a windows
    application with an application.Doevents to take care of the warnings for
    WinExec)

    Thanks for any help,
    Van den Driessche Willy.

    (sorry for the cross-posts)


      My System SpecsSystem Spec

  2. #2


    Willy Guest

    Re: Invalid value for key AttachDBFileName - related to 16-bit calling code ?

    I'm beginning to *like* these "managed" newsgroups from Microsoft. This is
    the third question I ask in these forums and this is ever so many times I
    don't get a single response. I guess "managed" is more related to my
    messages beging "garbage collected" ;-) Consider this post a call to
    GC.KeepAlive(Me)


    "Willy" <willy.van.den.driessche.haha@xxxxxx> wrote in message
    news:A452D4A1-D4FB-48F8-A567-9295512F4E7E@xxxxxx

    > This thing is complicated so bare with me.
    >
    > We have a pure .NET application using an SQL express database which we
    > deploy via ClickOnce. When we launch the application via the normal
    > shorcuts (internet or program files) it *always* works.
    >
    > Now the beauty is that this application has to be launched from a ***16
    > bit Delphi 1 application*** (nobody chooses this, neither did we - the
    > 16bit app will live for at least 2 years - and this application is still
    > used by tens of thousands of customers). This delphi application has a
    > plugin mechanisms which enabled us to load 16-bit "add-ins". The short
    > shory is the 16 bit application uses WinExec (exePath,SW_NORMAL) to launch
    > our app. (we have control over the parameters but not over the WinExec
    > part - the first parameter should be an EXE as well)
    >
    > Since the 16-bit app can't call an appref-ms (we launch the appref-ms file
    > in program files\ourCompany\ourproduct as created by ClickOnce and
    > documented in http://safari.oreilly.com/0321197690 ) file directly and
    > since the clickonce application doesn't take program parameters, we have
    > created a man in the middle .NET application (MyBoot.EXE) to do the work
    > for us. It takes the commandline parameters from the delphi app and puts
    > them in a local file for the .NET ClickOnce app.
    >
    > Now listen :
    > - on windows vista it always works
    > - on windows XP it sometimes works (but most of the time it does not)
    > - if I manually launch myBoot.EXE with the commandline parameters then it
    > always works.
    >
    > The question :
    > - is there something different with Windows on Windows for 16 bit
    > applications between XP and Vista or is my Vista machine just faster than
    > all of the XP machines (3) on which I tested this ?
    > - how can I overcome this problem ?
    >
    > (already tried increasing the timeout for the connection string but it
    > doesn't have anything to do with that - is it the switch between 16bit
    > code and 32 bit code? - I've also tried launching the .application file
    > but that doesn't help me either - I've also made the man in the middle a
    > windows application with an application.Doevents to take care of the
    > warnings for WinExec)
    >
    > Thanks for any help,
    > Van den Driessche Willy.
    >
    > (sorry for the cross-posts)

      My System SpecsSystem Spec

Invalid value for key AttachDBFileName - related to 16-bit calling code ? problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error code 800A0408 Invalid Character AuHuman VB Script 2 03 Feb 2010
"Invalid callee" calling a com object Garios PowerShell 7 30 Dec 2009
Product Code Invalid after logging in Just Guessing Vista General 3 12 Sep 2008
"invalid STORE command syntax invalid message set syntax" Catullus Nacakus Vista mail 6 26 Jan 2008
Vista Premium reporting invalid code JethroUK© Vista General 6 04 Aug 2007