Unresolved Symbol Error in EZFontCreate, Petzold

This is a discussion on Unresolved Symbol Error in EZFontCreate, Petzold within the Windows Programming forums, part of the Platform Specific Boards category; I'm refrencing Charles Petzolds book on win32 programming yet In the code I have slightly modified with a win32 template ...

I triple checked the signatures and types on the relevant functions and everything seems to match. I'm using the device context from the main window in the template code to call PaintRoutine which is from the fontrot program in petzolds book under Text and Fonts. I could post more code but do not know what to post.

I'll trust you on the types matching (I normally don't). The cdecl would seem to me to indicate that the function "EzCreateFont" should either be compiled as C code or be inside an "extern C" block if compiled as C++, so you should check how the file that contains the function was compiled.

I'll trust you on the types matching (I normally don't). The cdecl would seem to me to indicate that the function "EzCreateFont" should either be compiled as C code or be inside an "extern C" block if compiled as C++, so you should check how the file that contains the function was compiled.

I checked the code, the cpp that contains the function is being compiled with preprocessor 32 functionality. Over the entire project this might not be true. I doubt the their is a linking error with the includes but it is possible, and it could have to due with the fact that the project was not started as a win 32 project rather a win 32 project was included into an empty project in which a win 32 template was include (thus the setteings may not have crossed over). Perhaps you could guide me in checking the include theory as I forgot exactly ifndef in relationship to multiple header files and cpp files in a project. Thanks for replying and taking the time to read this post.

I looked up the link error tried compiling with clr support and and tried changing the debug mode as described still no success the errors described on msn where fairly cryptic even when explained but the ones I understood I looked at and couldn't find anything wrong, it's probably something obvious like wchar or statically passing a tchar with the Text routine but I am still stumped. Thanks for your patients your dealing with a pretty inexperienced coder here.