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

  • Home
  • SEARCH
  • 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 7042341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:09:24+00:00 2026-05-28T02:09:24+00:00

Please help me on this, its really irritating may be because i am doing

  • 0

Please help me on this, its really irritating may be because i am doing it for the first time and have no experience.

Aim : to find factorial of a number

.
.
STEP 1: Creating new project of type VC++ MFC and in templates MFC DLL

STEP 2: Then comes create a regular DLL (MFC shared) i say Yes

STEP 3: I create header file (ServerHeader.h) with the following code

_declspec (dllimport) int factorial(int no);

STEP 4 : I create cpp file (ServerFactorial.cpp) with the code

#include "stdafx.h" 
_declspec (dllexport) int factorial(int no)
{


return no == 0 ? 1 : no * factorial(no-1);
}

STEP 5 : i BUILD the project and everything is fine

STEP 6 : I create another project Client of VC++ Win32 and in templates Win32 Console Application with application setting as EMPTY PROJECT and create a new cpp file (MainClass.cpp) with the code

#include "ServerHeader.h"

#include <iostream.h>

void main()
{


int no,i;


cout<<"Enter number";


cin>>no;


i=factorial(n);  // calling the method


cout<<endl<<i;   // printing ans

}

STEP 7 : I copy the ServerHeader.h, Server.dll, Server.lib (there are 2 library files, one is Object and other is Export) i copy all 4 from Server to Client

STEP 8: Right click on Client project set the linker’s general setting and write the path of my lib file which i copied in Client project folder

STEP 9: i build my project i get

Error 1 fatal error C1083: Cannot open include file: ‘iostream.h’: No such file or directory f:\client\client\mainclass.cpp 2 Client

Sorry for such a long post.

  • 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-28T02:09:24+00:00Added an answer on May 28, 2026 at 2:09 am

    It should be #include <iostream> then you need to include the namespace, std::cout, or include a using namespace std statement in your code.

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

Sidebar

Related Questions

Please help me about this issue... In my application i have calender where user
can you please help me with this issue the String class does not have
Can anybody please help me with this as I have no idea why public
Please help! I have been grappling with this error for days and I cannot
i am really not able to figure this out myself so please help me
I have this situation that is really irritating me now. At random times with
Good day. I could really use your help on this one. I have a
Please help this would be my last problem in dealing with access database with
Please help me convert this line to C#. objManagementBaseObject.SetPropertyValue(hDefKey, CType(&H & Hex(RegistryHive.LocalMachine), Long)) Related
Hi Guys could you please help me refactor this so that it is sensibly

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.