|
hi,
I have one clarification, I just want to know how to call stored
procedures in CDaoDatabase.
After the submit button I need to call one stored procedure by name
STORE_PROCEDURE1 with input parameters as
name,no,mark1,mark2
By using ADO I think we can use like this below. I just want to know how
to use in DAO.
With AdoComm
.CommandText = "{call PROEX.KPP_LFE.PPP_INSTPP_EMBARQUE_AUX(?)}"
.CommandType = adCmdStoredProc
Set AdoParamRet = .CreateParameter("Retorno", adBSTR, adParamInputOutput,
, vfRsEmb)
Call .Parameters.Append(AdoParamRet)
.Properties("PLSQLRSet") = True
Set vfRsEmbRet = .Execute
i want to do the same thing in DAO using CDaoDatabse
Try again and again,
At last you will say
I don't know the meaning for impossible.,.
|
|
|
|
|
When you send a "New Message" we can see it and you don't need to send a new thread
whitesky
|
|
|
|
|
|
in Richedit i insert table than i need to set cursor position inside the table but i get it after table last row
chetan
|
|
|
|
|
how did you insert the table in the edit
ajeeshcv
|
|
|
|
|
in MFC control rich edit, i insert bitmap and table and save in file through streamout of msdn fun as .rtf file it save perfectly but when same file try to lode in richedit it load only table or text not bitmap , i use the class streamin for load in richedit of msdn
chetan Sheladiya
|
|
|
|
|
hi,
I have one clarification, I just want to know how to call stored
procedures in CDaoDatabase.
After the submit button I need to call one stored procedure by name STORE_PROCEDURE1 with input parameters as name,no,id,mark1,mark2
By using ADO, I think we can use like this below. I just want to know how to use in DAO.
With AdoComm
.CommandText = "{call PROEX.KPP_LFE.PPP_INSTPP_EMBARQUE_AUX(?)}"
.CommandType = adCmdStoredProc
Set AdoParamRet =.CreateParameter("Retorno", adBSTR, adParamInputOutput,
,vfRsEmb)
Call .Parameters.Append(AdoParamRet)
.Properties("PLSQLRSet") = True
Set vfRsEmbRet = .Execute
reply early
Try again and again,
At last you will say
I don't know the meaning for impossible.,.
|
|
|
|
|
hi plz tell me
in sdi application how we can go from one form to another form
as i dialog based we use domodal()
but we can use in sdi from one form to another
Ashish Dogra
MCA
Noida
|
|
|
|
|
Create your sdi application with a form view
|
|
|
|
|
yes sir i create it with form view but then i create a second form whose base class is CMDIChildWnd wher split window is created .
now i want to go from first forms menu to second form .
Ashish Dogra
MCA
Noida
|
|
|
|
|
Your second form should also be derived from CFormView. Use SetActiveView() of your mainframe window to switch between your forms.
|
|
|
|
|
Do you need to call one dialog
whitesky
|
|
|
|
|
sir i need to call a form
on which split window is shown
Ashish Dogra
MCA
Noida
|
|
|
|
|
Hope I understood your question
if you want to call dialog you can use from a variable from your dialog and use m_dialog.Create(ID_DIALOG) in your program and use m_dialog.Show(1);
whitesky
|
|
|
|
|
hi sir plz solve my problem
Ashish Dogra
MCA
Noida
|
|
|
|
|
Hi guys this is rocky.
I got stuck in a problem plz help me.
I want to read a text file which is having unciode charachters in C/C++.
i m using normaal fopen function but can't get the result fine..
here is the small peace of codeee
if ((fp = fopen("d:/GRCasual.txt", CFile::modeRead|CFile::typeBinary)) == NULL)
{
return 0;
}
while(!feof(fp))
{
/*fseek(fp,sizeof(char),SEEK_CUR); */
retbuf = fgets(buf, 200, fp);
}
thnx in advance guys ............
i m waitin for ur replies..........
Best Regards
Rocky
|
|
|
|
|
Declare the "buf" parameter in fgets(buf, 200, fp) as wchar_t type.
Jubin Chawda
braindrain1@rediffmail.com
-----------------------------
Come online at:-
fitiyal@yahoo.com
|
|
|
|
|
i m gettin an exception that
error C2664: 'fgets' : cannot convert parameter 1 from 'wchar_t *' to 'char *'
what abt this
thnx in advance
Best Regards
Rocky
|
|
|
|
|
Try fgetws instead of fgets .
(However it is unlikely that your second parameter of fopen will work).
|
|
|
|
|
Thnx for the reply first
thnx for giving me some time
here is the peice of code i m not getting the result
FILE* fp = NULL;
wchar_t* buf = (wchar_t*)malloc(sizeof(wchar_t) * 200);
wchar_t* retbuf = NULL;
if ((fp = fopen("d:/GRCasual.txt", "r")) == NULL) // opens the file
{
return 0;
}
while(!feof(fp))
{
/*fseek(fp,sizeof(char),SEEK_CUR); */
retbuf = fgetws(buf, 200, fp);
}
if( fp )
fclose(fp);
return 0;
|
|
|
|
|
Instead of
if ((fp = fopen("d:/GRCasual.txt", "r")) == NULL) try this:
if ((fp = fopen("d:\\GRCasual.txt", "rb")) == NULL)
I hope it helps.
|
|
|
|
|
See OLE2A USES_CONVERSION;
whitesky
|
|
|
|
|
Sorry Guys but can't get the result with this also OLE2A USES_CONVERSION
plz help
thnx in advance
Rocky
|
|
|
|
|
you said "cannot convert parameter 1 from 'wchar_t *' to 'char *" whats error? and i said use OLE2A
whitesky
|
|
|
|
|
Guys this is the code but cant read the unicode file...........
if there is any problem in it tell me i will solve it..........
FILE* fp = NULL;
wchar_t* buf = (wchar_t*)malloc(sizeof(wchar_t) * 200);
wchar_t* retbuf = NULL;
if ((fp = fopen("d:/GRCasual.txt", "r")) == NULL) // opens the file
{
return 0;
}
while(!feof(fp))
{
/*fseek(fp,sizeof(char),SEEK_CUR); */
retbuf = fgetws(buf, 200, fp);
}
if( fp )
fclose(fp);
return 0;
thnx in advance
regards
Rakesh
|
|
|
|