15,893,266 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 David Knechtges (Top 13 by date)
David Knechtges
27-Jan-16 9:26am
View
Bill, thanks I ended up using http://blogs.msdn.com/b/pfxteam/archive/2012/04/13/10293638.aspx
under the sections avoid unnecessary marshalling and offloading to another thread.
David Knechtges
15-Jun-15 15:16pm
View
No I set it to something like "/images/resize/test.png" where the images folder is a subfolder of the directory it is running from.
David Knechtges
15-Jun-15 11:46am
View
Yeah, that is a good idea. Unfortunately, I have the clients update themselves every 1.5 seconds, so I can't look at it in the browser's tools before the update happens. Perhaps there is a way in Chrome or IE to make the page stop updating itself through the page's timer?
Thanks.
David Knechtges
3-Apr-14 9:58am
View
I ended up doing exactly what you suggested before I saw your response.
David Knechtges
21-Mar-14 9:32am
View
Dave, that isn't entirely true. We have an ASP.NET application that does get the MAC address of a browser client on the same network as the server. However, as you say, you can't get it directly.
The way to do it is to get the IP address of the client, then look up the MAC address in the ARP cache on the server.
David Knechtges
20-Dec-13 11:41am
View
That worked perfectly for me.... Thank you very much!
David Knechtges
20-Dec-13 11:37am
View
DeleteSheet represents a method that is called. They all have different functionality, but all return a bool. Should I use a delegate for this and pass the delegate to the generic method?
David Knechtges
20-Dec-13 11:28am
View
Griff,
The Delete method executes different code, based on what function it is, but they all return bools. How can I handle that? Use a delegate for this?
David Knechtges
6-Sep-13 9:26am
View
Yes it is right IF the data coming back from the database does not include the "-->" at the beginning of the string. Maybe it is his question that is unclear to me. I thought his database was sending back "-->1234-567-89" and he wanted "-->123456789", which in the solution I posted below is correct.
David Knechtges
6-Sep-13 9:08am
View
That won't work - he has 2 dashes at the beginning of the string.
David Knechtges
3-Feb-11 11:20am
View
Now I am curious - it appears you are doing the right things, but the receiving app is not. I know you are a really experienced programmer from reading your articles, so I am going to suggest that you try this now:
Try writing a quick sample app in unmanaged code doing the exact same thing you are doing in C#. See that the receiving app sends back the information you want. My guess is that it may not. You can also then experiment with different types of memory to send it to the app also if the first way you try does not work.
I have done this in the past in order to figure out the way to get something like this to work in the way that I wanted.
David Knechtges
3-Feb-11 10:52am
View
Thanks for the tip. My comment above was meant to be done in your GetMessageText function. Copy the bytes from the IntPtr, and see what you get.
David Knechtges
3-Feb-11 10:38am
View
How about copying the data to a byte array and then converting it? That would show you if the array of unmanaged bytes is coming across correctly, and then you could use the managed stuff to convert it to a string.
Like using the Copy(IntPtr, Byte[], Int32, Int32) overload.
Show More