Thanks to visit codestin.com
Credit goes to github.com

Skip to content

use of wsprintfW causes Windows compilation to fail in Qt app #5

@GrahamAsher

Description

@GrahamAsher

For some reason the function wsprintfW cannot be found and causes a link error when using the Naett library for a Windows Qt app. The function is used here:

wsprintfW(contentLengthHeader, L"Content-Length: %d", contentLength);

and of course in the amalgamation. The fix is to use the standard function swprintf and change the line of code to:

 swprintf(contentLengthHeader, 64, L"Content-Length: %d", contentLength);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions