15,881,455 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 Roger Wright (Top 60 by date)
Roger Wright
30-Dec-21 17:38pm
View
It is sad... I've still got VC++ 1.42, along with docs, and a copy of TurboPascal 5.5+ with books! Time for them to go!
Roger Wright
30-Dec-21 8:40am
View
I know what you mean! I still have some of those shortcut books from the '90s. Yes, you could write a Hello World program in 21 days, but not much else. On the other hand, a lot of the more technical books are useless, as well. I still have the entire set for the MS Foundation Classes around here somewhere, along with 60 -100 older and now useless programming and networking books. What do you do with them when they become obsolete?
Roger Wright
30-Dec-21 8:34am
View
Hehehe... That's the only way to do it, jump in both feet first! The learning curve is sharp; it always has been with MS tools. Once upon a time they provided documentation - remember Scribble? Thanks for the suggestion about the database. That will be very helpful. I will no doubt have many questions later, as the last thing I used VS for was to write a visual designer for water pipes and channels to help me do the engineering for a water and sewer company in 2008 or so. Thanks!
Roger Wright
30-Dec-21 8:26am
View
Thanks, Griff! I'm not new to this, or to C#, but it's been a very long time. Oddly, the 4 shelf bookcase that was solid programming books 10+ years ago is now populated by structural design, civil engineering, and gunsmithing books. Things change. Off to Amazon!
Roger Wright
12-May-14 11:38am
View
Incorrect. The encapsulation occurs in the object; the class merely defines how to build the object.
Roger Wright
20-May-13 11:53am
View
I'll second Zoltan's recommendation. MVC 4 In Action is an excellent book, well worth a read.
Roger Wright
24-May-12 3:18am
View
We have no idea what the question means. Can you clarify what the problem is, or post some code to show what you have already tried?
Roger Wright
8-May-12 11:12am
View
Reason for my vote of 5
Excellent question, well phrased and detailed enough to be meaningful.
Roger Wright
20-Oct-11 0:44am
View
What data are you trying to access? A remote database? A shared file? General information about another computer on the network? Techniques for accessing each are different. What have you already tried? Post the code that isn't working, and clarify what it is you seek, and we can provide better answers.
Roger Wright
18-Jun-11 2:40am
View
Is there a question here?
Restate your question in terms of real code and error messages, and let us know what you've already tried.
Roger Wright
3-Jun-11 1:19am
View
Thanks! I've spent most of the night using MSDN and VS2010 Help to find any information about accessing the contents of App.config with not one meaningful result. The second reference in your post is most helpful, and tells me where to look for more! My '5' to you.
Roger Wright
25-Mar-11 23:39pm
View
I may give it a try, Henry, but the method I'm using works fine across the network. I just couldn't figure out a way to get the returned table to display. A listbox would be far simpler than the DataGridView, but the book I have for reference is rather limited. Thanks!
Roger Wright
8-Mar-11 0:27am
View
This is a completely meaningless collection of words - not even a question. Try this:
State what you want to do.
Tell us what part of it doesn't work, or what part you don't know how to do.
Post a bit of the code you've tried so that we can make suggestions.
Roger Wright
7-Mar-11 23:50pm
View
Good clarification, John. A lot of people don't understand SMTP relaying, and why it's routinely blocked by resposible ISPs.
Roger Wright
9-Jan-11 12:03pm
View
Good call!
Roger Wright
9-Jan-11 10:43am
View
Excellent resources! I have the Applied Cryptography book ( handed to me by Bruce himself ) and re-read it often. It's still tough to follow all the discrete math, but it's the best presentation I've seen yet.
Roger Wright
27-Dec-10 1:05am
View
Exactly correct. COM ports are system devices, not for users to change. If, for some reason, another name is required for an app, the underlying COM port can be encapsulated by a user object.
Roger Wright
24-Dec-10 3:08am
View
Deleted
Reason for my vote of 5
Very handy fix! I'm sure it will save a lot of work for many users.
Roger Wright
16-Dec-10 1:25am
View
Just for my education, what did you change the protocol to? What worked? Was it in the RCON code, or yours?
Roger Wright
12-Dec-10 11:09am
View
It failed:
System.Net.Sockets.SocketException was unhandled
Message="An existing connection was forcibly closed by the remote host"
Source="System"
ErrorCode=10054
NativeErrorCode=10054
It looks like the remote host doesn't like the password, or remote connections in general.
Roger Wright
5-Dec-10 0:46am
View
I think you've nailed it; that is the weirdest if construct I've ever seen. If the button FName is selected, SearchVal will be NName, otherwise it will be either undefined or an empty string. The message boxes won't be much better, as the OP misspelled 'Match' in the first one, and displays essentially the same message in both - "try again." Strange...
Roger Wright
27-Nov-10 20:43pm
View
It would be helpful to know what a "gold parser" is, and what a calitha engine runs on. I've used a pan and riffles to parse my gold, but I don't think that's particularly helpful to you. Please rewrite yor question using terms that are in general use, rather than refering to products no one has ever heard of... There's no way to tell what you're asking here.
Roger Wright
23-Nov-10 14:02pm
View
I wish it was in C#, but yes, it helps. Thanks!
Roger Wright
13-Nov-10 5:40am
View
No, I don't know where to change it in an existing project; the only time I see it is when I create a new project. Try creating a new empty project based on .Net 3.5, copy the files to the working directory for that project, then use Add Existing... to incorporate the files into the new project. I think that will work, but I haven't tried it myself.
Roger Wright
27-Oct-10 1:26am
View
Thank you, Rahul, but while I might be able to add SSIS at home, we don't have it at work and probably won't be installing it. I'm the one handling this processing right now, but as soon as I can simplify the process I plan to pass it on to someone else to do, and that requires that I stick to commonly available tools that we all share. The way things work at my company, I get all the crap work that no one can figure out, I simplify it, then I get to pass it on to someone else to do, so long as it costs nothing.
Roger Wright
27-Oct-10 0:40am
View
Can you clarify what you mean by "collision?" Are you trying to ensure that the same car isn't counted twice, or checking to see if two cars actually hit each other?
Roger Wright
12-Oct-10 3:44am
View
Hehehe... Learning never stops. If I ever spend a day without learning something new I hope someone will have the courtesy to throw some dirt on me; I've died and failed to notice.
Roger Wright
24-Sep-10 2:35am
View
So the @ character causes the compiler to treat as literals the characters that would normally be processed as special escaped characters? Sweet! Why didn't they do that long ago?
Thanks, Abhinav! :-D
Does that mean I have to add the @ character in front of my variable, or can I just use the variable as is?
Roger Wright
22-Sep-10 1:23am
View
You stopped just short of posting anything useful. Modify your question, or post a comment to it that includes the 'specific error details below' and we might stand a chance of helping you. What you've posted is a generic message that could be the result of any of hundreds of errors; we need more information to assist you.
Roger Wright
17-Sep-10 2:41am
View
Excellent elaboration, Emilio - Thanks! I completely forgot that, using C++, you're stuck with ATL, MFC, and native Windows libraries. The .Net Framework adds a huge base of functionality that the programmer doesn't have to write from scratch. That, in fact, is my only difficulty in using C#; learning the language is a snap, but learning the Framework is a lifetime project. Thanks for the perspective...
Roger Wright
15-Sep-10 3:24am
View
Just a thought for you... When I started programming, I used Assembly language, and got used to using indirect addressing at that level. It's actually quite easy, but it's very easy to make a mistake in calculating address offsets and such, especially if in the course of development you change a variable type and forget to change the addressing. The pointer arithmetic required in C++ is just a high-level implementation of indirect addressing in Assembly. It might be worth your while to do a few projects in Assembly, just for practice. But I still encourage you to focus on C#; not only is it fun, it's useful for almost anything you can do in C++. Don't let the Windows limitation scare you off - the principles you learn will apply to any platform, and Windows isn't going away anytime soon. I predict that, by the time any other platform becomes viable as an effective substitute for Windows, someone will have built a version of C# to run on it. In the meantime, learn it, use it, and enjoy the learning.
Roger Wright
11-Sep-10 3:29am
View
I am at a complete loss to interpret the question. There isn't a single meaningful phrase in the entire post. Could you please try again, preferably with the assistance of someone who speaks (and writes) English? I'd truly love to help, but I haven't a clue where to start.
Roger Wright
8-Sep-10 2:28am
View
Nice code! Did you have a question? When is the assignment due?
Roger Wright
6-Sep-10 23:34pm
View
I believe that applets run on the client, not the server, but that's way outside my experience. Your situation is interesting, though, and I'm tempted to try it myself. There used to be a service called DynamIP which allowed users to host a website from home on a dynamic IP address that did the same thing you're trying to do, and I've long wanted to duplicate that service. Try checking projects at SourceForge and CodeProject for similar projects. They might give you some helpful ideas.
Roger Wright
6-Sep-10 11:17am
View
Oops. From your initial question I thought you were doing this on a server you control. I suspect that you're going to find it difficult to convince any hosting service to let you run a Windows service on their machines. But a C# web application will work just fine, and your hosting provider won't object.
Roger Wright
6-Sep-10 3:48am
View
No, you can't. Access rights are a bit fuzzy to me; I usually learn about them after Windows refuses to do something I ask it to. It's a PITA, but the benefits are worth the hassle, I think. At the least, you'll want to create an account on the host for your app to use and assign it the rights you need. You'll need the cooperation of the systems admin for the hosting site to set that up. But that's not usually too hard; we geeks tend to stick together.
Roger Wright
6-Sep-10 1:29am
View
It looks like he has the port forwarding configured, if I'm interpreting the Virtual Server Address correctly in the image supplied. But his client has to access it via the WAN port IP address of the router to invoke the port forwarding function. Good call!
Roger Wright
6-Sep-10 1:27am
View
Reason for my vote of 5
I think it nails the problem on the head - good answer.
Roger Wright
1-Sep-10 2:51am
View
It's not at all clear what you're trying to accomplish here. Can you provide some more detail about what you are trying to do, and what you have tried thus far? As far as I know, your Form has full control over the WebBrowser control it contains, and can make any property read-only by simply limiting access to it. You must have something else in mind...
Roger Wright
24-Aug-10 0:05am
View
Reason for my vote of 5
Quite a useful tip!
Roger Wright
24-Aug-10 0:04am
View
Reason for my vote of 5
Nicely said!
Roger Wright
23-Aug-10 2:45am
View
Deleted
I found it on the back of a cereal box, but once I get my time machine working I plan to go back, hire a shyster, and sue the pants off the author for plagiarism...
Roger Wright
21-Aug-10 4:00am
View
It's still bloody wrong! To paraphrase Robert Townsend, "If you're that damned important, bring your own lunch!"
Roger Wright
20-Aug-10 0:59am
View
Reason for my vote of 5
Seems like an ideal solution, given the requirements stated.
Roger Wright
16-Aug-10 22:13pm
View
Deleted
This is a sample of how to do it, not production code, of course. This is a demo of a technique, not a code snippet to drop into a program, and the Create code should only be run once, when the calling program is run the first time.
Roger Wright
15-Aug-10 3:01am
View
Reason for my vote of 1
Answer is dead wrong; ref is used to override the default behavior.
Roger Wright
14-Aug-10 16:39pm
View
Deleted
I don't write 'em, I just steals 'em from Microsoft. :-D
Roger Wright
14-Aug-10 2:39am
View
Reason for my vote of 5
Good answer, and a good question, as it opens the door for further discussion and assistance.
Roger Wright
12-Aug-10 1:29am
View
Reason for my vote of 5
An obscure little item that catches most the first time, properly explained.
Roger Wright
9-Aug-10 21:53pm
View
Reason for my vote of 5
Very clear, exact answer...
Roger Wright
4-Aug-10 1:26am
View
Reason for my vote of 5
Exactly...
Roger Wright
2-Aug-10 23:45pm
View
Reason for my vote of 5
Succinct, on target, and genuinely helpful
Roger Wright
31-Jul-10 10:51am
View
Reason for my vote of 5
A very good question, and something I expect to need soon.
Roger Wright
31-Jul-10 10:51am
View
Reason for my vote of 5
Excellent ideas!
Roger Wright
18-Jul-10 11:54am
View
Reason for my vote of 5
Most likely solution, given the source code provided.
Roger Wright
13-Jul-10 23:57pm
View
Reason for my vote of 5
Possibly the best single resource for web development.
Roger Wright
13-Jul-10 23:54pm
View
Reason for my vote of 5
Excellent question, and one that I'd like to see answered.
Roger Wright
13-Jul-10 23:30pm
View
Reason for my vote of 5
Clear and succinct answer!
Roger Wright
27-Jun-10 2:03am
View
Reason for my vote of 5
Clear, concise, and to the point. Not to mention that it recommends what should have been the poster's first action.
Roger Wright
26-Jun-10 10:42am
View
I didn't put them there. It's a bug I reported last night, possibly something related to using Opera for posting here. When I type it and preview it, the post looks fine, but when it appears the slashes are inserted. I suspect that Chris has reverted to VBScript again...
Show More