User Tag List

Results 1 to 2 of 2

Thread: Unresolved external symbol error when using DrawText on a cSurface

  1. #1
    Clicker Fusion 2.5 (Steam)

    Join Date
    Dec 2017
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unresolved external symbol error when using DrawText on a cSurface

    I'm writing an extension and I need to draw text to a surface. I've created a cSurface object and then use the DrawText method as shown here:

    Code:
    cSurface textSurface;
    textSurface.Create(rdPtr->width, rdPtr->height, winSurface);
    
    ...
    
    textSurface.DrawText(rdPtr->text, _tcslen(rdPtr->text), &rect, DT_LEFT | DT_TOP,
    	rdPtr->defaultColor, rdPtr->font, mode, fx, fxParam, antialiasing, 0, 0, 8);
    Whenever I try to compile the extension though, I get an unresolved external symbol error for the DrawTextW method:
    Click image for larger version. 

Name:	error.PNG 
Views:	14 
Size:	8.6 KB 
ID:	29466

    I'm using VS 2019 and the F2.5 SDK provided in the owner's lounge. I've tried compiling with the VS 2010 and VS 2017 Windows XP toolsets, and the result is the same. Any idea on how this can be fixed?

  2. #2
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    13,842
    Mentioned
    261 Post(s)
    Tagged
    3 Thread(s)
    In your VS project settings, C++ / Language, set "Treat Wchar_t as built in type" to No, this should fix the problem.

Similar Threads

  1. Chartboost error for iOS game on xcode - "undefined symbol"
    By Youthinkasido in forum iOS Export Module 2.5
    Replies: 6
    Last Post: 3rd March 2020, 02:53 PM
  2. Build error - cannot find symbol
    By IvanG in forum Android Export Module 2.5
    Replies: 2
    Last Post: 24th December 2017, 03:36 AM
  3. CRunGet.java:150: error: cannot find symbol
    By leightonw87 in forum Android Export Module 2.5
    Replies: 3
    Last Post: 14th May 2016, 12:13 AM
  4. External App Lauch error =(
    By PureDarkDev in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 27th December 2010, 03:34 AM
  5. Major Sound Issue (Unresolved!)
    By sam_sdc in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 25th October 2009, 04:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •