Forum: C# Jun 23rd, 2008 |
| Replies: 3 Views: 1,590 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 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 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 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 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 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 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 Views: 3,805 Thank you. That sample program helped my find exactly what I needed. Thank you! |
Forum: C# Apr 1st, 2008 |
| Replies: 3 Views: 3,805 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 Views: 3,101 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 Views: 3,101 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 Views: 3,101 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 Yes that is was I was looking for. Thank you guys!! |
Forum: C# Dec 28th, 2007 |
| Replies: 4 Views: 784 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 Views: 3,101 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 Views: 3,101 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 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 Views: 2,538 Is there anyway of doing it w/o java?
~Atrus |
Forum: PHP Oct 25th, 2007 |
| Replies: 4 Views: 2,538 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 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 |
Forum: C Nov 14th, 2006 |
| Replies: 2 Views: 1,449 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 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 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 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 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 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 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 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 |
Forum: C++ Dec 20th, 2005 |
| Replies: 4 Views: 2,148 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 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 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 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 Still get an exception error, even if I do it both ways. |
Forum: C Dec 13th, 2005 |
| Replies: 15 Views: 3,244 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 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 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 |
Forum: C Dec 1st, 2005 |
| Replies: 5 Views: 2,341 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,... |