15,918,193 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by egon_ll (Top 9 by date)
egon_ll
25-Sep-10 5:24am
View
Reason for my vote of 5
Automatic vote of 5 for accepting answer.
egon_ll
25-Sep-10 5:24am
View
Thank you! Now it works.
egon_ll
23-Sep-10 11:15am
View
This can not work, as LightControl is only defined in the dll but not in the program calling the dll.
I tried it anyway and I get the error "LightControl not declared".
egon_ll
23-Sep-10 5:20am
View
I now tried this:
ILightControl^ilc = dynamic_cast<ilightcontrol^>(obj);
ilc->Settings();
The cast works fine, but when I call the method I get the error:
"Object reference not set to an instance of an object."
I think the problem is, that I'm trying to create an Object of an interface. That is probably not possible.
But as I already have the right object, there must be a possibility to tell the compiler, that the object implements the interface ILightControl, and can therefore call the method Settings().
egon_ll
23-Sep-10 5:07am
View
As LightControl is only defined in the dll, the software doesn't know LightControl at compilation time.
I defined the interface ILightControl in the dll and derived LightControl. I also defined ILightControl in my main program. Now I have to tell the compiler, that the object I created has the function Settings, and call it. This is the first time I'm working with interfaces, so I might overlook something.
egon_ll
22-Sep-10 11:59am
View
I have already tried that, but i get the error:
The object of the type LightControl cannot be converted to the type ILightControl.
(LightControl is the name of the class that implements ILightControl in the dll.)
egon_ll
6-Aug-10 9:27am
View
Thank you!! That really helped me! It had to be:
virtual bool PreFilterMessage(Message%m)
egon_ll
6-Aug-10 3:05am
View
Sorry I forgot to translate them. But I did now. Still the same error...
egon_ll
3-Aug-10 15:52pm
View
I think there is still a mistake. Now I get three more errors:
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C2217: "override" requires "virtual"
error C2144: 'bool' should be preceded by ';'
Show More