[info-performer] pfInit() and pfExit()

Date view Thread view Subject view Author view

From: Erman Mutlu (ermanmutlu++at++gmail.com)
Date: 10/21/2005 04:51:00


Good afternoon,
I am beginner to Performer, and trying to use some Performer methods
in my project. Mainly, what I want to do is loading a pfb file then
modifying performer object, lastly saving modified performer object
back to pfb file.

Below is simplified version of my code. I am using windowsXP and .NET
2003. Performer 3.2.1 library is installed.

#include <process.h>
#include <pfdu.h>
#include <pf.h>
#include <pr.h>
__declspec(dllimport) int pfInit(void);
__declspec(dllimport) void pfExit(void);

int main(int argc, char* argv[])
{
        pfNode *myPfNode;
        pfInit();
        myPfNode = pfdLoadFile("tree.pfb");
        .................................................................
        .................................................................
        .................................................................
        pfdStoreFile(myPfNode, "output.pfb");
        pfExit();
        exit(0);
}

------ Build started: Project: PFBConverter, Configuration: Debug Win32 ------

Compiling...
PFBConverter.cpp
Linking...
PFBConverter.obj : error LNK2019: unresolved external symbol
__imp__pfExit referenced in function _main
PFBConverter.obj : error LNK2019: unresolved external symbol
__imp__pfInit referenced in function _main
Debug/PFBConverter.exe : fatal error LNK1120: 2 unresolved externals


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Oct 21 2005 - 04:51:15 PDT