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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:54:43+00:00 2026-05-18T02:54:43+00:00

We have few projects, which are compiling my makefile. These make file working fine

  • 0

We have few projects, which are compiling my makefile. These make file working fine on Windows 32 and Visual Studio 2005.
For Windows 64 porting, we are using Visual Studio 2008. In make file we defined /d “_WIN64” to set the 64 bit includes and other thing. In one file we are including the windows.h header. But as its declaring the pre processor WIN32. So after that we are getting error for ODBC. I tested this as following
First:

#ifdef WIN32
in sds;
#endif
include windows.h>

Here we are not getting error for in and sds.

Second:

include windows.h>

#ifdef WIN32
in sds;
#endif

Here we are getting error for in and sds. Which shows windows.h is declaring WIN32.
The erro we are getting for function SQLBindCol as follows:

error C2664: ‘SQLBindCol’ : cannot convert parameter 6 from ‘SQLINTEGER *’ to ‘SQLLEN *’
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

Any idea to get rid from it?

makefile entry is as :

CPP_PROJ=/nologo /MT /W3 /GR /EHsc /O2 /I "..\..\include" /I"$(VC_ROOT)\include" /I"$(WINSDKDIR)" /D "_WIN64" /D "NDEBUG" /D_CRT_SECURE_NO_WARNINGS /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c 
  • 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-18T02:54:43+00:00Added an answer on May 18, 2026 at 2:54 am

    The Win32 #define(s) should exist as well as the Win64 one(s) when compiling x64 code.

    Think of Win64 as a superset of Win32 in this context.

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

Sidebar

Related Questions

I say project file in the loosest sense. I have a few python projects
I have to set a few projects in our VS 2005 solution to build
I have been in this situation quite a few times where visual studio does
I am working on a C# application which I have divided it to few
I'm working on a few ASP.NET MVC projects which all require database functionality. Unfortunately,
I have a few C# .dll projects which are common to many applications. Currently,
I have C# project in which I am using Microsoft.SqlServer.Management.Smo, Microsoft.SqlServer.batchparser.dll and few other
I have a project in PHPStorm, which contains a few libraries (Zend, Doctrine, ...)
I have a few projects where we have 3-5 different web.config.xxx that should meet
I have a few .Net projects that would benefit from using a document/object database

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.