Type: Posts; User: crasher
Search took 0.01 seconds.
November 20th, 2009, 01:58 PM
Thanks GCDEF and krmed, whereby krmed actually went to the trouble of posting how to UpdateWindow(). Actually, UpdateWindow() does nothing disecernible if entered verbatim - presumably it updates...
November 20th, 2009, 08:29 AM
I have an application which communicates with some measurement hardware, and I want to display the readings from that hardware, which consist of several digits. I do not need a sophisticated display...
November 20th, 2009, 07:16 AM
I have a simple Dialog app. There is one Edit Box, updated in a function triggered by a Button. In the function, the Edit Box's CString member variable is modified twice, firstly as "a",...
November 17th, 2009, 04:04 PM
You have coherently defined a project in general terms. You could implement this in many programming languages on a variety of platforms. If you use Visual C++, and you come across a problem whilst...
November 17th, 2009, 11:56 AM
OK, as you wrote, the first line in the file is some sort of header with the city name & state; the rest of the file consists of birdies and an index or count.
Seems to me that it would make most...
November 17th, 2009, 09:26 AM
Sounds cool Cilu.
But from where do I get the pointer to the dialog? Or the handle to the window? Could you recommend a sample project which does either of these? I have tried to implement various...
November 17th, 2009, 09:01 AM
That's the problem, VictorN: writing to an Edit Box, whether it's a CString or a control member, work fine from within the Dialog, i.e in *Dlg.cpp . But the various modules in different cpp files,...
November 17th, 2009, 08:21 AM
I created a Dialog-based MFC app. The dialog boilerplate is used to manually start USB controlled hardware functions, which usually execute repeatedly, with various hardware parameters being changed...
August 17th, 2009, 03:34 AM
Yes, SkynetTo, you're right. Arjay (thanks 2!) had already made that clear earlier, but I 'd already gone into frustration/desperation mode. Thanks for pointing out my stupid mistake.
You too were...
August 16th, 2009, 05:07 PM
Thanks again Arjay.
I made a few small changes to your project, in order to access a CListBox which I added to the dialog. I commented all the changes ( I hope) with //**crasher.
I get an assertion...
August 16th, 2009, 04:22 PM
Thanks Arjay. I appreciate your efforts and time spent. You have created a Doc/View project in Visual Studio 2005, which successfully permits writing of data from Doc/View to a dialog called from a...
August 16th, 2009, 06:03 AM
GCDEF, yes , thanks for the reminder. And I did notice that nice row of medals you've got there. Now, what about a suggestion, or is putting a usable listbox in a dialog called from a menu entry in a...
August 15th, 2009, 05:24 PM
You seem not to have read the posts.
This is a doc/view app. The app reads in a few Mb from various data files (1 to many), and converts and displays the data. The user must be given...
August 15th, 2009, 03:25 PM
I should add that I want to access the ListBox from the Doc: that's where the data is.
I'll also repeat the point: I can write to the EditBox in the dialog from a Doc function, but attempting to...
August 15th, 2009, 02:45 PM
Can you post the file? Or where can I find it? Maybe once I can look at it I might be able to help.
August 15th, 2009, 01:44 PM
Thanks for reply, bhushan.
The Dialog class has a DDX entry for the ListBox (c_list):
void CDlg::DoDataExchange(CDataExchange* pDX)
August 15th, 2009, 11:27 AM
Debug assertion failure message shows:
In the .inl file at Line 668/669 is:
 _AFXWIN_INLINE int CListBox::AddString(LPCTSTR lpszItem)
August 15th, 2009, 06:28 AM
Instantiating a dialog in a Doc function, I can update an Edit box in the dialog, but when I try to use AddString on a Listbox (using "simple text"), I get an Assertion Failure.
Using VC++6; to...
February 5th, 2009, 09:16 AM
I am making physical measurements using hardware controlled from a Doc/View based project. The hardware can return several numeric results per second, continuously.
I want to run a series of tests,...
August 26th, 2008, 12:08 PM
Presently I copy the .h and .cpp files containing general purpose functions into each project directory, and everything compiles and links nicely. However, if I try to #include the .h file when it...
Thanks for the reply, VladimirF.
No, GetPathName returns NULL until OnOpenDocument finishes.
Thanks for your trouble. I'll use my solution. It's only some code to control temperature in a nuclear...
Thanks, but IsModified doesn't help, because at startup, i.e. when the View is first displayed, no document has been loaded, but the App Window is created and drawn. "IsModified" doesn't seem to be...
I have a standard wizard - generated SDI, which imports data via OnOpenDocument. I want to view this processed data, and can do so quite happily in the View. Trouble is, when the SDI App first...
August 9th, 2007, 11:03 AM
I simply added a Spin control, and the class wizard created the following function:
::OnDeltaposNextPrevMeas(NMHDR* pNMHDR, LRESULT* pResult)
This uses _NM_UPDOWN, part of Windows Common...
August 9th, 2007, 10:09 AM
The user can scroll through the data by means of the ARROWS on the SPIN control in the Dialog. I want to assign the LEFT ARROW and RIGHT ARROW keys such that when they are pressed on the keyboard,...
Click Here to Expand Forum to Full Width