RE: [Quickfix-developers] Having problem with user defined fields in C sharp
Brought to you by:
orenmnero
|
From: Sylvain L. <sla...@ho...> - 2005-12-12 15:03:06
|
Hello,
Figured out something strange!
By defining classes for user defined fields as:
public class MessageID:QuickFix.IntField
{
public MessageID():base(9000) {}
public MessageID( int i ):base(9000, i ) {}
}
And prefixing FIX to reference in the calling application:
using QuickFix;
FIX.MessageID clsMessageType = new FIX.MessageID();
it's possible to compile without errors!?
My guess is that the documentation may be misleading a bit.
I'm still fairly new at using C sharp. But I find code such as the above
not looking nice, maybe there's a nicer way to do things...
Thanks for the help anyways, maybe I'll run into further problems later :)
>From: Francis Gingras <fr...@at...>
>To: 'Sylvain Lacasse' <sla...@ho...>
>CC: qui...@li...
>Subject: RE: [Quickfix-developers] Having problem with user defined fields
>in C sharp
>Date: Sun, 11 Dec 2005 16:34:08 -0500
>
>QuickFIX Documentation:
>http://www.quickfixengine.org/quickfix/doc/html/index.html
>QuickFIX Support: http://www.quickfixengine.org/services.html
>
>Sylvain,
>
>Have you looked at
>http://www.quickfixengine.org/quickfix/doc/html/user_defined.html
>
>Francis
>
>-----Original Message-----
>From: Sylvain Lacasse [mailto:sla...@ho...]
>Sent: Sunday, December 11, 2005 16:01
>To: qui...@li...
>Subject: [Quickfix-developers] Having problem with user defined fields in C
>sharp
>
>QuickFIX Documentation:
>http://www.quickfixengine.org/quickfix/doc/html/index.html
>QuickFIX Support: http://www.quickfixengine.org/services.html
>
>Hello,
>
>I'm trying to add user defined fields to some messages in C sharp. I'm
>trying to defined field classes derived from the field classes in the FIX
>namespace in QuickFix, but I'm getting an error from the C sharp compiler
>saying that it's not possible to derived from a sealed class.
>
>Does the QuickFix need to be recompiled with special option or am I missing
>something?
>
>Thanks for your help
>
>_________________________________________________________________
>Scan and help eliminate destructive viruses from your inbound and outbound
>e-mail and attachments.
>http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=htt
>p://hotmail.com/enca&HL=Market_MSNIS_Taglines
> Start enjoying all the benefits of MSNR Premium right now and get the
>first two months FREE*.
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Splunk Inc. Do you grep through log
>files
>for problems? Stop! Download the new AJAX search engine that makes
>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
>http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
>_______________________________________________
>Quickfix-developers mailing list
>Qui...@li...
>https://lists.sourceforge.net/lists/listinfo/quickfix-developers
>
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Splunk Inc. Do you grep through log
>files
>for problems? Stop! Download the new AJAX search engine that makes
>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
>http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
>_______________________________________________
>Quickfix-developers mailing list
>Qui...@li...
>https://lists.sourceforge.net/lists/listinfo/quickfix-developers
_________________________________________________________________
Take advantage of powerful junk e-mail filters built on patented Microsoft®
SmartScreen Technology.
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.
|