| |

VerySource

 Forgot password?
 Register
Search
View: 1085|Reply: 5

How to call senddata(CString str) in CDialog

[Copy link]

3

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-12-17 09:30:01
| Show all posts |Read mode
The FormView view class has senddata(CString str) including the number

How do I need to call senddata(CString str) in CDialog?
Reply

Use magic Report

0

Threads

55

Posts

32.00

Credits

Newbie

Rank: 1

Credits
32.00

 China

Post time: 2020-12-17 13:00:01
| Show all posts
Then declare the pointer of the FormView class in the CDialog derived class, pass the pointer, and you can call it.
Reply

Use magic Report

3

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-12-18 00:30:01
| Show all posts
How did the brother declare?
Reply

Use magic Report

0

Threads

14

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 China

Post time: 2020-12-18 11:45:02
| Show all posts
CView *pView=....
Reply

Use magic Report

3

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-12-18 13:30:02
| Show all posts
My view class is CvcView
Join in CDialog
#include "vcDoc.h"
#include "vcView.h"

CvcView *pView; I can't define it like this

D:\vc\170105\vc\vc\msgpublic.cpp(149): error C2065:'pView': undeclared identifier
D:\vc\170105\vc\vc\msgpublic.cpp(149): warning C4552:'*': operator has no effect; expected operator with side-effect
Error executing cl.exe.
Reply

Use magic Report

3

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-12-18 16:30:01
| Show all posts
Thanks, alright
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list