I used the following code to load the embedded firebird server. I works very well on Firebird-1.5.2.4731_embed_win32. However, when I try to load the Firebird-2.0.0.12710-0_embed_win32, It will not load at all. While version 2 of Firebird is still Beta, it is nearing final release and I wondered if you knew why it wouldn't load.
Marv
PS thanks for your help. Having the embedded server as a tool is a great help.
////////////////// code ///////////////////////////////////////////
IntPtr lib = IntPtr.Zero ;
const string FbLibName = @"C:\Path\fbembed.dll";
[DllImport ("kernel32.dll")]
private extern static IntPtr LoadLibrary(string fileName);
[DllImport (" kernel32.dll")]
private extern static bool FreeLibrary(IntPtr lib);
private void Form1_Load(object sender, EventArgs e)
{
lib = LoadLibrary(FbLibName);
......
}
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
FreeLibrary(lib);
..............
}
///////////////////////////////////////////////////////////////////////////////////////////////
On 8/1/06, Carlos Guzmán Álvarez <[EMAIL PROTECTED]> wrote:
Hello:
> Carlos,
>
> I am delighted to learn that I CAN use the embeded server. Please
> forgive the ignorance associated with my pervious posting.
>
> I will learn how to use LoadLibrary at once. Is there any code that
> you can point me to that will shorten the learning curve?
>
> Thanks again for you help
Look this:
http://www.balconsulting.net/DasBlog/PermaLink,guid,a50036b2-cf16-4467-a284-3380e7a77c12.aspx
and for more things on embedded server usage:
http://www.dotnetfirebird.org/blog/2005/11/articles-on-embedded-firebird-and.html
--
Carlos Guzmán Álvarez
Vigo-Spain
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider