Message 1 of 8
Use function from other Project?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Problem:
I create 2 Arx files and in file A I have a function in a cpp and an h for it. With a class. Here is the code.
cpp-Datei (HALLO.CPP)
#include "StdAfx.h"
#include "HALLO.h"
void SAY::HALLO()
{
acutPrintf(_T("\nHALLO"));
}
h-Datei (HALLO.H)
#ifndef HALLO_H
#define HALLO_H
class SAY
{
public:
void HALLO();
protected:
};
#endif
In the same project file this works with:
SAY SAY;
SAY.HALLO();
But I would like to call the function from file B in the acrxEntryPoint.
I used:
#include "..\HALLO\HALLO.h"
...
SAY SAY;
SAY.HALLO();
but when I compile it spits out a fatal error LNK1120: 1 unresolved externals. Why? Or how do I have to call the function then?