Errors in C bsfn

deva raju

Member
Hi All,
all braces are there properly but still the below errors.please someone help me

B55TEST4.c
D:\E910\DV910\source\B55TEST4.c(45) : error C2143: syntax error : missing ';' before '{'
D:\E910\DV910\source\B55TEST4.c(45) : error C2449: found '{' at file scope (missing function header?)
D:\E910\DV910\source\B55TEST4.c(159) : error C2059: syntax error : '}'
jdertdll.c


Adjusting DLL load addresses . . .




************Build Finished************


CCUSTOM.dll - 3 error(s), 0 warning(s): Build failed. Restored previous dll.
 
Dev raju,

There is a missing of semi colon in the .c file. Kindly share the .c file.

Thanks,
 
Hi SounderrajanPeriyasamy,
Thanks for your reply!
Please find the below code and help me.
#include <jde.h>

#define b55test4_c


/*****************************************************************************
* Source File: b55test4
*
* Description: Get Co,MCU,OBJ,PEC,DL01 From F0901 Table Source File
*
* History:
* Date Programmer SAR# - Description
* ---------- ---------- -------------------------------------------
* Author 10/28/2016 Unkno Unknown - Created
*
* Copyright (c) J.D. Edwards World Source Company, 1996
*
* This unpublished material is proprietary to J.D. Edwards World Source Company.
* All rights reserved. The methods and techniques described herein are
* considered trade secrets and/or confidential. Reproduction or
* distribution, in whole or in part, is forbidden except by express
* written permission of J.D. Edwards World Source Company.
****************************************************************************/
/**************************************************************************
* Notes:
*
**************************************************************************/

#include <b55test4.h>


/**************************************************************************
* Business Function: GetCoMCUOBJPEC,DL01FromF0901
*
* Description: Get Co,MCU,OBJ,PEC,DL01FromF0901
*
* Parameters:
* LPBHVRCOM lpBhvrCom Business Function Communications
* LPVOID lpVoid Void Parameter - DO NOT USE!
* LPDSD55TE lpDS Parameter Data Structure Pointer
*
*************************************************************************/

JDEBFRTN (ID) JDEBFWINAPI GetCoMCUOBJPEC,DL01FromF0901 (LPBHVRCOM lpBhvrCom, LPVOID lpVoid, LPDSD55TESTING lpDS)
{


/************************************************************************
* Variable declarations
************************************************************************/
HUSER hUser = NULL;
HREQUEST hRequestF0901 = NULL;
HREQUEST hRequestF0010 = NULL;
ID JDBReturn;
NID szTable = NID_F0901;
NID szTable1 = NID_F0010;
NID nidSelectArray[6] = {NID_CO,NID_AID,NID_OBJ,NID_PEC,NID_DL01};
NID nidSelectArray[2] = {NID_CO,NID_NAME};
ID idIndex = ID_F0901_Account;
ID idIndex1 = ID_F0010_Company;
unsigned short nNumCols = 6;
unsigned short nNumCols1 = 2;
ushort nNumKeys = 1;
/************************************************************************
* Declare structures
************************************************************************/
KEY1_F0901 dsF0901Key;
F0901 dsCols;
KEY2_F0010 dsF0010Key1;
F0010 dsCols1;
DS55TESTING dsCOLUMN;
/************************************************************************
* Declare pointers
************************************************************************/

/************************************************************************
* Check for NULL pointers
************************************************************************/
if ((lpBhvrCom == (LPBHVRCOM) NULL) ||
(lpVoid == (LPVOID) NULL) ||
(lpDS == (LPDSD55TESTING) NULL))
{
jdeErrorSet (lpBhvrCom, lpVoid, (ID) 0, _J("4363"), (LPVOID) NULL);
return ER_ERROR;
}

/************************************************************************
* Set pointers
************************************************************************/

/************************************************************************
* Main Processing
************************************************************************/
memset((void *)(&dsF0901Key), (int)(_J('\0')), sizeof(KEY1_F0901));
memset((void *)(&dsCols), (int)(_J('\0')), sizeof(F0901));
memset((void *)(&dsF0010Key1), (int)(_J('\0')), sizeof(KEY1_F0010));
memset((void *)(&dsCols1), (int)(_J('\0')), sizeof(F0010));
/* Open F0901 */
JDBReturn = JDB_InitBhvr(lpBhvrCom,
&hUser,
(JCHAR *)NULL,
JDEDB_COMMIT_AUTO);
if (JDBReturn == JDEDB_PASSED)
{

JDBReturn =JDB_OpenTable(hUser,szTable,idIndex,nidSelectArray,nNumCols,(JCHAR *) NULL,&hRequestF0901);
if (JDBReturn == JDEDB_PASSED)
{
jdeStrncpy(dsF0901KEY.gmaid, (const JCHAR *)(lpDS->szAccountId),
DIM(dsF0901KEY.gmaid));
JDBReturn = JDB_FetchKeyed(hRequestF0901,idIndex, (void *)
&dsF0901Key, nNumKeys, (void *) &dsCOLUMN, FALSE);


if (JDBReturn == JDEDB_PASSED)
{
lpDS->mnMathNumeric01 = _J('1');

jdeStrncpy(lpDS->szCompany,(const JCHAR *)(dsCOLUMN.szCompany),
DIM(lpDS->szCompany));

/* Open F0010 */

JDB_OpenTable(hUser,szTable1,idIndex1,nidSelectArray1,nNumCols1,(JCHAR *) NULL,&hRequestF0010);
if (JDBReturn == JDEDB_PASSED)
{
lpDS->cPostingEdit = _J('1');
jdeStrncpy(dsF0010KEY1.ccco, (const JCHAR *)(lpDS->szCompany),
DIM(dsF0010KEY1.ccco));
JDBReturn = JDB_FetchKeyed(hRequestF0010,idIndex1, (void *)
&dsF0010Key1, nNumKeys, (void *) &dsCOLUMN, FALSE);
jdeStrncpy(lpDS->szName,(const JCHAR *)(dsCOLUMN.szName),
DIM(lpDS->szName));

}
else
{
lpDS->cPostingEdit = _J('0');
}
/*F0010 Closed*/

}
else
{
lpDS->mnMathNumeric01 = _J('0');

}
}


JDB_CloseTable(hRequestF0901);
JDB_CloseTable(hRequestF0010);
JDB_FreeBhvr (hUser);
}
/************************************************************************
* Function Clean Up
************************************************************************/

return (ER_SUCCESS);


}
/* Internal function comment block */
/**************************************************************************
* Function: Ixxxxxxx_a // Replace "xxxxxxx" with source file number
* // and "a" with the function name
* Notes:
*
* Returns:
*
* Parameters:
**************************************************************************/



 
Try Removing the comma from your function name: GetCoMCUOBJPEC,DL01FromF0901.

Craig
 
Back
Top