🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.multi-tier
3 messages
3 total messages Started by Edward Diener Sat, 06 Aug 2005 03:03
Standalone Midas application in C++ Builder 6
#97
Author: Edward Diener
Date: Sat, 06 Aug 2005 03:03
4 lines
1216 bytes
Is it possible to create a standalone application using Midas and C++ Builder 6 
? I am using TClientDataSet in a BCB6 application I need to be a standalone 
application. The application accesses the BDE and ADO database components and 
uses a TClientDataSet in order to create an in-memory dataset from ascii files.
Re: Standalone Midas application in C++ Builder 6
#100
Author: St�phane
Date: Tue, 06 Sep 2005 17:33
34 lines
2311 bytes
If by stand-alone you meant shipping a single exe file, then you could put 
the Midas DLL in the executable's resource.
Here's how we check if Midas is installed:
    auto_ptr<TRegistry> registry ( new TRegistry ) ;
    registry->RootKey = HKEY_CLASSES_ROOT ;
    registry->OpenKeyReadOnly("\\CLSID\\{9E8D2FA1-591C-11D0-BF52-0020AF32BD64}\\InProcServer32" 
 ) ;
    String midasDLL = registry->ReadString("") ;
    registry->CloseKey() ;


    if( midasDLL.IsEmpty() || !FileExists( midasDLL ) )
    {
        if( ! midasDLL.IsEmpty() )
            ShellExecute( Application->Handle, "open", "regsvr32.exe", "/s 
midas.dll", NULL, SW_HIDE ) ;


        // Extract the dll from the resource
        ...
    }


HTH,
Stephane


"Edward Diener" <eddielee_no_spam_here@tropicsoft.com> wrote in message 
news:42f4288a$1@newsgroups.borland.com...
> Is it possible to create a standalone application using Midas and C++ 
> Builder 6 ? I am using TClientDataSet in a BCB6 application I need to be a 
> standalone application. The application accesses the BDE and ADO database 
> components and uses a TClientDataSet in order to create an in-memory 
> dataset from ascii files. 
Re: Standalone Midas application in C++ Builder 6
#101
Author: St�phane
Date: Thu, 08 Sep 2005 15:43
23 lines
2001 bytes
I just came accross this link to a Midas replacement which is free and comes 
with source (so could be linked-in).
  http://www.vglib.com/link-4.html
Note that I haven't tried it.


"St�phane" <stephane@compass-cama.com> wrote in message 
news:431dd2a3$1@newsgroups.borland.com...
> If by stand-alone you meant shipping a single exe file ...
> [snip]
>
> Stephane
>
>
> "Edward Diener" <eddielee_no_spam_here@tropicsoft.com> wrote in message 
> news:42f4288a$1@newsgroups.borland.com...
>> Is it possible to create a standalone application using Midas and C++ 
>> Builder 6 ? I am using TClientDataSet in a BCB6 application I need to be 
>> a standalone application. The application accesses the BDE and ADO 
>> database components and uses a TClientDataSet in order to create an 
>> in-memory dataset from ascii files.
>
> 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads