
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Paradox Engine 3.0 for C - /* the setup.c program must be compiled and run before this example */
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
/* The SETUP.C program must be compiled and run before this example */
/* can be executed. */
#include <stdio.h>
#include "pxengine.h"
#define TABLENAME "table"
#define NETDIR ""
#define NETTYPE NETSHARE
int main(void)
{
TABLEHANDLE tblHandle;
RECORDHANDLE recHandle;
LOCKHANDLE lckHandle;
PXCODE pxErr;
PXNetInit(NETDIR,NETTYPE,DEFUSERNAME);
PXTblOpen(TABLENAME, &tblHandle, 0, 0);
PXRecBufOpen(tblHandle, &recHandle);
PXNetRecLock(tblHandle, &lckHandle);
/* Go to record previously locked. */
if ((pxErr = PXNetRecGotoLock(tblHandle, lckHandle)) != PXSUCCESS)
printf("%s\n", PXErrMsg(pxErr));
PXNetRecUnlock(tblHandle, lckHandle);
PXRecBufClose(recHandle);
PXTblClose(tblHandle);
PXExit();
return(pxErr);
}
.
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson