Re: [Quickfix-developers] quickfix & delphi
Brought to you by:
orenmnero
|
From: Djalma R. d. S. F. <drs...@gm...> - 2007-03-27 15:03:31
|
Hi Abel / Stefano, It is possible to simulate classes in pure C by implementing structs with function pointers. Of course, in this situation some global variables and initialization/unitialization functions are required. See Winamp SDK samples, they do exactly that and the plugins can be written and tested in Delphi (I read that somewhere when I was investigating a good plugin architecture for my current application). IMHO, it would be much easier to create a COM wrapper (DLL - inproc) for Quickfix using ATL. An example is MSXML, you can use it in Delphi and looks like OOP. Djalma On 3/27/07, Kline - Facchetti Stefano <s.f...@kl...> wrote: > > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > Abel, > It's not possible to make a C++ wrapper, in fact delphi VCL can load > external procedure/function from only pure C dll. > As workaround I have make a C wrapper with only static method and pointer > (in pure C is not possible to use class), and I use them to interface > quickfixlib object.. > > If you can use Delphi .NET I suggest to use it. > > Abel Monroy ha scritto: > > Ciao Stefano, > > This wrapper solution is the one that we are thinking of now, but we are > kind of lost here. Do you take the quickfix.lib library and make some C++ > classes in order to make the calls to the different classes and functions? > You say a C wrapper, so, do you think that it's not possible to make a C++ > wrapper? I'm asking this because QuickFix everything is classes, so I can't > imagine how you can make this wrapper without using classes (do you define a > bunch of singleton or static objects, in order to be able to call the > methods inside the classes? ) > Thanks in advance > Abel > > Kline - Facchetti Stefano wrote: > > Hi Abel, > I use quickfix with Delphi 6.. for do it, I write a C wrapper to quickfix > lib and compile it into a dll.. > >From Delphi I use call to wrapper dll.. and all work ok.. > > Stefano > > > > ------------------------------------------------------------------------- > 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 > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |