Type: Posts; User: Gregorina
Search took 0.01 seconds.
It gets corrupted on the Status status; line.
I'm calling it inside the status dialog class, but the dialog may not necessarily be created yet from the parent dialog. Actually I added a flag to set after the status dialog box is created:
Yes there was no window for the Status CDialog. I am using IsWindow(GetSafeHwnd()) as Drmmr suggested, but even though the Status dialog has a window, IsWindow(GetSafeHwnd()) still returns 0 and the...
December 10th, 2013, 08:34 PM
Oh wow. The this pointer was getting corrupted as it turns out I was calling these functions while the dialog box wasn't even enabled!!! I don't know what I was thinking and I don't why release mode...
December 10th, 2013, 06:55 PM
Thank you for taking the time from your busy day to help me out.
I'm running the invalidate()/Updatewindow() combo to refresh a dialog box. This crashes the program in debug mode but...
September 24th, 2013, 09:59 AM
Yes, it is in a change handler. But I have the following code in another change handler:
September 24th, 2013, 04:20 AM
I'm trying to take a value from an edit box and display it in the edit box as hex. I'm using this code:
July 31st, 2013, 01:29 PM
Ok, awesome, and thank you. Searching for ODBC and CRecordset, has given me some simpler examples than what I've seen before. Do you know of any tutorials for using ODBC and CRecordset? And of any...
July 31st, 2013, 01:12 AM
I just got a job programming a windows application. One of the requirements is reading and writing values from an excel spreadsheet. Looking online, it appears that C++ isn't the best (one of...
February 23rd, 2012, 02:31 AM
I have a slider. At the start of my program, in the oninitdialog, I run two lines of code:
February 21st, 2012, 12:40 AM
Thank you. the null was the prob. I was just trying to test putting char to an edit box. I'm receiving packets from a board, the packets come in a char and i needed to put them in the edit box,...
February 20th, 2012, 11:19 PM
Hello, I have the following code:
for(int i=0; i<64; i++)
receive[i] = i;
temp = receive;
February 13th, 2012, 12:28 AM
February 12th, 2012, 06:26 PM
Thanks, that's what I did. And it's ok now. I declared a variable "int selected_gauge" and set it inside the OnCbnSelchangeCombo2() event handler. And I used that variable for my if statements inside...
February 12th, 2012, 06:02 PM
void Gauges::OnTimer(UINT nIDEvent)
This is just the Timer.
February 12th, 2012, 02:42 PM
I am calling GetCurSel through a timer. In the timer I run UpdateData(true). It's there that I check GetCurSel, depending on what's selected, using DDX_TEXT, I copy the values of my edit boxes to...
February 12th, 2012, 02:06 AM
I have a combobox with 10 selections. If I click the drop down arrow and start scrolling through the selections, the value of m_combo.getcursel() changes to the selection that's...
October 10th, 2011, 01:40 AM
I'm having trouble getting in contact with my boss, otherwise I would probably ask him, so I just thought I'd post something here.
First thanks for everyone who helps.
I'm doing some serial...
October 4th, 2011, 03:04 PM
wow!!! that worked!!!! thank you!!!
I had stdafx.h in the cpp file, so I thought that would be enough, guess it wasn't. Thank you!!
October 3rd, 2011, 04:52 PM
What part of my code should I post? My code is over 20 modules. But also, the only errors I get are in the serial program itself, which I linked to in my original post. I feel like I just need to...
October 3rd, 2011, 02:52 PM
yes...i thought that was my problem too, so I did include windows.h, but I'm still getting the errors :(
for usage, the code project article just says, " To use the class in your code, simply...
October 3rd, 2011, 02:14 PM
First of all thank you for the help!!
I'm trying to open a serial port and I'm using this program http://www.codeproject.com/KB/system/cserialport.aspx. If i use this program by itself,...
March 7th, 2011, 01:59 AM
Well...I fixed the issue. Turns out I need to use m_check1.GetCheck() and not m_check1.GetState()...guh...I don't know why these names need to be so confusing. Didn't even know there was a GetCheck...
March 6th, 2011, 09:13 PM
Well...it's really big...but I will post the important parts.
void CnewerDlg::OnTimer(UINT nIDEvent)
March 6th, 2011, 11:29 AM
I tried to increase the timer to 30 seconds...even went to 2 seconds. Still no cigar.
Click Here to Expand Forum to Full Width