Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6615399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:27:24+00:00 2026-05-25T20:27:24+00:00

I have a VS2010 dll I’m trying to link into a QT project. I’m

  • 0

I have a VS2010 dll I’m trying to link into a QT project.
I’m using QT version 4.7.4 that I built using MSVC2010. QT Creator is also using MSVC2010 to compile.

I’m implicitly linking by including the header files, referencing the .lib in the pro file, and placing the .dll in the execution folder.

Right now I’m only using functions from one class from the dll. Some of the functions link, some of them don’t. Dependency walker confirms that they’re all being exported just fine.

The functions that don’t link take a std::wstring or a std::wstring* as a parameter.

Is something redefining wstring somewhere? Any ideas would be helpful.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T20:27:25+00:00Added an answer on May 25, 2026 at 8:27 pm

    So for anyone else getting this problem, I just figured it out.

    The linker was breaking because Visual Studio by default maps wchar_t to __wchar_t, and QT does not.

    To fix: Go to Project Settings -> Configuration Properties -> C/C++ -> Language and uncheck the “Treat WChar_t As Built in Type” property.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a VC++ project in VS2010 that is linking to some dll's built
I'm using C# and VS2010. I have a dll that I reference in my
I am using VS2010 and I have a C++ project that is referencing and
I have a simple .NET dll built with VS2010 C# that exposes 2 static
I'm using MVC2 with VS2010 I have a view that has two partial views
I have a ASP.NET MVC2 project in VS2010 that can be deployed in two
I have just created a new project in VS2010 using the Visual c# >
I have a VS2010 SQL Server project. I also have a simple C# library
I am just learning Blend/Silverlight/VS2010/.net/etc. I have a simple project that resides on a
I have built a dll with VS2010 targeted for framework 4.0. When I try

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.