16,011,570 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 Babak Mahmoudi (Top 9 by date)
Babak Mahmoudi
10-Apr-13 23:29pm
View
OK, so lets accept it as a solution and move on. I'm glad that it worked after all.
Babak Mahmoudi
10-Apr-13 23:26pm
View
I cannot figure out any resolution. Is this OCX part of a large application so that it depends on other components? Can you send me the OCX file?
Babak Mahmoudi
10-Apr-13 9:09am
View
Sorry for my mistake, yes you should use LoadFrom. The simplest way to avoid the infinite loop is to save args.name in a field, now when the event is fired you check this field if it contains exactly the same one it means that you are calling yourself now you may try another location or simply return null.
By the way I hoped that AppenPrivatePath would work though I had not used it before myself.
Babak Mahmoudi
10-Apr-13 6:40am
View
I just added what I think as a new solution below.
Babak Mahmoudi
10-Apr-13 1:12am
View
Ok, did you removed C++ dll? I still think that you can remove this layer.
Babak Mahmoudi
8-Apr-13 4:10am
View
Why CREO cannot use C++\CLI, is probably because the exported functions have dual entries (i.e they have both managed and native). Try exporting pure native entries with '#pragma managed' directive. I'm sure you can eliminate the C++ dll in your solution.
Babak Mahmoudi
8-Apr-13 4:02am
View
DLLs are loaded from the directory where the main executable is loaded, not the working directory, so I think you should place the DLLs in C:\Y, where CREO.exe is located or use some other way to influence the DLL seach, such as locating dlls in assembly cache. (See http://msdn.microsoft.com/en-us/library/windows/desktop/ms682586(v=vs.85).aspx#search_order_for_desktop_applications for more details on Dll Search Mechanism)
I dont think Cygwin has any influence in the problem.
By the way, there is an ILMERGE tool that can merge two assemblies in one. It's a great tool, but I really wonder if it can Merge a mixed (C++/CLI) assembly with a pure one. Nevertheless there's still a way to merge the C# layer with the C++ layer (http://blogs.msdn.com/b/texblog/archive/2007/04/05/linking-native-c-into-c-applications.aspx), this way you would only have a single DLL, which can be registered as a plugin and assuming all other refrenced assemblies are system assemblies and located in the Assembly Cache you'll get a neat solution with less dependencies.
Babak Mahmoudi
7-Apr-13 0:56am
View
It seems that "kmbds.dll" is using some other dll(s) that are not accessible. Try to copy any other dll that may be used by kmbds, to your application folder. You may use "Depends.exe" to check kmbds.dll dependencies on other dlls.
Babak Mahmoudi
7-Apr-13 0:49am
View
Deleted
Do you want to change these variables or just to use them?
Show More