1 solution, 2 projects: how to use function form project B into project A

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



hello,

i've got a question about using a function from project B in project A.
The projects are both in the same solution (using Microsolft Visual
Studio 2005)
the projects ara both native C++.

i've already added a reffrence from projectB into projectA.

i've got a function in projectA:
mainClass.cpp:
int main ()
{
int i = 0;
// i want to use function from project B like this:
// i = functionFromProjectB (10);
return i;
}


and in project B:
fileX.cpp:
int functionFromProjectB (int i)
{
return i * 4;
}



i know, the example is a little stange but it may be usefull to explain
my problem.

my question is how to do this or is this a .NET functionality and not
possible with native C++ projects.

.



Relevant Pages

  • Re: 1 solution, 2 projects: how to use function form project B into project A
    ... i've already added a reffrence from projectB into projectA. ... int main ... the example is a little stange but it may be usefull to explain ... my question is how to do this or is this a .NET functionality and not ...
    (microsoft.public.dotnet.languages.vc)
  • Re: whats wrong here: scan pass for transparency
    ... int nHeight = b.Height; ... Joergen Bech ha scritto: ... the all formatting gets messed up. ... and Settings\User\Documenti\Visual Studio ...
    (microsoft.public.dotnet.framework.drawing)
  • RE: Member of NMHDR structure
    ... In the commctrl.h that is included with the latest platform SDK and Visual ... Studio 6, ... int, would also be an unsigned it because the first number is ... > NMHDR structure has a member of CODE which has attribute of unsigned long ...
    (microsoft.public.win32.programmer.ui)
  • Timer class problems
    ... using namespace System::Threading; ref class StatusChecker {private: int invokeCount; ... StatusChecker(int count) ...
    (microsoft.public.vc.mfc)
  • RE: Visual C++ 2005 Excel Automation
    ... or Visual Studio 20005 ... C4183: 'GetExcelRGB': missing return type; ... member function returning 'int' ...
    (microsoft.public.office.developer.automation)