BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Standalone Midas application in C++ Builder 6

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (Multi-Tier)
View previous topic :: View next topic  
Author Message
Edward Diener
Guest





PostPosted: Sat Aug 06, 2005 3:03 am    Post subject: Standalone Midas application in C++ Builder 6 Reply with 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





PostPosted: Tue Sep 06, 2005 5:33 pm    Post subject: Re: Standalone Midas application in C++ Builder 6 Reply with quote



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





PostPosted: Thu Sep 08, 2005 3:43 pm    Post subject: Re: Standalone Midas application in C++ Builder 6 Reply with quote



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
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (Multi-Tier) All times are GMT
Page 1 of 1

 
 


Powered by phpBB © 2001, 2006 phpBB Group
.