Click here to Skip to main content
15,909,030 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Urgent: Combo Box Pin
syedhassan411-Apr-02 3:52
syedhassan411-Apr-02 3:52 
GeneralSuper Big Problem with SetWindowsHookEx function!!! Pin
10-Apr-02 22:11
suss10-Apr-02 22:11 
GeneralRe: Super Big Problem with SetWindowsHookEx function!!! Pin
Lakitu11-Apr-02 23:26
Lakitu11-Apr-02 23:26 
GeneralSelf-Destructing Executable Pin
Serge Baltic10-Apr-02 21:16
Serge Baltic10-Apr-02 21:16 
GeneralRe: Self-Destructing Executable Pin
Rickard Andersson2010-Apr-02 22:14
Rickard Andersson2010-Apr-02 22:14 
GeneralRe: Self-Destructing Executable Pin
Alexandru Savescu10-Apr-02 22:18
Alexandru Savescu10-Apr-02 22:18 
GeneralRe: Self-Destructing Executable Pin
Prem Kumar11-Apr-02 1:03
Prem Kumar11-Apr-02 1:03 
GeneralAccessing CEdit Member Functions Inside CEditView ::MFC Pin
valikac10-Apr-02 16:49
valikac10-Apr-02 16:49 
Hi.

I think the best approach for the problem I am working on is to use the technique Prosise demostrates in his book using the CStdioFile class. It is a good alternative to serialization.

I need a way to edit the display the data in the file, which are most likely texts. I derived a view from CEditView. I looked to CEditView in MSDN and found that it is possible to get a reference of the CEdit object to modify data currently in the CEditView class. However, Visual C++ displays errors when I tried to gain access to CEdit.

Here is the code:

-----
CEdit myEdit = GetEditCtrl() // I saw this function in MSDN

int i = 0;
CString data;

while (myEdit->GetLine(i, data))
{
myCStringArray.SetAtGrow(i, i + 1);
}
-----

The code above is suppose to copy texts from whatever was stored in the CEdit class into an array of CString.

Visual C++ displayed this error:

C:\Projects\TextView.cpp(121) : error C2440: 'initializing' : cannot convert from 'class CEdit' to 'class CEdit'
No copy constructor available for class 'CEdit'

Am I doing something wrong as far as trying access the CEdit within the CEditView?

Kuphryn
GeneralRe: Accessing CEdit Member Functions Inside CEditView ::MFC Pin
Alex Cramer10-Apr-02 17:49
Alex Cramer10-Apr-02 17:49 
GeneralRe: Accessing CEdit Member Functions Inside CEditView ::MFC Pin
valikac10-Apr-02 17:50
valikac10-Apr-02 17:50 
GeneralRe: Accessing CEdit Member Functions Inside CEditView ::MFC Pin
Alex Cramer10-Apr-02 18:25
Alex Cramer10-Apr-02 18:25 
GeneralClasses in DLL Pin
10-Apr-02 16:44
suss10-Apr-02 16:44 
GeneralRe: Classes in DLL Pin
10-Apr-02 17:36
suss10-Apr-02 17:36 
GeneralRe: Classes in DLL Pin
Gunnar Bolle10-Apr-02 23:44
Gunnar Bolle10-Apr-02 23:44 
GeneralRe: Classes in DLL Pin
jan larsen11-Apr-02 2:17
jan larsen11-Apr-02 2:17 
GeneralRe: Classes in DLL Pin
Jack Hui11-Apr-02 5:30
Jack Hui11-Apr-02 5:30 
Generalheap, stack Pin
NicholasCougar10-Apr-02 16:25
NicholasCougar10-Apr-02 16:25 
GeneralRe: heap, stack Pin
Paul M Watt10-Apr-02 16:35
mentorPaul M Watt10-Apr-02 16:35 
GeneralRe: heap, stack Pin
James R. Twine12-Apr-02 10:12
James R. Twine12-Apr-02 10:12 
GeneralRe: heap, stack Pin
Ravi Bhavnani12-Apr-02 10:49
professionalRavi Bhavnani12-Apr-02 10:49 
GeneralRe: heap, stack Pin
James R. Twine12-Apr-02 15:56
James R. Twine12-Apr-02 15:56 
GeneralFormatting rebars Pin
funbag10-Apr-02 16:16
funbag10-Apr-02 16:16 
GeneralRe: Formatting rebars Pin
wangyiming12-Apr-02 3:47
wangyiming12-Apr-02 3:47 
GeneralRe: Formatting rebars Pin
wangyiming12-Apr-02 3:50
wangyiming12-Apr-02 3:50 
Generalstatic in class Pin
NicholasCougar10-Apr-02 15:46
NicholasCougar10-Apr-02 15:46 

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.