15,667,247 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 Python questions
View Javascript 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
MatthysDT
(Top 33 by date)
MatthysDT
1-Sep-15 5:48am
View
As just proven by me. Thanks ALFRED!
MatthysDT
14-Jan-15 3:31am
View
You're right, I think my asking the question here is pre-mature, I actually expected this response but thought I'd try my luck, I'll retract and re-ask at a later stage. Thank you anyway.
MatthysDT
16-Sep-14 3:04am
View
Changed the title, that better?
MatthysDT
21-May-14 3:06am
View
Hi Shrikant, the accepted solution for this post was Application.Restart() and it works like a charm!
MatthysDT
8-Mar-13 2:55am
View
O.k, didn't get quite the answer I was looking for, but the general idea is that I should at least encrypt the files, roger that. So answer accepted... thank you!
Can I ask a plain question and hope to get a YES/NO answer from it?
Q: With Directory Browsing disabled, is there any way for an attacker to determine the names of one or more files within an un-browsable directory on that server? (Given that the names are randomly generated, so ignore the possibility of guessing the files names when answering).
MatthysDT
7-Mar-13 10:04am
View
I should have known there'd be a comment about my "100% secure" server, I deserve that. My question (in theory) still stands though.
MatthysDT
7-Mar-13 9:43am
View
Thanks for the comment. Physically, the server is 100% secure and there are no concerns in that department. The client will be an iOS application. The client-server communication will occur over HTTPS, should I still encrypt the files? My question is more theoretical in nature, I want to know, can such files, theoretically, be accessed by someone who doesn't know what the file names are? Assuming that both the server and clients are physically secure.
MatthysDT
5-Sep-12 3:07am
View
Thanks Sergey. You are going to be terribly disappointed in me, but due to deadlines and other time-constraints I solved this with reflection. It's not pretty, but it works. Hopefully I'll have time again to revisit your solution within the next two weeks.
MatthysDT
5-Sep-12 3:07am
View
Deleted
Thanks Sergey. You are going to be terribly disappointed in me, but due to deadlines and other time-constraints I solved this with reflection. It's not pretty, but it works. Hopefully I'll have time again to revisit your solution within the next two weeks.
MatthysDT
28-Aug-12 6:52am
View
Hi Sergey
When I read your solution I thought I understood it, but I'm only getting to the implementation of it today, and I'm having a hard time.
In your example above, where would the file for "abstract class PluginEventArgs" be located, and how should I reference it in both my main project and my plugin?
Must it be an abstract class, or can it also be an interface?
MatthysDT
16-Aug-12 3:05am
View
Thank you SA, couldn't have asked for a better response!
MatthysDT
15-Aug-12 11:18am
View
Hi Wes Aday, like I said, there is no such class (MyCustomEventArgs) in my project since the DLL (whic does have that class) is referenced using late binding. Then you may ask why don't I just create such a class? I could, but if possible this project must be generic for different types of DLL's, but I will resort to that option if all else fails.
MatthysDT
11-Apr-12 10:37am
View
Hi rgonzruiz, thanks, that's actually quite useful and I think it's relevant to the topic, albeit 2 years old. I will refer back here when next I create a service and and want the recovery attributes set programmatically during installation. Regards
MatthysDT
25-Aug-11 10:03am
View
I don't have UI element in this project. I declare the PrintServer object globally in my PrintHostClass and instantiate it in the constructor.
PrintServer is a .Net class in System.Printing
(C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\System.Printing.dll)
I'm beginning to think that that class is not thread safe.
If I declare the PrintServer (_hostingServer) within the CheckHost() method, I don't get the same error, but this is not ideal.
MatthysDT
25-Aug-11 8:40am
View
If I discard the BackgroudWorker and run _ph.CheckHost within the Timer_Elapsed event of a System.Timers.Timer, I get the exact same issue, eventhough I'm no longer using threading.
MatthysDT
25-Aug-11 8:23am
View
Thank you Shameel, I'm new to Threading, on which object should I check the InvokeRequired property?
MatthysDT
22-Aug-11 12:03pm
View
Thank you.
Like I mentioned earlier, that I had an instance where that field was correct according to my timezone without my tampering, so at this stage I don't trust it enough to use it at all. Could be paranoia and there is probably a good explanation, but I'd rather populate and use a custom field.
MatthysDT
22-Aug-11 11:24am
View
Thank you!
I'll check out and try implementing that pattern 1st thing tomorrow and get back to you ASAP!
MatthysDT
22-Aug-11 11:17am
View
Thank you.
I want to add my own TimeJobSubmitted field since the one I get is offset by 2 hours, I expect this is because it send me the GMT DateTime, I have no idea why. And I don't like hardcoding the GMT+2 for my timezone. And to add to this, at one stage, the DateTime actually came through as GMT+2 without me changing any code that should have affected it, so at this stage I do not trust the value of that field and would like to add my own.
If I can't inherit, I'll create a class that instantiates the PrintSystemJobInfo object, it's just more cumbersome to work with.
MatthysDT
4-Jul-11 6:30am
View
Well, best way to describe what I mean is by code. The following code is in a Stored Procedure on the DB:
DECLARE rst CURSOR LOCAL
FOR
SELECT a.field, b.field, c.field from myATable a
join.... -- join for myBTable
join.... -- join for myCTable
join.... etc
WHERE..... AND.... AND....
ORDER BY........ --(get the picture?)
OPEN rst
FETCH NEXT FROM rst INTO @a, @b, @c
WHILE (@@fetch_status = 0)
BEGIN
Print @a + @c + @b
FETCH NEXT FROM rst INTO @a, @b, @c
END
In this example, would it be faster to create a table variable, say, myABCTable and populate it with the required data, and use @myABCTable in the record set instead of the DB directly. (This means all WHERE clauses and JOINS are moved out of the record set's select)
I avoid sub-queries where possible and try to make all queries work with JOINS instead.
Thanks!
MatthysDT
12-Jan-11 10:50am
View
Thanks for your edit. ""Lastly, I asked the system guys here where I work, and they said they aren't aware of any way to restrict a VPN connection to a single application."" - this is what I was looking for, something to tell me that it probably can't be done.
As for my vote, my apologies, I acted om impulse, but for this reason: My question is long-winding and very specific, I'd rather have no answer at all than someone half-reading it, "Googling" for an answer and then have the audacity to say "Google is your friend" implying that I didn't search for this at all. Ideally I would have liked to discuss this with someone who have worked with PPTP connections before, as I'm sure there are many such people here. As Espen Harlinn mentioned, the number of possible solutions are mind boggling, and THOSE are the solutions I wish to discuss!
True, your answer doesn't merit a uni-vote, your attitude and "Google" comment however, does. If "Google is your friend" is in some way your signature to all posts, please accept my sincere apologies.
MatthysDT
12-Jan-11 9:29am
View
Thanks, will check this out. Will I be able to control access to this connection? I.e. the rest of the client PC shouldn't be able to access that connection. I want to connect the application only. If it were as simple as establishing a VPN connection I wouldn't have posted it here.
MatthysDT
15-Nov-10 3:27am
View
Thank you, that covers spelling. Any suggestions for AutoCorrect? E.g, changing "DOg" to "Dog"?
Your second link is forbidden, but I'll search for the article in CP.
MatthysDT
22-Sep-10 4:53am
View
Thank you ARopo, following your instructions, it basically points to my VB6 DLL, which works fine on my system.
Another point worth mentioning, this very same DLL referenced by our old software (not .Net) on the very same PC, works fine. So I'm pretty sure the DLL doesn't crash internally.
MatthysDT
22-Sep-10 4:37am
View
All DLL's are registered using regsvr32.exe
MatthysDT
11-Aug-10 2:38am
View
Simple, just don't run your code on the last line. So if the row index = DatagridView1.NewRowIndex don't format it.
MatthysDT
3-Aug-10 9:30am
View
Reason for my vote of 5
great reference
MatthysDT
3-Aug-10 7:35am
View
Thanks, that article was very helpful. Unfortunately, that project also prints random documents with the DocumentName as "Local Downlevel Document". So, now I'm no longer dependent on Adobe, so at least I've made some progress!
MatthysDT
2-Aug-10 5:09am
View
Reason for my vote of 1
bad answer
MatthysDT
2-Aug-10 5:08am
View
Reason for my vote of 1
bad answer, READ the question!
MatthysDT
2-Aug-10 5:06am
View
My question wasn't WHY, it was HOW.
But anyway, here's WHY!
Our software displays the optimal amount of rows so that they don't have to scroll, this depends on the user's resolution and the size of the main window and the current sub-window of our application.
MatthysDT
21-Jul-10 11:21am
View
Thank you, you've been a great help.
The stress test proved that the code is sound, no more IO access errors! Learned a lot today!
Cheers!
MatthysDT
21-Jul-10 10:09am
View
Reason for my vote of 5
Great answer!
Show More