jdelist600
Member
Hi Ramachandaran
You need add jdekrnl.lib bcoz all jde data base
functions are part of JDEKRNL.LIB (like example. open
table,insert table etc.,)
If you need any help let me know
Thanks
Madhusudhan Bandari
[email protected]
Miraclle-Ear Inc.,
Information Technology & Management
5000, Suite 1, Cheshire Line
Plymouth, MN , 55446 USA
----- Original Message -----
From: "ramachandran muthukumar" <[email protected]>
To: <[email protected]>
Sent: Monday, March 12, 2001 12:15 AM
Subject: Re:Accessing JDE Table from VC++6.0
> Hi List,
>
> I tried to access JDE table from VC++6.0 using JDE
API
> code given below
>
>
> HREQUEST hRequest = NULL;
> HENV hEnv = NULL;
> HUSER hUser = NULL;
> NID idTable = NID_F0101Z2;
> ID idIndex = ID_F0101Z2_USERID__BATCHNUMBER;
> F0101Z2 dsStructToInsert;
> JDEDB_RESULT rcode;
>
>
>
> if ((rcode = JDB_OpenTable(hUser, idTable, idIndex,
> NULL, (int)0, NULL, &hRequest)) != JDEDB_PASSED)
> {
> printf("JDB_OpenTable failed\n");
> return (0);
> }
>
> I'm getting the following errors:
>
> while Opening the Table
> -----------------------
> jdeapi_2Dlg.obj : error LNK2001: unresolved external
> symbol __imp__JDB_OpenTable@28
>
>
> Intializing Environment Variable
> --------------------------------
> HENV hEnv = NULL;
> HUSER hUser = NULL;
> JDEDB_RESULT rcode;
> char szEnv[11] = P733ASD1";
> char szUser[11] = UserID";
> char szPwd[11] = Password";
>
> /* Initialize Environment Handle */
> if ((rcode = JDB_InitEnvOvr(&hEnv, szEnv, szUser,
> szPwd)) != JDEDB_PASSED)
> {
> printf("JDB_InitEnvOvr failed.\n");
> return (0);
> }
>
> Error:
> -------
> jdeapi_2Dlg.obj : error LNK2001: unresolved external
> symbol __imp__JDB_InitUser@16
> jdeapi_2Dlg.obj : error LNK2001: unresolved external
> symbol __imp__JDB_InitEnvOvr@16
>
> if i had to include lib file what is the respective
> lib file.
>
> Any suggestions will be appreciated.
>
> Thanx in Advance
> Ramachandran
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great
prices.
> http://auctions.yahoo.com/
> + - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - +
> This is the JDEList One World / XE Developers
Mailing List.
> Archives and information on how to SUBSCRIBE, and
> UNSUBSCRIBE can be found at http://www.JDELIST.com
> + - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - +
You need add jdekrnl.lib bcoz all jde data base
functions are part of JDEKRNL.LIB (like example. open
table,insert table etc.,)
If you need any help let me know
Thanks
Madhusudhan Bandari
[email protected]
Miraclle-Ear Inc.,
Information Technology & Management
5000, Suite 1, Cheshire Line
Plymouth, MN , 55446 USA
----- Original Message -----
From: "ramachandran muthukumar" <[email protected]>
To: <[email protected]>
Sent: Monday, March 12, 2001 12:15 AM
Subject: Re:Accessing JDE Table from VC++6.0
> Hi List,
>
> I tried to access JDE table from VC++6.0 using JDE
API
> code given below
>
>
> HREQUEST hRequest = NULL;
> HENV hEnv = NULL;
> HUSER hUser = NULL;
> NID idTable = NID_F0101Z2;
> ID idIndex = ID_F0101Z2_USERID__BATCHNUMBER;
> F0101Z2 dsStructToInsert;
> JDEDB_RESULT rcode;
>
>
>
> if ((rcode = JDB_OpenTable(hUser, idTable, idIndex,
> NULL, (int)0, NULL, &hRequest)) != JDEDB_PASSED)
> {
> printf("JDB_OpenTable failed\n");
> return (0);
> }
>
> I'm getting the following errors:
>
> while Opening the Table
> -----------------------
> jdeapi_2Dlg.obj : error LNK2001: unresolved external
> symbol __imp__JDB_OpenTable@28
>
>
> Intializing Environment Variable
> --------------------------------
> HENV hEnv = NULL;
> HUSER hUser = NULL;
> JDEDB_RESULT rcode;
> char szEnv[11] = P733ASD1";
> char szUser[11] = UserID";
> char szPwd[11] = Password";
>
> /* Initialize Environment Handle */
> if ((rcode = JDB_InitEnvOvr(&hEnv, szEnv, szUser,
> szPwd)) != JDEDB_PASSED)
> {
> printf("JDB_InitEnvOvr failed.\n");
> return (0);
> }
>
> Error:
> -------
> jdeapi_2Dlg.obj : error LNK2001: unresolved external
> symbol __imp__JDB_InitUser@16
> jdeapi_2Dlg.obj : error LNK2001: unresolved external
> symbol __imp__JDB_InitEnvOvr@16
>
> if i had to include lib file what is the respective
> lib file.
>
> Any suggestions will be appreciated.
>
> Thanx in Advance
> Ramachandran
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great
prices.
> http://auctions.yahoo.com/
> + - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - +
> This is the JDEList One World / XE Developers
Mailing List.
> Archives and information on how to SUBSCRIBE, and
> UNSUBSCRIBE can be found at http://www.JDELIST.com
> + - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - +