Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~10.7K People Reached
Favorite Tags
c x 26
c++ x 19
php x 2
Member Avatar for 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 having, is I don't know how to pass these values back to the main …

Member Avatar for thikkamsantosh
0
96
Member Avatar for 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 [CODE]. . . string strCmd = "command"; OnDataSend(strCmd); //wait for a response while …

Member Avatar for atrusmre
0
180
Member Avatar for 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?

Member Avatar for majestic0110
0
99
Member Avatar for 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#? [code] // crt_strtok.c /* In this program, a loop uses strtok * to print all the tokens (separated by commas …

Member Avatar for JerryShaw
0
2K
Member Avatar for atrusmre

I am currently trying to write a Telnet Client program in Visual C++. I was wondering if anyone knows where I can find a tutorial on how to write the protocals for telnet, or how to connect to a telnet server. I have written a small "chat" program (the one …

Member Avatar for Devoney
0
2K
Member Avatar for 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 I'm using [code] fsFile = …

Member Avatar for DenisOxon
0
153
Member Avatar for 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: [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Net; using System.Net.Sockets; namespace SocketTest { …

Member Avatar for Jugortha
0
100
Member Avatar for 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 days in the month to correspond to the …

Member Avatar for hollystyles
0
84
Member Avatar for atrusmre

Anyone know where I can find a good MySql and C++ Tutorial? I want to us MySql w/ MFC C++ Thanx, Atrus

Member Avatar for SpS
0
73
Member Avatar for 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 [code=c]GetDlgItem(IDC_EDITBOX)->EnableWindow(TRUE)[/code] How do I set the focus to that control? In other words, when I enable the control, how can I get the cursor …

Member Avatar for atrusmre
0
125
Member Avatar for 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. [code=c] CFont m_font; m_font.CreatePointFont(120,"Times New Roman"); m_Test.SetFont(&m_font); m_Test.SetWindowText(strTest); [/code] Now my question is, how to I get the layout editor in Microsoft Visual C++ to …

Member Avatar for Ancient Dragon
0
97
Member Avatar for 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 stop responding [code=c] m_iCount = 0; SetTimer(ID_TEST_TIMER, 1000, NULL); while(m_iCount <= 5) …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for 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 :) )

Member Avatar for WolfPack
0
130
Member Avatar for 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?

Member Avatar for calcop
0
145
Member Avatar for 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?

Member Avatar for atrusmre
0
171
Member Avatar for 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? So I ran it again using task manager and noted …

Member Avatar for perniciosus
0
509
Member Avatar for atrusmre

I have a MFC application that uses a menu, I want the menu disabled by default (easy enough), but what command do I use to reenable it? I tried [CODE]GetDlgItem(IDM_FILE_TEST)->EnableWindow(TRUE);[/CODE] The program runs up until it executes that statement, then it crashes. Any ideas?

Member Avatar for atrusmre
0
164
Member Avatar for atrusmre

Can anyone point me in the direction of a site that has a good tutorial on using Tab Controls on a MFC program?

Member Avatar for atrusmre
0
168
Member Avatar for atrusmre
Member Avatar for atrusmre

What is the best way to save to a file using a MFC Dialog based program? I need it to output mutipule data type (CString, int) to a file. I also need it to read the data from the file to update the controls (i.e. an options dialog). I've tried …

Member Avatar for Daishi
0
162
Member Avatar for atrusmre

I'm sorry I've been posting so much, I'm still learning. :) My question how do you fill a combo using a varible. for example I want to fill my combo box in Visual C++ with something like this. [CODE] char *names[2]; names[0] = "Joe"; names[1] = "Billy"; names[2] = "Bob"; …

Member Avatar for atrusmre
0
2K
Member Avatar for atrusmre

In Visual C++ is there a way to update a singal control without updating them all? If so how? (for example, I want to have a clock in my program that doesn't interfer with my trying to type other things).

Member Avatar for Ancient Dragon
0
136
Member Avatar for atrusmre

How to I remove a varible from memory? A friend and I were talking and he seems to think that just resetting it to "" would be enough. Is he correct? If not, how do I remove varibles when I'm done with them?

Member Avatar for Puckdropper
0
110
Member Avatar for atrusmre

I was wondering if there's a way to convert a CString or a char *x[10] to a int? I know I can convert int to CString, but can it go the other way? Thanx, Atrus

Member Avatar for Ancient Dragon
0
115
Member Avatar for atrusmre

I'm having a brain fart. How would I write the following in c++? if (x is divisible by 15) Thanx, Atrus

Member Avatar for Lerner
0
119
Member Avatar for atrusmre

I am working on a project that requires me to recive data from a network application. After I recive the data I'm suppose to break it up. Now I know of a way to sorta do that by using "tokens" and strtok (if you don't know strok breaks up a …

Member Avatar for atrusmre
0
151
Member Avatar for atrusmre

I am making a network application and am having some problems. I have a function that asks for username/pass and is suppose to activate a set of buttons on successful logon, however it's not working. (Logging on requires the user to press the logon button named IDC_BLOGON and then another …

0
57
Member Avatar for atrusmre

I am currently trying to add an edit box to my program. Everything is find until I add a variable to the edit box. The program runs fine until it is terminated, then I get an assertion error. Any ideas what could be causing this?

Member Avatar for Narue
0
137