Re: [Quickfix-developers] Compile error in Exceptions.h
Brought to you by:
orenmnero
|
From: Djalma R. d. S. F. <drs...@gm...> - 2006-11-14 13:38:47
|
As, far as I know this is not possible without changes in quickfix source code. But I think that this is a good feature request! On 11/14/06, Chris Griggs <ch...@gr...> wrote: > > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > > I too am getting the error > > c:\data\project\include\quickfix/Exceptions.h(249) : error C2664: > 'FormatMessageW' : cannot convert parameter 5 from 'char [2048]' to > 'unsigned short *' > > using Visual Studio 6. Is there anyway of using QuickFIX with a project > that is already using Unicode? > > Thanks, > > Chris Griggs. > > ------------------------------ > *From:* qui...@li... [mailto: > qui...@li...] *On Behalf Of *Djalma > Santos Filho > *Sent:* 31 October 2006 19:20 > *To:* qui...@li... > *Cc:* Oren Miller > *Subject:* Re: [Quickfix-developers] Compile error in Exceptions.h > > >> Error 1 error C2664: 'FormatMessage' : cannot convert > parameter > >> 5 from 'char [2048]' to 'LPTSTR' > >> c:\source\quickfix\quickfix > > > > \include\quickfix\Exceptions.h 247 > > > Brian, > > It seems to be an error related to unicode. > You cannot compile quickfix with unicode. > Thus, in your project settings go to: > > Configuration Properties | General | Character Set > and change it to Use Multi-Byte Character Set. > > BR, > Djalma > > On 10/31/06, Oren Miller <or...@qu... > wrote: > > > > QuickFIX Documentation: > > http://www.quickfixengine.org/quickfix/doc/html/index.html > > QuickFIX Support: http://www.quickfixengine.org/services.html > > > > Were you also trying to create a custom message? Were you ever able > > to compile your project? > > > > --oren > > > > On Oct 31, 2006, at 2:22 AM, briancurtin wrote: > > > > > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/ > > > html/index.html > > > QuickFIX Support: http://www.quickfixengine.org/services.html > > > > > > > > > I'm seeing this same issue currently and I was wondering if Mike > > > Smith or > > > anyone else has come across it and would be willing to pass on a > > > hint or > > > two. > > > > > > I'm new to QuickFIX (and FIX on the whole) and this is the first > > > application > > > I'm writing from scratch, using the tradeclient example somewhat as > > > a guide > > > in places. Everything else in my project compiles fine, it's just > > > the error > > > that Mike has below is holding things back. > > > > > > Thanks, > > > > > > Brian Curtin > > > > > > What causes this FormatMessage error to > > > > > > Mike Smith-14 wrote: > > >> > > >> QuickFIX Documentation: > > >> http://www.quickfixengine.org/quickfix/doc/html/index.html > > >> QuickFIX Support: http://www.quickfixengine.org/services.html > > >> > > >> I'm currently writing a Session Acceptor program in Visual Studio > > >> 2005 > > >> C++. I wanted to create a custom message type to pass back to the > > >> initiator. So, what I did was... > > >> > > >> 1. Create a TraderLogon.h file under quickfix_vs8->Message->Message > > >> Header->fix42. > > >> 2. Update MessageCracker.h under the same directory structure. > > >> 3. Updated Values.h under Field Header Files directory. > > >> > > >> I then compiled quickfix_vs8 and everything was fine. > > >> > > >> I then went to compile my acceptor application and got the following > > >> error. > > >> > > >> Error 1 error C2664: 'FormatMessage' : cannot convert > > parameter > > >> 5 from 'char [2048]' to 'LPTSTR' > > >> c:\source\quickfix\quickfix\include\quickfix\Exceptions.h 247 > > >> > > >> I couldn't figure out how to get past this, so I backed out all my > > >> changes and recompiled quickfix_vs8. I then recompiled my acceptor > > >> application, but I still get the same error. > > >> > > >> I know this is pretty obscure, but does anyone know how I might > > >> get past > > >> this? > > >> > > >> Thanks, > > >> > > >> Mike > > > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, > > security? > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > _______________________________________________ > > Quickfix-developers mailing list > > Qui...@li... > > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > |