| | |
Unable to find an entry point
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Jul 2008
Posts: 46
Reputation:
Solved Threads: 0
Hi
I have defined the class in C++ file as
__declspec(dllexport) int clsName ::CreateDocument(char* filein, char* fileout, char* config)
where clsName is the class name
But after I compiled the code and use the dll in .net code I am getting a run time error
"Unable to find an entry point named 'CreateDocument' in DLL"
Is there anything I am missing.
Kindly advice
Regards
Karan
I have defined the class in C++ file as
__declspec(dllexport) int clsName ::CreateDocument(char* filein, char* fileout, char* config)
where clsName is the class name
But after I compiled the code and use the dll in .net code I am getting a run time error
"Unable to find an entry point named 'CreateDocument' in DLL"
Is there anything I am missing.
Kindly advice
Regards
Karan
CreateDocument() is a member of a class, so in the application program you have to declare an instance of that class in order to call it, unless of course it is a static method. My suggestion is to export/import the entire class instead of just one method.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
This is c++ board, not C#. Which language are you using?
then in the c++ file
C++ Syntax (Toggle Plain Text)
__declspec(dllexport) class clsName { // blabla };
then in the c++ file
C++ Syntax (Toggle Plain Text)
__declspec(dllimport) class clsName { // blabla };
Last edited by Ancient Dragon; Dec 9th, 2008 at 1:01 am.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
![]() |
Similar Threads
- search in text file (C++)
- memory management in wndows 2000 (Windows NT / 2000 / XP)
- Power Reg (Windows NT / 2000 / XP)
- Help with 1.pointers and 2.error checking (C++)
- C++ program help please........ (C++)
- Help with a problem with C++ program (C++)
- Neophyte requests assistance... (C++)
- Frequent "Page cannot be..." and slow performance. Please read. (Viruses, Spyware and other Nasties)
- Page cannot be displayed (Web Browsers)
Other Threads in the C++ Forum
- Previous Thread: linked list
- Next Thread: just wondering if this would output C++ alone? need second opinion
| Thread Tools | Search this Thread |
api application array arrays based beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion convert count data database delete desktop developer directshow dll dynamiccharacterarray email encryption error file forms fstream function functions game generator getline graph homeworkhelper iamthwee ifstream input int integer java lib linux list loop looping loops map math matrix memory multiple newbie news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates text tree url vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






