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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:12:02+00:00 2026-06-09T02:12:02+00:00

I have an MFC project that imports a C type DLL for use. This

  • 0

I have an MFC project that imports a C type DLL for use. This code worked fine when my project was in V 6.0, but after transferring the code to v2010 and adding some .NET code to the project(using \clr) that section of my code has started throwing compiler errors about missing “)” and “;”. I have been researching all morning but I have not been able to come up with a solution. Can anyone please help me?

Below is the line section of code throwing the compiler error:

 #ifdef __cplusplus
  extern "C" __declspec(dllimport) void _stdcall KILLIT();
  extern "C" __declspec(dllimport) void _stdcall MAINDLL(char *PATH,int PATHLEN,char      *SUBDIR,int SUBDIRLEN, char *NAME,
int NAMELEN,char *HOMEDIR,int HOMEDIRLEN,char *ARCHDIR,int ARCHDIRLEN, int *FUN,int   *VERSION,int *BUS,int *PJMPV,
int *NFLAG,int *RETERROR);

#endif

These are the compiler errors I get:

DSAANA.cpp(32): error C2143: syntax error : missing ')' before 'constant'
>DSAANA.cpp(32): error C2143: syntax error : missing ';' before 'constant'
>DSAANA.cpp(34): error C2059: syntax error : ')'

I will appreciate any help I can get

Thanks
Robby

  • 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-06-09T02:12:03+00:00Added an answer on June 9, 2026 at 2:12 am

    Would be helpful if you added line numbers to each line so we know what is what. Might be a name conflict with a macro in one of the headers. For your function declarations, you could remove variable names and just have the variable types. If that fixes one of the errors, slowly add your old variable names back in until you get the error again and you will find the conflict.

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

Sidebar

Related Questions

I have an MFC extension DLL that I've written. It contains derived classes of
I have a VC++ project in VS2010 that is linking to some dll's built
We have a smallish C++ Linux project that accompanies our large C++/MFC Windows project.
I'm working on a win32/MFC project. I have a custom CListCtrl control that I
I have an C++/MFC project that I need to connect to a SOAP web
I have a dialog in a MFC project that contains a combobox with the
I have a Visual Studio 2010 project with C++ code that I want to
I have a MFC dialog based project,Now I want to add database with that
I have an existing Visual C++ project using MFC that I'm running within Visual
I have a Qt project and would like to use an external library 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.