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

C / C++ / MFC

 
GeneralRe: COM support in win32 console program Pin
Michael P Butler25-May-02 10:55
Michael P Butler25-May-02 10:55 
GeneralI/O completion port Pin
24-May-02 22:58
suss24-May-02 22:58 
GeneralRe: I/O completion port Pin
NormDroid24-May-02 23:38
professionalNormDroid24-May-02 23:38 
GeneralRe: I/O completion port Pin
Mike Nordell26-May-02 16:41
Mike Nordell26-May-02 16:41 
GeneralRe: I/O completion port Pin
Gerald Schwab26-May-02 16:44
Gerald Schwab26-May-02 16:44 
GeneralAssertion Failure Pin
laphijia24-May-02 22:15
laphijia24-May-02 22:15 
GeneralRe: Assertion Failure Pin
PJ Arends24-May-02 22:38
professionalPJ Arends24-May-02 22:38 
GeneralRe: Assertion Failure Pin
laphijia24-May-02 22:46
laphijia24-May-02 22:46 
Yes, this works, i used a CString.

I tried this to solve this problem:

**********************************
//File MyForm.h
public:
CEdit m_editUserName;


**********************************
//File SomethingForm.cpp
#include MyForm.h
void CSomethingForm::OnBnClickedButton1()
{

CMyForm myNew;
myNew.m_editUserName.SetWindowText("ciao");

}


**********************************
Debug Assertion Failed!
file: winocc.cpp
line: 247

Someone suggested that the CMyForm is not yet created, and that I should call
Create() first.

My program features a Window menu for switch between the two Forms, and they are both active when I press the button.
I would like to press the button in the first form and change the windowtext of the edit in the second form.Confused | :confused:

"Nelle cose del mondo non e' il sapere ma il volere che puo'."
GeneralRe: Assertion Failure Pin
PJ Arends24-May-02 23:24
professionalPJ Arends24-May-02 23:24 
GeneralRe: Assertion Failure Pin
24-May-02 23:58
suss24-May-02 23:58 
GeneralRe: Assertion Failure Pin
Nish Nishant25-May-02 0:12
sitebuilderNish Nishant25-May-02 0:12 
GeneralRe: Assertion Failure Pin
PJ Arends25-May-02 7:30
professionalPJ Arends25-May-02 7:30 
GeneralProblem to use StrRetToBuf function Pin
24-May-02 22:19
suss24-May-02 22:19 
GeneralWindow, transparent for mouse clicks Pin
Alex Cramer24-May-02 21:34
Alex Cramer24-May-02 21:34 
GeneralRe: Window, transparent for mouse clicks Pin
Renjith Ramachandran25-May-02 4:04
Renjith Ramachandran25-May-02 4:04 
GeneralPuzzled when converting CInternetFile* to FILE* Pin
George Ma24-May-02 19:37
George Ma24-May-02 19:37 
GeneralRe: Puzzled when converting CInternetFile* to FILE* Pin
Nish Nishant24-May-02 19:55
sitebuilderNish Nishant24-May-02 19:55 
GeneralRe: Puzzled when converting CInternetFile* to FILE* Pin
Erik Funkenbusch25-May-02 3:29
Erik Funkenbusch25-May-02 3:29 
GeneralRe: Puzzled when converting CInternetFile* to FILE* Pin
George Ma25-May-02 17:07
George Ma25-May-02 17:07 
GeneralCFontDialog and LOGFONT :: MFC Pin
valikac24-May-02 17:52
valikac24-May-02 17:52 
GeneralRe: CFontDialog and LOGFONT :: MFC Pin
Jason Henderson24-May-02 18:46
Jason Henderson24-May-02 18:46 
GeneralRe: CFontDialog and LOGFONT :: MFC Pin
valikac25-May-02 5:58
valikac25-May-02 5:58 
Generalavi software Pin
pnpfriend24-May-02 13:52
pnpfriend24-May-02 13:52 
GeneralRe: avi software Pin
Rama Krishna Vavilala24-May-02 16:26
Rama Krishna Vavilala24-May-02 16:26 
GeneralRe: avi software Pin
Nish Nishant24-May-02 17:43
sitebuilderNish Nishant24-May-02 17:43 

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.