Click here to Skip to main content
16,006,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDisplaying CString in a SDI Pin
21-May-01 8:46
suss21-May-01 8:46 
GeneralRe: Displaying CString in a SDI Pin
Christian Graus21-May-01 11:32
protectorChristian Graus21-May-01 11:32 
GeneralLBUTTON Pin
mr200321-May-01 8:30
mr200321-May-01 8:30 
GeneralRe: LBUTTON Pin
Carlos Antollini21-May-01 9:59
Carlos Antollini21-May-01 9:59 
GeneralRe: LBUTTON Pin
l a u r e n21-May-01 11:34
l a u r e n21-May-01 11:34 
QuestionList boxes? Pin
21-May-01 8:08
suss21-May-01 8:08 
AnswerRe: List boxes? Pin
Tomasz Sowinski21-May-01 8:28
Tomasz Sowinski21-May-01 8:28 
GeneralThx, but nope. :) Here's the problem Pin
21-May-01 8:49
suss21-May-01 8:49 
Thanks for a *very* quick reply! Smile | :) However,
the real problem is simple, but not that simple.

Here's what I added (to complement my listbox IDC_LIST1
from the Resource Ed)

My *Dlg.h-file; 'class CDekodLog : [..blabla..]',
--
Added: CListBox lst;

In the *Dlg.cpp-file: 'OnInitDialog':
--
Added: CRect rc; GetWindowRect(&rc); ScreenToClient(&rc);

lst.Create(WS_CHILD|WS_VSCROLL, rc, this, IDC_LIST1);
CString stri = "Per pusling";
lst.AddString(stri);

UpdateData(FALSE);

So far, so good? FINALLY; the DoDataExchange-routine;
--
Added: DDX_Control(pDX, IDC_LIST1, lst);

^^ This is my attempt to transfer the test-data stored in
the lst-object to the IDC_LIST1
(snipped from the ListBox-tutorial-source from this domain).

This results in:
a) Debug assertion failure, and
b) a fatal error which shuts down my app..


Thx again,
Gustav


= Gustav =
GeneralRe: Thx, but nope. :) Here's the problem Pin
Tomasz Sowinski21-May-01 8:57
Tomasz Sowinski21-May-01 8:57 
GeneralExcellent!! Pin
21-May-01 9:25
suss21-May-01 9:25 
GeneralRe: Excellent!! Pin
Tomasz Sowinski21-May-01 9:33
Tomasz Sowinski21-May-01 9:33 
AnswerRe: You just undetstand half of VC++ Pin
Masaaki Onishi21-May-01 15:53
Masaaki Onishi21-May-01 15:53 
GeneralRe: You just undetstand half of VC++ Pin
Christian Graus21-May-01 16:10
protectorChristian Graus21-May-01 16:10 
GeneralError on TransparentBlt Pin
21-May-01 7:39
suss21-May-01 7:39 
GeneralRe: Error on TransparentBlt Pin
Igor Sukhov21-May-01 7:44
Igor Sukhov21-May-01 7:44 
GeneralRe: Error on TransparentBlt Pin
21-May-01 7:50
suss21-May-01 7:50 
GeneralHelp plz Pin
21-May-01 7:34
suss21-May-01 7:34 
GeneralRe: Help plz Pin
Igor Sukhov21-May-01 7:48
Igor Sukhov21-May-01 7:48 
GeneralRe: Help plz Pin
21-May-01 8:03
suss21-May-01 8:03 
GeneralRe: Help plz Pin
Christian Graus21-May-01 11:36
protectorChristian Graus21-May-01 11:36 
GeneralOnNewDocument fails with three-way splitter! Pin
Ingemar Andre21-May-01 7:00
Ingemar Andre21-May-01 7:00 
GeneralRe: OnNewDocument fails with three-way splitter! Pin
Tomasz Sowinski21-May-01 7:11
Tomasz Sowinski21-May-01 7:11 
GeneralRe: OnNewDocument fails with three-way splitter! Pin
Ingemar Andre22-May-01 1:23
Ingemar Andre22-May-01 1:23 
GeneralRe: OnNewDocument fails with three-way splitter! Pin
Tomasz Sowinski22-May-01 1:42
Tomasz Sowinski22-May-01 1:42 
GeneralRe: OnNewDocument fails with three-way splitter! Pin
Ingemar Andre22-May-01 22:57
Ingemar Andre22-May-01 22:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.