Click here to Skip to main content
15,917,541 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can I get the path of the executed program in this program? Pin
Alexandru Savescu24-May-02 12:43
Alexandru Savescu24-May-02 12:43 
GeneralWatch Window Formatting Pin
Mark Donkers24-May-02 3:16
Mark Donkers24-May-02 3:16 
GeneralRe: Watch Window Formatting Pin
Martin Ziacek24-May-02 4:16
Martin Ziacek24-May-02 4:16 
GeneralRe: Watch Window Formatting Pin
Mark Donkers24-May-02 4:23
Mark Donkers24-May-02 4:23 
GeneralAccess violation in clistctrl Pin
SnapRick24-May-02 2:51
SnapRick24-May-02 2:51 
GeneralRe: Access violation in clistctrl Pin
Joaquín M López Muñoz24-May-02 4:04
Joaquín M López Muñoz24-May-02 4:04 
GeneralRe: Access violation in clistctrl Pin
SnapRick24-May-02 4:27
SnapRick24-May-02 4:27 
GeneralUsing external Members Pin
laphijia24-May-02 2:43
laphijia24-May-02 2:43 
I have set up an application made of two CFormView based Forms.
I took as an example the Enroll Database Sample provided with Visual Studio.Net.
In the firs form the user can query the Database, the records are displayed in a ListControl.
After I want that when the user doubleclick a record in the list, or press a Button "Select", in the second form he can edit and update the record selected.

The second form consists of an edit control for each field in the database.

So when the user select a record in the first form, I query the database, I put with CEdit.SetWindowText() each field in the edit controls in the second form, and if the user make any change in the second form, I Update the database.

THE PROBLEM IS:
I have two different classes CFirsForm and CSecondForm.
In the OnBnSelectClick() in the First class how I call the member variables contained in the second class m_edit1, m_edit2, etc.

The code should look like:

CDataForm *pData;
pData = new CDataForm;
pData->m_editAddress.SetWindowText("st James Street");
delete pData;

But I get a Debug Assertion Failed, winocc.cpp Line:247.

What's wrong?

Sorry my incompetence. Confused | :confused:

"Nelle cose del mondo non e' il sapere ma il volere che puo'."
GeneralRe: Using external Members Pin
Alexandru Savescu24-May-02 3:35
Alexandru Savescu24-May-02 3:35 
GeneralRe: Using external Members Pin
laphijia24-May-02 3:59
laphijia24-May-02 3:59 
GeneralRe: Using external Members Pin
Joaquín M López Muñoz24-May-02 3:58
Joaquín M López Muñoz24-May-02 3:58 
GeneralRe: Using external Members Pin
laphijia24-May-02 6:39
laphijia24-May-02 6:39 
GeneralHolding pointers to functions as values in a std::map Pin
Alexandru Savescu24-May-02 2:43
Alexandru Savescu24-May-02 2:43 
GeneralRe: Holding pointers to functions as values in a std::map Pin
Chris Losinger24-May-02 3:03
professionalChris Losinger24-May-02 3:03 
GeneralRe: Holding pointers to functions as values in a std::map Pin
Alexandru Savescu24-May-02 3:13
Alexandru Savescu24-May-02 3:13 
GeneralI'm doing similar but why won't work Pin
24-May-02 3:45
suss24-May-02 3:45 
GeneralRe: I'm doing similar but why won't work Pin
Joaquín M López Muñoz24-May-02 3:54
Joaquín M López Muñoz24-May-02 3:54 
GeneralRe: I'm doing similar but why won't work Pin
24-May-02 4:39
suss24-May-02 4:39 
GeneralRe: Holding pointers to functions as values in a std::map Pin
Vivek Rajan24-May-02 7:54
Vivek Rajan24-May-02 7:54 
GeneralChange scrollbar colour Pin
Nnamdi Onyeyiri24-May-02 1:23
Nnamdi Onyeyiri24-May-02 1:23 
QuestionMath and 3d books ? Pin
Joao Vaz24-May-02 1:04
Joao Vaz24-May-02 1:04 
AnswerRe: Math and 3d books ? Pin
jan larsen24-May-02 2:56
jan larsen24-May-02 2:56 
GeneralRe: Math and 3d books ? Pin
Joao Vaz24-May-02 3:21
Joao Vaz24-May-02 3:21 
AnswerRe: Math and 3d books ? Pin
Chris Losinger24-May-02 3:06
professionalChris Losinger24-May-02 3:06 
GeneralRe: Math and 3d books ? Pin
Joao Vaz24-May-02 3:24
Joao Vaz24-May-02 3:24 

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.