Search Results

Showing results 1 to 40 of 465
Search took 0.03 seconds.
Search: Posts Made By: winbatch
Forum: C++ Sep 1st, 2009
Replies: 1
Views: 188
Posted By winbatch
Never mind - looks like the system call I wanted was statfs()

http://linux.die.net/man/2/statfs
Forum: C++ Sep 1st, 2009
Replies: 1
Views: 188
Posted By winbatch
Hi,

I'm trying to write some code that will validate if we are trying to write to nfs and if so, complain. From what I've read, the stat() call populates the st_dev with value of the file system...
Forum: C++ Nov 23rd, 2008
Replies: 1
Views: 278
Posted By winbatch
Looks like this was the solution:

http://www.parashift.com/c++-faq-lite/strange-inheritance.html#faq-23.9

(I added a 'using Base::print' to my NewOne class)
Forum: C++ Nov 23rd, 2008
Replies: 1
Views: 278
Posted By winbatch
Consider this working code:

#include <iostream>

using namespace std;
class Base
{
public:
void print(string val)
{
Forum: C++ Sep 12th, 2008
Replies: 1
Views: 697
Posted By winbatch
Hi,

Trying to play with multithreading by taking some of my existing apps and converting them over. In doing so, I noticed a strange phenomenon that I've been able to reproduce in a very simple...
Forum: Windows NT / 2000 / XP Aug 15th, 2008
Replies: 6
Views: 11,393
Posted By winbatch
Thanks - (Was still looking for this 3 years later!)
Forum: Java Aug 15th, 2008
Replies: 1
Views: 783
Posted By winbatch
Apparently this is a known bug in java - see link below:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6729824

I got around it by doing mycombox.getEditor().getItem() rather than...
Forum: Java Aug 12th, 2008
Replies: 1
Views: 783
Posted By winbatch
Hi,

I have a swing app where I am using (among other things obviously) an editable JComboBox and a jButton.

when the JButton is clicked, it does some processing and uses the value in the...
Forum: C++ Apr 14th, 2007
Replies: 6
Views: 5,175
Posted By winbatch
vijayan121 (http://www.daniweb.com/techtalkforums/member134320.html), I don't think ifstream works for files over 2GB, which mine is. (7GB)
Forum: C++ Apr 13th, 2007
Replies: 6
Views: 5,175
Posted By winbatch
Is there a way using file handling functions to search within a text file to find the position of certain text WITHOUT having to read each character/line and evaluating it?

For example, let's say...
Forum: Perl Mar 13th, 2007
Replies: 2
Views: 2,080
Posted By winbatch
Worked like a charm. Thanks! (Maybe some day I'll understand it)
Forum: Perl Mar 13th, 2007
Replies: 2
Views: 2,080
Posted By winbatch
I'm new to perl (and actually not even really trying to develop this skill - I inherited some code and am trying to enhance it).

Basically, I want to get the text between parts of a text string....
Forum: Windows NT / 2000 / XP Nov 23rd, 2006
Replies: 2
Views: 1,129
Posted By winbatch
You need to set up port forwarding on the router, which says when a request comes in on this port, send it to this ip address inside the network to respond.

See this:...
Forum: Windows NT / 2000 / XP Nov 23rd, 2006
Replies: 4
Views: 15,903
Posted By winbatch
OK - so I installed windows 2003 server on my desktop, which is in the basement. I have a laptop upstairs (xp) which I want to connect to the desktop over remote desktop. This is working ok...
Forum: Java Oct 10th, 2006
Replies: 5
Views: 2,661
Posted By winbatch
Would you happen to have some sample code?
Forum: Java Oct 9th, 2006
Replies: 5
Views: 2,661
Posted By winbatch
Hi,

If I have a JComboBox which has a list of Strings which can be selected, is there a way to insert a line/horizontal rule inside to indicate some sort of grouping of values? If so, how do I...
Forum: C++ Jun 27th, 2006
Replies: 9
Views: 3,435
Posted By winbatch
Dave,

In the end that's what I pretty much ended up doing. Just thought there might be a faster/more efficient approach.
Forum: C++ Jun 27th, 2006
Replies: 9
Views: 3,435
Posted By winbatch
A valid question. The reason is this is data that USED to be in the database and was 'archived' off.
Forum: C++ Jun 27th, 2006
Replies: 9
Views: 3,435
Posted By winbatch
So here's what I'm trying to do. Basically, I have a huge text file of strings which are delimited by a delimiter. I would like to read each string separately based on the delimiter. Note that each...
Forum: C Jun 17th, 2006
Replies: 8
Views: 2,602
Posted By winbatch
I tried #1, still got 0.0.0.0 with it.. As far as #2, the issue is that I want to know what machine it is, so I don't know what to ping (and in any case, there's no need for me to ping it, since if...
Forum: C Jun 16th, 2006
Replies: 8
Views: 2,602
Posted By winbatch
jim,

I'm a bit confused. If the client attempts to do a 'bind', won't it get an error that it's already in use?
Forum: C Jun 16th, 2006
Replies: 8
Views: 2,602
Posted By winbatch
There's plenty of stuff before it and after, but I figured all I needed to show was the accept. (Since the socket is working fine, just thought it was how I was printing or accessing the sin_addr...
Forum: C Jun 16th, 2006
Replies: 8
Views: 2,602
Posted By winbatch
Hi,

I've inherited some code in C that acts as a server and receives requests over a socket. That is all working fine. I wanted to make a very small change to the server code to print out the...
Forum: C++ May 14th, 2006
Replies: 4
Views: 10,383
Posted By winbatch
Assuming you won't in fact attempt to change 'crap' inside the 'bull' function, simply change the above to:

void bull( const char[] )
and
void bull( const char crap[] )
{
std::cout <<...
Forum: C++ Apr 20th, 2006
Replies: 10
Views: 3,596
Posted By winbatch
That works, unfortunately, I don't want it to be a static function as I want it to use the instance of the class that I'm working in.
Forum: C++ Apr 19th, 2006
Replies: 10
Views: 3,596
Posted By winbatch
Say what Dr. Dave?

I had trouble following your other thread too. guess I'm biting off more than I can chew.
Forum: C++ Apr 19th, 2006
Replies: 10
Views: 3,596
Posted By winbatch
Dave,

Don't lose sleep over it. But if you're up anyway, yes please find the other thread ;)

WB
Forum: C++ Apr 19th, 2006
Replies: 10
Views: 3,596
Posted By winbatch
Dave,

I was looking at that - went over my head. Is there an easy answer to my particular example? Part of the problem seems to be that I'm INSIDE my class when I'm trying to pass another member...
Forum: C++ Apr 18th, 2006
Replies: 10
Views: 3,596
Posted By winbatch
So I'm trying to learn how to use function pointers (ie to pass the address of a function to another function to execute it - like a call back). I have it working when I use it as follows:
...
Forum: C Apr 14th, 2006
Replies: 2
Views: 1,351
Posted By winbatch
Show us the code where you are requesting and accepting the string to begin with, then we'll show you how to modify it for the error checking.
Forum: C Apr 13th, 2006
Replies: 3
Views: 9,686
Posted By winbatch
if x is 6 and y is 2, then the result is 0.
Forum: C++ Apr 12th, 2006
Replies: 5
Views: 3,150
Posted By winbatch
Let me give you this hint - since several of the months have the same behavior - ie 1,3,5,7,8,10,12 are all 31 days, while 4,6,9,11 are all 30 days, then you could easily use a 'switch' statement on...
Forum: Java Mar 24th, 2006
Replies: 2
Views: 1,925
Posted By winbatch
If I have a swing app where I have 3 JPanels inside the content pane. By default, it makes it so that all 3 panels take up 33% of the overall size of the app. I would like to make it so that the...
Forum: C Mar 17th, 2006
Replies: 3
Views: 6,291
Posted By winbatch
If you want to make sure there are no numbers in a string, you can do a find_first_of( "01234567890"). If it equals anything other than string::npos, it's got a number in there.
Forum: C Mar 15th, 2006
Replies: 14
Views: 2,345
Posted By winbatch
The URL's don't work.
Forum: IT Professionals' Lounge Mar 15th, 2006
Replies: 20
Views: 30,035
Posted By winbatch
Actually, you should look at emigrant and hsbc who are offering 4.25%
Forum: C Mar 13th, 2006
Replies: 4
Views: 1,361
Posted By winbatch
I guess the main question I have is how to define a variable that is not shared among threads inside a function that is used by a thread...
Forum: C Mar 13th, 2006
Replies: 4
Views: 1,361
Posted By winbatch
I figured out a way to do it, just not sure if it's the right way. Let me know what you guys think:
Temp.cpp

extern "C"
{
#include "pthread.h"
#include "Thread.h"
}
#include <iostream>...
Forum: C Mar 13th, 2006
Replies: 4
Views: 1,361
Posted By winbatch
I modified Thread.h to add the pthread_self() which shows which thread id it has...


#include "stdio.h"
#include "Temp.h"
pthread_mutex_t ilock;
void * myTest(void * arg)
{
char * test =...
Forum: C Mar 13th, 2006
Replies: 4
Views: 1,361
Posted By winbatch
Hi Guys,
So I'm trying to experiment with threads, though I'm running into some problems. Basically I'm trying to create multiple threads, where each thread is passed a different set of data. In...
Showing results 1 to 40 of 465

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC