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 7128877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:11:03+00:00 2026-05-28T11:11:03+00:00

I need to work on a project that was written in msvcpp6.0sp6 I DIDN’T

  • 0

I need to work on a project that was written in msvcpp6.0sp6

I DIDN’T write the project. I know very little about its inner works. I DO know it WAS POSSIBLE to build it in the past.

while trying to build this project that was built successfuly in the past(not by me)

I get the error:

        Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)

for example:
error C2664: ‘strncpy’ : cannot convert parameter 2 from ‘const unsigned short *’ to ‘const char *’

error C2664: ‘void __cdecl CString::Format(const unsigned short *,…)’ : cannot convert parameter 1

for a few dozen implicit conversions. I mustn’t change the code. how can I force the complier to accept the implicit convertions?

  • 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-28T11:11:03+00:00Added an answer on May 28, 2026 at 11:11 am

    I mustn’t change the code. how can I force the complier to accept the
    implicit convertions?

    Quite likely you need to get the same compiler that was used for the code in the first place, and use that.

    If my guess (in a comment on unwind’s answer) is correct about that unsigned short* error then it’s simply not possible to compile this code in Unicode mode, because the source is insufficiently portable. Suppressing the error for the conversion, even if it’s possible via some compiler setting, will just result in code that compiles but doesn’t work.

    I’d expect that also to imply that the old dll probably isn’t compatible with the rest of your current code, but if you’ve been using it up to now then either I’m wrong about the reason, or else you’ve got away with it somehow.

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

Sidebar

Related Questions

I need to write a gauge control in WPF for a project at work.
Need to write a post build event in VS 2010 project that copy just
I'm currently in a project that need to work both on Mac and Windows.
In a project that I'm about to wrap up, I've written and implemented an
I need to work on C++ project on my windows machine. My project will
I need some help with a work project I have been assigned. At the
I am a Java programmer and need to work on a Flex/ActionScript project right
We are starting a rather complex new project at work, and need some sort
I need to work with some old C++ code that was developed in Visual
I have an old product that I need to update, written in C# and

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.