Search Results

Showing results 1 to 40 of 64
Search took 0.01 seconds.
Search: Posts Made By: atrusmre
Forum: C# Jun 23rd, 2008
Replies: 3
Views: 1,590
Posted By atrusmre
And how would I create a reference for later? Also, none of these dynamically created controls can be accessed outside of the function (the for loop actually) that they are created in. Any ideas? ...
Forum: C# Jun 22nd, 2008
Replies: 3
Views: 1,590
Posted By atrusmre
I have a program that I'm writing that connects to a database, calls a new form , and dynamicly creates controls (textbox, and label) for each item so that they can be edited. The problem I'm...
Forum: C# Apr 4th, 2008
Replies: 12
Views: 1,260
Posted By atrusmre
Correct m_szdata is a global variable and it gets reset to "" during OnDataSend.

And I'll do you one better, I've included the receive functions as well

private void...
Forum: C# Apr 3rd, 2008
Replies: 12
Views: 1,260
Posted By atrusmre
I did mention this was a network application didn't I? If not, sorry, but it is.
Forum: C# Apr 3rd, 2008
Replies: 12
Views: 1,260
Posted By atrusmre
That is correct, the while statement is being used as a 'pause'. As I noted before, I can take out the while statement, and it shows 0 elements, it should show the server's stats. But it doesn't,...
Forum: C# Apr 3rd, 2008
Replies: 12
Views: 1,260
Posted By atrusmre
That won't work. Remember if the while statement is removed it works, but not correctly. If the OnUpdateServerStats() is called with a button it works fine(unless you've already tried to call that...
Forum: C# Apr 2nd, 2008
Replies: 12
Views: 1,260
Posted By atrusmre
I've got an interesting issue with a program I'm writing. I think I know kinda what is wrong, but I'm not sure about it, and I don't know how to fix it. I have the following code
.
.
.
...
Forum: C# Apr 2nd, 2008
Replies: 3
Solved: Timer tutorial
Views: 3,805
Posted By atrusmre
Thank you. That sample program helped my find exactly what I needed. Thank you!
Forum: C# Apr 1st, 2008
Replies: 3
Solved: Timer tutorial
Views: 3,805
Posted By atrusmre
Anyone know where I can find a good tutorial on windows forms timer? All I need is a sample of something that is similar to a count down timer. Any suggestions?
Forum: C# Mar 28th, 2008
Replies: 7
Solved: strtok and C#
Views: 3,101
Posted By atrusmre
Ok that worked. I thought that .Split only accepted char and not strings, so why does it allow a string array like that? (More of a curious question than anything)

