16,022,413 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 .NET 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 Kedar Kumbhar (Top 10 by date)
Kedar Kumbhar
5-Apr-11 8:08am
View
If there is no way to change .h file to win form then, i think i will have to do it manually. I will create a new form.h and copy paste .h file code to it. I guess this will solve the issue.
And about CLI/C++, that's the requirement. Can't help...
Kedar Kumbhar
21-Mar-11 9:43am
View
Ok, got it... Done.
Code running...
Thanks.
Kedar Kumbhar
21-Mar-11 8:36am
View
No, I get it. Even I removed the 'If' condition. But, the next statement (just after 'if')is unexpectedly getting executed. This is what I don't want to happen. If the event is null then I don't want object to be reinitialized (happening in the next statement).
I guess I will have to look into the link suggested by SA & you.
But, still in the link there is no way suggested to solve this issue.
Sorry, but can u explain more?
I fear SA will get vibrant after reading this..:-)
Kedar Kumbhar
21-Mar-11 6:29am
View
Actually, I need to check if the event is empty or not. Based on this the next statement will execute. This project is a porting project. The C# project contains lots of such 'Event' condition check with 'null'. I am desperately seeking for a solution. Can't change the implementation much...
Kedar Kumbhar
11-Mar-11 4:39am
View
Ohh...
Done... Acepted...
Thanks
...Kedar
Kedar Kumbhar
11-Mar-11 2:01am
View
Thanks SA. Thanks Olivier.
Corrected the code as you suggested. The void problem was a typo. Changed the code to match completely with library declaration.
Next problem was in the Meta file. Some how it has created to declarations of the functions.
The compiler created slightly different metadata in two modules with same type. At link time, when this metadata is merged, the error is thrown because the name for the type is the same, but there is some discrepancy in the rest of the metadata describing that type.
I resolved the ambiguity removing the multiple definition and loading the library again.
With this to thing resolved the code is running now...
Kedar Kumbhar
10-Mar-11 7:48am
View
Hi Olivier,
It is done the same way as yuo mentioned. But, still it is giving error. I am sure that now syntacticaly I am not wrong.
The problem is in meta file in has created 2 conflicting definition. One from the inherited interface & other that is written locally... But I am not sure ha...
Kedar Kumbhar
10-Mar-11 7:18am
View
Hi SA,
Added the sample code. I have written the code in similer way.
Even i have sensed that cli-c++ compiler in .net is week...
Kedar Kumbhar
10-Mar-11 1:33am
View
Hi SAKryukov,
Your post is actually a solution for my problem. But, when i remove all the declaration from the .h file and keep only defination in the .cpp file, the compiler reports same error "Class must provide an implementation for interface".
Even when i give the full specifier (COMWORKSPACE::IWorkSpaceEven::WorkSpaceMessage(...) then the compiler gives error "Explicit override of method WorkSpaceMessage".
If i go with my previous implementation of declaration in .h & definition in .cpp, the code gets compiled. But, later gives linkUp errors LNK2022 - MetaData Operation failed - "Inconsistent method declaration in duplicated types".
I guess I am not able to implement the interface methods properly...
Kedar Kumbhar
9-Mar-11 1:43am
View
Actually, we both are looking a answer for this. He is registered in msdn and me in code project...
Show More