| | |
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 |
Tag cloud for C++
6 add api array arrays beginner binary bmp c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete desktop directshow dll download dynamic encryption error file forms fstream function functions game givemetehcodez google graph gui iamthwee ifstream input int java lib library lines linkedlist linker loop looping loops map math matrix memory microsoft newbie news number output pointer problem program programming project python random read recursion recursive reference return sort string strings struct studio system temperature template templates test text text-file tree unix url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






