15,667,912 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 Javascript questions
View Python questions
View C++ questions
View Java 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 JBenhart (Top 16 by date)
JBenhart
15-Jun-13 2:26am
View
And the lmgify link was ever so helpful. Gosh, why didn't I think of that? #sarcasmimplied
JBenhart
15-Jun-13 2:18am
View
I have used the levenshtein distance algorithm in my code before but it wasn't a part of SQL directly. I thought there may be an easier SQL call to search. I am mistaken.
JBenhart
15-Jun-13 2:15am
View
Ah, SA, still being insulting to those with honest questions? I hope you don't respond to every wayward developer in this way. Calling someone naive and being demeaning isn't helpful. Obviously, I do believe someone with a friendly ear and a little patience would be able to help me or I wouldn't have posted my question here, as it has helped in the past. And since my level of SQL is somewhat limited, I wouldn't know if there was an easy solution or not now would I? It could be a simple SQL procedural call or even a basic where clause. That is why I asked. So instead of insulting an honest, if albeit "naive", question, maybe you could take the stance of trying to be helpful.
JBenhart
28-Jan-12 0:07am
View
Oh, I see. It's amazing how deep the rabbit hole goes... lol
http://www.codeproject.com/Articles/4940/Using-XML-Digital-Signatures-for-Application-Licen
Do you have any other helpful posts or links about strongly named assemblies with digital signatures?
JBenhart
27-Jan-12 23:44pm
View
Now that isn't three in the morning, I may make more sense. I can put the everything but the plugin interface implementation in the host application. I can also pass the host mandatory interface by reference to the plugin but I am not sure how that would prevent someone from not replicating the host program since they will have the interface in the plugin. I understand that an official plugin will have a reference to the host plugin but can't that also be forged? Or have I completely missed your point. I am guessing I have.
Either way, thank you very much for the explanation!
JBenhart
26-Jan-12 0:47am
View
OK so you are saying put the interface into my main app and then 3rd party developers will have to reference the main app to access the interface. If I understood that correctly, that is brilliant!
The part about the digital signature is confusing though. Can you explain that in more detail,step by step?
Thanks!
JBenhart
2-Jun-11 16:35pm
View
Ah, this helped a lot.
http://msdn.microsoft.com/en-us/library/cd43d244%28v=vs.71%29.aspx
I am still confused why the prior solution (easy to refine my code) is a negative thing. Is it for security purposes or better control of code (thus less chance of breaking with rouge plugin.) If I need to redesign my plugin architecture that is fine, but I would prefer to know specifically why. :)
JBenhart
2-Jun-11 16:26pm
View
Please explain more. :)
JBenhart
1-Jun-11 17:42pm
View
Hey SA, is there a reason to not use Dave's method? It does work. I looked over your solutions and unfortunately, once again, they are over my head. I don't understand interfaces and assemblies, etc. If I create a plugin architecture that has a basic form to load and a few methods to return data, can you tell me the drawbacks?
My plugin is a simple form. It creates an assembly of the form and then does a showdialog() on run. I just need a title, description, and bitmap from the dll.
Lastly, if you could elaborate with specific code examples, that may help. :)
Thanks to both of you! :)
JBenhart
1-Jun-11 15:22pm
View
Deleted
Ok, I was able to find and call a function. Question. Is there a way to directly invoke my function "Test" directly instead of for each'ing through the entire dll?
<pre lang="vb">
Dim assem As System.Reflection.Assembly =System.Reflection.Assembly.LoadFrom("myplugin.dll")
Dim ty As Type = assem.GetType("myPlugin.frmMain")
Dim class1 As Object = Activator.CreateInstance(ty)
Dim strMsg As String
Dim myMember() As System.Reflection.MethodInfo = class1.GetType.GetMethods()
For Each member As System.Reflection.MethodInfo In myMember
If member.Name = "Test" Then
strMsg = member.Invoke(Nothing, Nothing, Nothing, Nothing, Nothing)
Exit For
End If
Next</pre>
JBenhart
13-May-11 0:22am
View
Oooh, I just realized the images are in a database, not on disk. That may change things with efficiency if it has to load them from the database (seek and retrieve time) instead of from disk.
JBenhart
13-May-11 0:20am
View
Thank you, that is what I was thinking. Load the previous, the current, and the next screens (the 32 images). If the user scrolls to an uncached screen, say five screens down, it will have to load those from file. Still shouldn't take up too much. One question, what if a user scrolls multiple screens at a time? After the user is past the cache, each page will take a bit to load. Any idea on how to prevent that?
Thanks again!
JBenhart
23-Mar-11 0:19am
View
I'm sorry but I do not think I am understanding it fully. Basically, you create a class wrapper that tracks the joystick. Then you create a separate thread that fires upon state change? I think I am partially getting the concept but I am still missing the implementation.
JBenhart
22-Mar-11 2:23am
View
Not to be condescending but...
...huh? lol
Can you be a bit more specific? :)
JBenhart
4-Mar-11 20:03pm
View
But the numbers 01 (and 01) are unknown. I am using strMyString Like "A##B##" to see if it exists. Is there a way to use a wildcard with Regex.match?
Would:
output = Regex.Match(strMyString, @"A[0-9][0-9]B[0-9][0-9]").Value;
work?
JBenhart
4-Mar-11 15:20pm
View
Would:
output = Regex.Match(strMyString, @"A[0-9][0-9]B[0-9][0-9]").Value;
work?
Show More