 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Edward Diener Guest
|
Posted: Sat Aug 06, 2005 3:03 am Post subject: Standalone Midas application in C++ Builder 6 |
|
|
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.
|
|
| Back to top |
|
 |
Stéphane Guest
|
Posted: Tue Sep 06, 2005 5:33 pm Post subject: Re: Standalone Midas application in C++ Builder 6 |
|
|
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 (AT) tropicsoft (DOT) com> wrote
| Quote: | 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.
|
|
|
| Back to top |
|
 |
Stéphane Guest
|
Posted: Thu Sep 08, 2005 3:43 pm Post subject: Re: Standalone Midas application in C++ Builder 6 |
|
|
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 (AT) compass-cama (DOT) com> wrote
| Quote: | If by stand-alone you meant shipping a single exe file ...
[snip]
Stephane
"Edward Diener" <eddielee_no_spam_here (AT) tropicsoft (DOT) com> wrote in message
news:42f4288a$1 (AT) newsgroups (DOT) 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.
|
|
|
| Back to top |
|
 |
Powered by phpBB © 2001, 2006 phpBB Group .
|