Click here to Skip to main content
15,895,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: 1 day only! I will answer your beginner home-work assignments! Pin
Mike Danberg8-Oct-03 17:09
Mike Danberg8-Oct-03 17:09 
GeneralRe: 1 day only! I will answer your beginner home-work assignments! Pin
David Stone8-Oct-03 19:12
sitebuilderDavid Stone8-Oct-03 19:12 
GeneralRe: 1 day only! I will answer your beginner home-work assignments! Pin
Chris Maunder8-Oct-03 16:47
cofounderChris Maunder8-Oct-03 16:47 
GeneralRe: 1 day only! I will answer your beginner home-work assignments! Pin
Terry O'Nolley8-Oct-03 17:25
Terry O'Nolley8-Oct-03 17:25 
GeneralRe: 1 day only! I will answer your beginner home-work assignments! Pin
Alex Dolpfin9-Oct-03 3:24
Alex Dolpfin9-Oct-03 3:24 
GeneralDetecting if UNC path is on local machine Pin
RWB8-Oct-03 9:08
RWB8-Oct-03 9:08 
GeneralRe: Detecting if UNC path is on local machine Pin
Joel Lucsy9-Oct-03 2:36
Joel Lucsy9-Oct-03 2:36 
GeneralSetting Crystal Reports parameter fields using automation Pin
pocovnicu8-Oct-03 8:40
pocovnicu8-Oct-03 8:40 
Hello,
I have this code

COleVariant vtOpenMethod((short)1);
LPDISPATCH pDisp;
pDisp = CRApplication.OpenReport((_bstr_t)"Grafic de ocupare pe zile.rpt", vtOpenMethod);
CRReport.AttachDispatch(pDisp);
ICRParameterFieldDefinitions apParam= CRReport.GetParameterFields();
long lCount = apParam.GetCount();
for(int i = 1; i <= lCount; i++)
{
COleVariant vtIndex ((long)i, VT_I4);
COleVariant vtReport("");
_variant_t vCurVal;
vCurVal = COleVariant(_T(m_data));
ICRParameterFieldDefinition yy = apParam.GetItem(vtIndex,vtReport);
....
}

What I want to do is to pass to my report 2-3 parameters.
If i use
yy.SetCurrentValue(vCurVal);
I get this error :
Unable to write read-only property.

Please can somebody tell me how to pass these parameters?
Thanks!
GeneralDialog to PropertyPage Pin
act_x8-Oct-03 8:36
act_x8-Oct-03 8:36 
GeneralRe: Dialog to PropertyPage Pin
Mike Danberg8-Oct-03 10:48
Mike Danberg8-Oct-03 10:48 
QuestionHow to load a File.rc with different name ?? Pin
Cris8-Oct-03 8:24
Cris8-Oct-03 8:24 
AnswerRe: How to load a File.rc with different name ?? Pin
David Crow8-Oct-03 8:40
David Crow8-Oct-03 8:40 
GeneralRe: How to load a File.rc with different name ?? Pin
Cris8-Oct-03 8:50
Cris8-Oct-03 8:50 
AnswerRe: How to load a File.rc with different name ?? Pin
Michael Dunn8-Oct-03 16:51
sitebuilderMichael Dunn8-Oct-03 16:51 
GeneralMessages and CSplitterWnd Pin
AnTri8-Oct-03 8:19
AnTri8-Oct-03 8:19 
GeneralRe: Messages and CSplitterWnd Pin
KaЯl9-Oct-03 3:19
KaЯl9-Oct-03 3:19 
GeneralNeed a little CFormView help Pin
Adam Gritt8-Oct-03 8:14
Adam Gritt8-Oct-03 8:14 
QuestionHow Browser handles Javascript events Pin
JDasari8-Oct-03 7:48
JDasari8-Oct-03 7:48 
Generaldeclare CRect Pin
swerajan8-Oct-03 7:37
swerajan8-Oct-03 7:37 
GeneralRe: declare CRect Pin
Larry J. Siddens8-Oct-03 7:52
Larry J. Siddens8-Oct-03 7:52 
GeneralRe: declare CRect Pin
David Crow8-Oct-03 8:24
David Crow8-Oct-03 8:24 
GeneralRe: declare CRect Pin
Larry J. Siddens8-Oct-03 9:54
Larry J. Siddens8-Oct-03 9:54 
QuestionAnyone have a link to source for a graph data structure? Pin
adonisv8-Oct-03 7:26
adonisv8-Oct-03 7:26 
AnswerRe: Anyone have a link to source for a graph data structure? Pin
Ryan_Roberts8-Oct-03 7:44
Ryan_Roberts8-Oct-03 7:44 
GeneralRe: Anyone have a link to source for a graph data structure? Pin
adonisv8-Oct-03 21:30
adonisv8-Oct-03 21:30 

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.