Thread: [Quickfix-developers] compile error
Brought to you by:
orenmnero
From: Peter I. <pi...@at...> - 2004-08-05 21:27:21
|
hi In the fromApp(), when I try to get a Field with message.getField(field) I'm receiving the Compile Error (MS Devstudio 7.0 vb.net): "getField has a return type that is not supported or parameter types that are not supported" <snip> Public Sub fromApp(ByVal msg As QuickFix.Message, ByVal sid As QuickFix.SessionID) Implements QuickFix.Application.fromApp Dim field As New Symbol msg.getField(field) End Sub </snip> The error occurs with any value (msg.getField(55), whatever ). But, on the other hand a msg.getGroup(convert.ToUInt32(1), group) works fine. I can't guess what Im doing wrong here... any hint & regards Peter |
From: Oren M. <or...@qu...> - 2004-08-05 23:10:26
|
Yeah, it's a strange thing. This problem doesn't show up in C# or managed C++, only VB.NET. What's even stranger is that msg.getHeader().getField(field) works just fine. I've played around a little bit and have come up with a very ugly work around, but I'm going to see if I can find the root cause of this. You are doing the right thing, I think the VB.NET compiler is not. Hopefully I'll find a true resolution, but I will make some sort of workaround available regardless. --oren On Aug 5, 2004, at 4:26 PM, Peter Imhof wrote: > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX FAQ: http://www.quickfixengine.org/quickfix/doc/html/FAQ.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > hi > > In the fromApp(), when I try to get a Field with > message.getField(field) I'm receiving the Compile Error (MS Devstudio > 7.0 vb.net): > > "getField has a return type that is not supported or parameter types > that are not supported" > > <snip> > Public Sub fromApp(ByVal msg As QuickFix.Message, ByVal sid As > QuickFix.SessionID) Implements QuickFix.Application.fromApp > Dim field As New Symbol > > msg.getField(field) > End Sub > </snip> > > The error occurs with any value (msg.getField(55), whatever ). > But, on the other hand a msg.getGroup(convert.ToUInt32(1), group) > works fine. I can't guess what Im doing wrong here... > > any hint & regards > Peter > > > > ------------------------------------------------------- > This SF.Net email is sponsored by OSTG. Have you noticed the changes on > Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, > one more big change to announce. We are now OSTG- Open Source > Technology > Group. Come see the changes on the new OSTG site. www.ostg.com > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |
From: Ramprakash U. <ram...@ca...> - 2004-08-06 08:28:05
|
I have also come across the same problem and still the line contains the code msg.getField(field) in my project shows grilled lines. But I could = able to build my project. If you are not able to build, may be log off or = restart will make you to pass through. I don't remember exactly how it got = solved but it works for me eventhough VS.NET shows grilled lines. --Ram -----Original Message----- From: qui...@li... [mailto:qui...@li...] On Behalf Of = Oren Miller Sent: venerd=EC 6 agosto 2004 01:10 To: Peter Imhof Cc: qui...@li... Subject: Re: [Quickfix-developers] compile error QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX FAQ: http://www.quickfixengine.org/quickfix/doc/html/FAQ.html QuickFIX Support: http://www.quickfixengine.org/services.html Yeah, it's a strange thing. This problem doesn't show up in C# or=20 managed C++, only VB.NET. What's even stranger is that=20 msg.getHeader().getField(field) works just fine. I've played around a=20 little bit and have come up with a very ugly work around, but I'm going=20 to see if I can find the root cause of this. You are doing the right=20 thing, I think the VB.NET compiler is not. Hopefully I'll find a true=20 resolution, but I will make some sort of workaround available=20 regardless. --oren On Aug 5, 2004, at 4:26 PM, Peter Imhof wrote: > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX FAQ: http://www.quickfixengine.org/quickfix/doc/html/FAQ.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > hi > > In the fromApp(), when I try to get a Field with > message.getField(field) I'm receiving the Compile Error (MS Devstudio=20 > 7.0 vb.net): > > "getField has a return type that is not supported or parameter types > that are not supported" > > <snip> > Public Sub fromApp(ByVal msg As QuickFix.Message, ByVal sid As > QuickFix.SessionID) Implements QuickFix.Application.fromApp > Dim field As New Symbol > > msg.getField(field) > End Sub > </snip> > > The error occurs with any value (msg.getField(55), whatever ). But, on = > the other hand a msg.getGroup(convert.ToUInt32(1), group) works fine.=20 > I can't guess what Im doing wrong here... > > any hint & regards > Peter > > > > ------------------------------------------------------- > This SF.Net email is sponsored by OSTG. Have you noticed the changes=20 > on Linux.com, ITManagersJournal and NewsForge in the past few weeks?=20 > Now, one more big change to announce. We are now OSTG- Open Source=20 > Technology Group. Come see the changes on the new OSTG site.=20 > www.ostg.com _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, = one more big change to announce. We are now OSTG- Open Source Technology = Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Quickfix-developers mailing list = Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers |
From: Oren M. <or...@qu...> - 2004-08-06 14:23:21
|
I've fixed it so that there won't be any more warnings or errors from =20= the compiler. VB.NET was confused (it seems to get confused a lot) =20 with some other private methods of the same name that took in C++ =20 parameters. I think that is what the compilation error was trying to =20= say. I've renamed those methods so there won't be any more ambiguity. =20= Here is the patch: http://cvs.sourceforge.net/viewcvs.py/quickfix/quickfix/src/.NET/=20 Message.h?=20 r1=3D1.14%3ARELEASE_1_8_0&tr1=3D1.1&r2=3Dtext&tr2=3D1.16&diff_format=3Dh http://cvs.sourceforge.net/viewcvs.py/quickfix/quickfix/src/.NET/=20 Message.cpp?=20 r1=3D1.12%3ARELEASE_1_8_0&tr1=3D1.1&r2=3Dtext&tr2=3D1.14&diff_format=3Dh Or you can just overwrite the old files with these: http://cvs.sourceforge.net/viewcvs.py/quickfix/quickfix/src/.NET/=20 Message.h?view=3Dmarkup http://cvs.sourceforge.net/viewcvs.py/quickfix/quickfix/src/.NET/=20 Message.cpp?view=3Dmarkup --oren On Aug 6, 2004, at 3:27 AM, Ramprakash Umapathy wrote: > I have also come across the same problem and still the line contains =20= > the > code msg.getField(field) in my project shows grilled lines. But I =20 > could able > to build my project. If you are not able to build, may be log off or =20= > restart > will make you to pass through. I don't remember exactly how it got =20 > solved > but it works for me eventhough VS.NET shows grilled lines. > > --Ram > > -----Original Message----- > From: qui...@li... > [mailto:qui...@li...] On Behalf Of =20= > Oren > Miller > Sent: venerd=EC 6 agosto 2004 01:10 > To: Peter Imhof > Cc: qui...@li... > Subject: Re: [Quickfix-developers] compile error > > > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX FAQ: http://www.quickfixengine.org/quickfix/doc/html/FAQ.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > Yeah, it's a strange thing. This problem doesn't show up in C# or > managed C++, only VB.NET. What's even stranger is that > msg.getHeader().getField(field) works just fine. I've played around a > little bit and have come up with a very ugly work around, but I'm = going > to see if I can find the root cause of this. You are doing the right > thing, I think the VB.NET compiler is not. Hopefully I'll find a true > resolution, but I will make some sort of workaround available > regardless. > > --oren > > On Aug 5, 2004, at 4:26 PM, Peter Imhof wrote: > >> QuickFIX Documentation: >> http://www.quickfixengine.org/quickfix/doc/html/index.html >> QuickFIX FAQ: = http://www.quickfixengine.org/quickfix/doc/html/FAQ.html >> QuickFIX Support: http://www.quickfixengine.org/services.html >> >> hi >> >> In the fromApp(), when I try to get a Field with >> message.getField(field) I'm receiving the Compile Error (MS Devstudio >> 7.0 vb.net): >> >> "getField has a return type that is not supported or parameter types >> that are not supported" >> >> <snip> >> Public Sub fromApp(ByVal msg As QuickFix.Message, ByVal sid As >> QuickFix.SessionID) Implements QuickFix.Application.fromApp >> Dim field As New Symbol >> >> msg.getField(field) >> End Sub >> </snip> >> >> The error occurs with any value (msg.getField(55), whatever ). But, = on >> the other hand a msg.getGroup(convert.ToUInt32(1), group) works fine. >> I can't guess what Im doing wrong here... >> >> any hint & regards >> Peter >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by OSTG. Have you noticed the changes >> on Linux.com, ITManagersJournal and NewsForge in the past few weeks? >> Now, one more big change to announce. We are now OSTG- Open Source >> Technology Group. Come see the changes on the new OSTG site. >> www.ostg.com _______________________________________________ >> Quickfix-developers mailing list >> Qui...@li... >> https://lists.sourceforge.net/lists/listinfo/quickfix-developers >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by OSTG. Have you noticed the changes = on > Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, = =20 > one > more big change to announce. We are now OSTG- Open Source Technology =20= > Group. > Come see the changes on the new OSTG site. www.ostg.com > _______________________________________________ > Quickfix-developers mailing list =20 > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > |