Forum: C++ Jan 6th, 2009 |
| Replies: 1 Views: 312 Hi All
I am using the code below to get ACL information from files on Windows (in this case Vista). I need to know wether or not a trustee is a group or a user but when I loop through each trustee... |
Forum: ASP.NET Nov 19th, 2008 |
| Replies: 0 Views: 505 Hi all
I'm using Visual Studio 2008 to develop my first webpart. I have created a PageMethod to call from Javascript. From searching, I believe that you cannot create a PageMethod in the component... |
Forum: ASP.NET Nov 5th, 2008 |
| Replies: 10 Views: 3,051 Looks like sockets are a bust, it's funny how everytime I try .net it has something wrong with it. I found the following works, although it's not ideal. I would still love to solve the sockets issue.... |
Forum: C# Nov 5th, 2008 |
| Replies: 3 Views: 1,582 |
Forum: ASP.NET Nov 5th, 2008 |
| Replies: 10 Views: 3,051 Compiled and ran it from the console - still the same speed. Also tried it from a 2003 server with exactly the same results. This is a real puzzler! |
Forum: ASP.NET Nov 4th, 2008 |
| Replies: 10 Views: 3,051 Tried that also tried
sender.ReceiveBufferSize = 8192;
sender.NoDelay = true;
But no change, very frustrating isn't it! |
Forum: ASP.NET Nov 4th, 2008 |
| Replies: 10 Views: 3,051 Yup it times out as expected, the call is taking around 25 seconds. The server says it delivered the (XML) data in 27ms! |
Forum: ASP.NET Nov 4th, 2008 |
| Replies: 10 Views: 3,051 That cleans up the code a bit - but no speed improvement though. |
Forum: ASP.NET Nov 4th, 2008 |
| Replies: 10 Views: 3,051 Hi All
I have following code running on Vista Business under IIS7. It works, but is incredibly slow (about 20+ seconds). I have the same code in Java and it's instant.
It appears to be the line... |
Forum: C++ Apr 9th, 2008 |
| Replies: 5 Views: 600 Hi again
I now know what you meant by predicate and have found some code. This looks like the answer for me. Trouble is it requires a const string and I need to use a string pointer (string... |
Forum: C++ Apr 9th, 2008 |
| Replies: 5 Views: 600 Thanks for that
I have seen traits and looked at this code
class ichar_traits : public std::char_traits<char> {
public:
static bool eq(char, char);
static bool lt(char, char);
static int... |
Forum: C++ Apr 9th, 2008 |
| Replies: 5 Views: 600 I have written the code below to highlight words in quite large documents. Problem is:
1. It needs to be case insensitive, ie: "dog" or "Dog" should match "dog"
2. It currently matches words... |
Forum: C++ Mar 19th, 2008 |
| Replies: 1 Views: 2,275 Doh! Solved it.
Should be "void gradeArticle()" and not "string gradeArticle()" |
Forum: C++ Mar 19th, 2008 |
| Replies: 1 Views: 2,275 Hi All
Based on the information below. When I call gradeArticle(myArticle, text) I get an error (free(): invalid pointer). The code works the first time and seems to error when called again. Even... |
Forum: C++ Jan 16th, 2008 |
| Replies: 2 Views: 954 That looks great, thank you very much for your help. It's tricky stuff this! |
Forum: C++ Jan 16th, 2008 |
| Replies: 2 Views: 954 Hi there
I'm trying to learn how to do classes in C++ while working on a project. I have some code (below) which fails to compile with the error (below)
Any help would be appreciated.
Many... |
Forum: C++ Dec 27th, 2007 |
| Replies: 8 Views: 2,574 Thanks i'll give that a go. It's tough this c++ stuff, Java gives it all to you for nothing ;-)
The forking is because its a server delivering XML to clients. I'll probably change it to a thread... |
Forum: C++ Dec 27th, 2007 |
| Replies: 8 Views: 2,574 So if my parent is generating say 5 -10 forked children every second, each one modifying the mmap shared file - how does the parent get notified that it must add a new Requestlog to it's Vector... |
Forum: C++ Dec 24th, 2007 |
| Replies: 8 Views: 2,574 Thanks for all your help Duoas. but ....
I'm still stuck. Just to be clear. Each process forks then completes and ends. Before it ends I need it to write it's RequestLog to a List held in memory.... |
Forum: C++ Dec 22nd, 2007 |
| Replies: 8 Views: 2,574 Thanks for that, I am probably going about it the wrong way. Basically I have a struct
struct RequestLog{
string eventTime;
string duration;
string url;
string client_ip;
string thread_id;... |
Forum: C++ Dec 21st, 2007 |
| Replies: 8 Views: 2,574 Hi All
I'm a C++ noob so please don't be too harsh. I have written a tiny server using sockets. It forks children off for each connection. Trouble is I need have each child report back to the... |