Thanks for your help!!
Forum: C# Mar 27th, 2008
Replies: 7
Solved: strtok and C#
Views: 3,101
Posted By atrusmre
The only thing is that won't work (I've tried it before)
if you use double quotes ("") you get this error and if you use single quotes ('') you get this error Any other suggestions? (short of...
Forum: C# Mar 26th, 2008
Replies: 7
Solved: strtok and C#
Views: 3,101
Posted By atrusmre
Ok I know I said I had solved this issue, but I've found a new issue. when using the following code (please note this was taken directly from...
Forum: C# Dec 29th, 2007
Replies: 4
Views: 784
Posted By atrusmre
Yes that is was I was looking for. Thank you guys!!
Forum: C# Dec 28th, 2007
Replies: 4
Views: 784
Posted By atrusmre
How would I replace the text in a file with c#. I can write to the file, but if I write to the file a second time it appends the new data to the old rather than replace it. Here is a copy of what...
Forum: C# Dec 26th, 2007
Replies: 7
Solved: strtok and C#
Views: 3,101
Posted By atrusmre
Never mind I found what I was looking for.

string words = "this is a list of words, with: a bit of punctuation.";
string [] split = words.Split(new Char [] {' ', ',',...
Forum: C# Dec 26th, 2007
Replies: 7
Solved: strtok and C#
Views: 3,101
Posted By atrusmre
Is there anything in C# that does the same function as strtok in C++. For example if I had the following C++ program how would it be written in C#?


// crt_strtok.c
/* In this program, a loop...
Forum: C# Dec 25th, 2007
Replies: 4
Views: 3,794
Posted By atrusmre
Is there any way to detect that I am no longer receiving data on a TCP connection in C#. For example, I have the following program:


using System;
using System.Collections.Generic;
using...
Forum: PHP Oct 25th, 2007
Replies: 4
Solved: Dynamic Forms
Views: 2,538
Posted By atrusmre
Is there anyway of doing it w/o java?

~Atrus
Forum: PHP Oct 25th, 2007
Replies: 4
Solved: Dynamic Forms
Views: 2,538
Posted By atrusmre
Ok this may be a stupid questions. Is there a way to make a dynamic form? For example, if I wanted to create a form that took a users birthday, how do I make it so it would change the number of...
Forum: C++ Aug 21st, 2007
Replies: 1
Views: 969
Posted By atrusmre
Anyone know where I can find a good MySql and C++ Tutorial? I want to us MySql w/ MFC C++

Thanx,
Atrus
Forum: C Nov 14th, 2006
Replies: 2
Views: 1,449
Posted By atrusmre
Forum: C Nov 14th, 2006
Replies: 2
Views: 1,449
Posted By atrusmre
Say I have an edit box in a MFC application (let's call it IDC_EDITBOX), and I enable (because I have it greyed out by default)it using GetDlgItem(IDC_EDITBOX)->EnableWindow(TRUE)
How do I set the...
Forum: C++ Nov 14th, 2006
Replies: 3
Views: 2,913
Posted By atrusmre
Now is there any way to get that to show up while editing the layout in visual C++?
Forum: C Nov 13th, 2006
Replies: 5
Views: 6,657
Posted By atrusmre
Ok, so here's a spin off of the previous. If I wanted the user to only have say 20 seconds to enter text in an edit box before it grayed out, how would I go about that? Sleep() causes the program...
Forum: C++ Nov 13th, 2006
Replies: 3
Views: 2,913
Posted By atrusmre
I am writing a MFC application and would like to change the font size of some of the static text. So I use the following.

CFont m_font;
m_font.CreatePointFont(120,"Times New Roman");...
Forum: C Nov 8th, 2006
Replies: 5
Views: 6,657
Posted By atrusmre
Why? Becasue I am a noob who forgot about Sleep();
Thanx for the help!!:o
Forum: C Nov 8th, 2006
Replies: 5
Views: 6,657
Posted By atrusmre
I am writing a MFC application and need to have the program pause for a few seconds. I am trying to use the OnTimer event and am having troubles. The following code causes the program to freeze and...
Forum: C Mar 5th, 2006
Replies: 1
Views: 986
Posted By atrusmre
How do I find out (in a MFC app) if a "window" (or control) is enabled? (Please don't say "just run to program" because I'm looking for a way for the program to know :) )
Forum: C Jan 8th, 2006
Replies: 2
Views: 1,283
Posted By atrusmre
Is there a way to make a MFC application have Network capibilities without using windows sockets? If so, anyone know of a good tutorial?
Forum: C++ Dec 23rd, 2005
Replies: 4
Views: 2,148
Posted By atrusmre
Sweet, Thanx
Forum: C++ Dec 20th, 2005
Replies: 4
Views: 2,148
Posted By atrusmre
What if I"m looking for an error on connect, for example a connection timeout? I tried adding your example to the socket.connect(ip,port) function, but it just sits there thinking.
Forum: C++ Dec 20th, 2005
Replies: 4
Views: 2,148
Posted By atrusmre
If I have a MFC program that opens a socket connection, how would I test to see if the socket has succesfully opened or not?
Forum: C Dec 14th, 2005
Replies: 15
Views: 3,244
Posted By atrusmre
Ok, so I shrank pBuf, and it worked. It's not leaking either(so far :P ) explain agian though, what's the differance? I've always had an issue understanding pointers. (call me an idiot) and why...
Forum: C Dec 14th, 2005
Replies: 15
Views: 3,244
Posted By atrusmre
Socket Notification Sink: blah.exe - Application Error

The exception unknown software exception (0xc00000fd) occured in the application at location 0x00406257.

Click on OK to terminate the...
Forum: C Dec 14th, 2005
Replies: 15
Views: 3,244
Posted By atrusmre
Still get an exception error, even if I do it both ways.
Forum: C Dec 13th, 2005
Replies: 15
Views: 3,244
Posted By atrusmre
The only problem with that though is that m_sConnectSocket.Receive only takes ( void *lpBuf, int nBufLen, int nFlags = 0) as arguments. if I do what you suggested I get an exception error
Forum: C Dec 13th, 2005
Replies: 15
Views: 3,244
Posted By atrusmre
What's the difference between

char pBuf = char[1000025];

and

char *pBuf = new char[1000025];

when the second one goes out of scope won't it cleanup itself also?
Forum: C Dec 13th, 2005
Replies: 15
Views: 3,244
Posted By atrusmre
So I'm writing a program (MFC) that connects to a server w/ windows sockets (YUCK I know). I left it running as part of an endurance test the other day, and my PC ran out of virtual memory. Odd eh?...
Forum: C Dec 2nd, 2005
Replies: 5
Views: 2,341
Posted By atrusmre
ahhhh ok, thanx :)
Forum: C Dec 1st, 2005
Replies: 5
Views: 2,341
Posted By atrusmre
I realized before I posted that that was odviously the wrong thing to use, but it was the closest I could think of. (As a side note, my question was about enabling, and you aswnered how to disable,...
Showing results 1 to 40 of 64

 


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

©2003 - 2009 DaniWeb® LLC