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

The Archive Base Latest Questions

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

I have old code that I just decompile (source was lost but we own

  • 0

I have old code that I just decompile (source was lost but we own it).

I’m now trying to recompile it but have these erros:

 Error  1   'System.Data.SqlTypes.SqlBoolean.operator true(System.Data.SqlTypes.SqlBoolean)': cannot explicitly call operator or accessor   C:\NCESTableGenerator\NCESTableGenerator\db\OutputTableDAO.cs   89  32  NCESTableGenerator

on the following piece of code:

 if (SqlBoolean.op_True(reader.GetSqlInt32(0) == 1))

and

 Error  3   Cannot convert type 'bool' to 'sbyte'   C:\NCESTableGenerator\NCESTableGenerator\Formatter.cs   172 30  NCESTableGenerator

on the following piece of code:

 public static string GetEstimateFloatStr(double data, int sn, int num, ref bool roundedZero, ref bool lowN)
    {
        if (sn <= 30)
        {
            sbyte num1 = (sbyte) lowN;
            lowN = true;
            return "‡";

Any ideas?

  • 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-24T17:02:28+00:00Added an answer on May 24, 2026 at 5:02 pm

    In the first line I think it’s safe to rewrite it as

    if (reader.GetSqlInt32(0) == 1)
    

    and the 2nd one the troublesome line (looks like it can be removed because of the return) but if you cant remove it change it to

    Int16 num1 = (Int16)lowN;
    

    or

    char num1 = (char)lowN;
    

    Since Sbyte is not CLS-Compliant as listed by MSDN.

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

Sidebar

Related Questions

I have some old code (an old but still maintained VB6 application) that from
I have some fairly old code that runs just fine in Excel versions before
Found some old code, circa VS 2003. Now I have just VS 2008 (SP1)
I have old code that uses size_t which IIRC comes from cstring.h. On OS
I have some old code that uses qsort to sort an MFC CArray of
We have some really old code that calls WebServices using behaviours (webservice.htc), and we
I have some old C code that I would like to combine with some
I have some old python code that uses the pywin32 extensions. Starting out with
We have some old C code here that's built with nmake. Is there an
I have some old code written in C for 16-bit using Borland C++ that

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.