so in C++, designers removed the functionality to define a struct within the definition of another struct? I pulled the struct out like you suggested and I received much fewer compiler errors (5 total). one is:
Code:
twsapi.cpp(813) : error C2440: 'initializing' : cannot convert from 'void *' to 'tws_instance_t *'
1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast
i added the explicit cast (tws_instance_t *), but I'm not confident that this is a good thing to do. Why would this cast be necessary in C++ and not in C?
Removing the extern "C" (and its # directives) didn't seem to do anything. I've never had to use extern before and I'm not clear on what "C" actually is. It seems like it is saying that a literal is defined in another file. What is the point of that?