15,905,616 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 fisadmaster (Top 22 by date)
fisadmaster
23-Nov-18 8:51am
View
Thanks your proposal works perfect
fisadmaster
23-Nov-18 4:45am
View
Thanks for the comment but you are wrong because when I do not use the RGiesecke package the C# class library works as it should and I can load it from a console application in C++ and show the form with the webbrowser.
What I understand is that the RGiesecke package causes the C# class library to run on a multi thread and that is incompatible with the webbrowser component.
fisadmaster
18-Nov-18 4:48am
View
I make a simple change from long to INT64 and pass the class as reference and is working now, thanks man!!!!.
obj->SetCallBacks((INT64)CPPCallBack);
fisadmaster
18-Nov-18 3:21am
View
I have made a clean compilation, I have rewritten all the code, I thought something was strange and now the C # library does not load, if I disable the line: obj-> SetCallBacks ((long) CPPCallBack); the form is displayed, if enabled, it enters a loop without an answer and ends after a few seconds. I believe that there is a problem in the statement, Any idea of the problem?
fisadmaster
17-Nov-18 17:05pm
View
I'm sorry, I was thinking that I had to pass all the code of the class to the code of the form, but I do not know how to pass the class as a reference to the form?
fisadmaster
17-Nov-18 16:50pm
View
But if I pass TheClass to the form I can not see it and declare it from C ++?
fisadmaster
17-Nov-18 16:18pm
View
I'm sorry but I'm lost, BimObjectCSharpClass is the namespace and the class is TheClass. which I have referenced in the button code to access LogMsg, the form have the same namespace:
fisadmaster
17-Nov-18 15:58pm
View
the form has a button which in the click event has this code:
fisadmaster
17-Nov-18 15:26pm
View
I have done a test without showing the form and the function works, the return call sends the message, but what I need is to send several messages while the form is displayed
fisadmaster
17-Nov-18 15:22pm
View
Now you can see the complete code I have published for C++ and C#, the code of the button that should send the message of the release is:
TheClass myClass = new TheClass ();
myClass.LogMsg ("Work !!!");
fisadmaster
17-Nov-18 15:08pm
View
with the debug the C # form is not shown, the form is show on released but the callback function is not executed. My configuration is for 64 bits
fisadmaster
17-Nov-18 14:52pm
View
Check the changes but nothing happens, not return to C++
fisadmaster
17-Nov-18 13:48pm
View
I try that too, same problem
fisadmaster
17-Nov-18 13:37pm
View
Thanks for the code but the part,
_CPPCallBack = (CPPCallBack) .Marshal.GetDelegateForFunctionPointer (
cppCallBack,
typeof (CPPCallBack));
shows me the error: CSharpCom.CPPCallBack is a type which is not valid in the given context and CSharpCom.CPPCallBack does not contain a definition for 'Marshal'
I have included your code in the question so you can see the side of C # implemented
Any idea?
fisadmaster
17-Nov-18 11:07am
View
I have corrected the code but when I run the callback function it gives me an ECall security error
fisadmaster
16-Nov-18 9:37am
View
That is the reason that I am asking how to adjust the code, the original code is not mine, but it has been useful for me before making bridges. If you are so kind could you show me how to correct the statements?
fisadmaster
15-Nov-18 9:46am
View
I really know what I need, what I have asked is how to achieve it? The article does not show a conversion that satisfies the question made here.
fisadmaster
15-Nov-18 2:44am
View
Thanks for the data, but the article is for C++ to C++ not C++ to C#.
fisadmaster
14-Nov-18 14:00pm
View
Thanks for the comment but, I need the opposite of what is described in your article, I need to load a C # dll that shows a form and when clicking the button located in this form, an integer must be sent back to the C ++ application that has loaded the C # library and esdta should show the result in the console (I think it is callback from C ++ to C #).
You import the functions of C ++ to a C # application, I need to react from C # to unmanaged C ++
fisadmaster
14-Nov-18 10:11am
View
You are right with C++/CLI code, But, I have already done a lot of examples but they are all of the static type, a call to a function in the C# library and a return value, but no example of how to expect a dynamic response, that is, more once for each execution, like a listener from unmanaged C++
fisadmaster
14-Nov-18 9:55am
View
@Richard MacCutchan, the requirement is established in this way because it needs to perform different operations between an unmanaged C++ application and a library in C# and it is necessary to test the interoperability between languages for future implementations
fisadmaster
14-Nov-18 9:52am
View
Deleted
@Richard MacCutchan, the requirement is established in this way because it needs to perform different operations between an unmanaged C++ application and a library in C# and it is necessary to test the interoperability between languages for future implementations
Show More