It sounds to me like this has something to do with your project settings -- it's not an API specific problem.Quote from riskaverse305:
thanks for the reply, def helped resolve my mental block re: observers/observables
but of course, one problem solved reveals 20 more, so here goes:
first off, i'm using VC++ 8 to compile. in my stock class .cpp file i've included "Messages.h" mirroring the stock.cpp in the AnvilTrader example. When i go to compile the extension (which just consists of the api files, a dll entry .cpp, and a header and .cpp file for the stock class derived from observer) i get a ton of errors... one for every message in MessageIds.h:
\desktop\anvil api defaults\32-bit\anviltraderexample_2_6_7_4\MessageIds.h(6) : error C2236: unexpected 'enum' 'MessageIds'. Did you forget a ';'?
1>\desktop\anvil api defaults\32-bit\anviltraderexample_2_6_7_4\MessageIds.h(7) : error C2447: '{' : missing function header (old-style formal list?)
1>\desktop\anvil api defaults\32-bit\anviltraderexample_2_6_7_4\Messages.h(109) : error C2065: 'M_REQ_RESEND_PACKET' : undeclared identifier
1>\desktop\anvil api defaults\32-bit\anviltraderexample_2_6_7_4\Messages.h(118) : error C2065: 'M_RESP_RESEND_PACKET' : undeclared identifier
and so on for every message id
i'm obviously doing something silly. the a/c is broken in my office and my brain is functioning accordingly
AnvilTrader still compiles and runs, so its not anything i did to MessageIds.h
thanks again for the help
Off the top of my head, I couldn't tell you what is wrong. If you wanted to zip up your entire project and send it to me, I might be able to help. You can PM me if you want.