Getting Started with Transactional Entity Framework
This guide illustrates how to create an HTTP handler for the TEF Server (tentity_svr.exe).
  1. Create a new empty project:
    1. On the File menu, select the New > Project
    2. In the New Project dialog, select the Visual C++ > Win32 and then select the Win32 Project
    3. Enter the Name tef_getting_started
    4. Click the OK button to create the new project
    5. In the Win32 Application Wizard, click the Next button
    6. On the Application Settings page, under the Application type, choose the DLL type
    7. Click the Finish button to create the project.
  2. Configure the project for 64-bit platform:
    1. On the Project menu, select the Properties
    2. Click the Configuration Manager button to open the Configuration Manager dialog
    3. In the Configuration Manager dialog, in the Active solution platform drop-down list, select the <New...> option
    4. In the New Solution Platform dialog, in the Type or select the new platform drop-down list, select the x64 option, and click the OK button
    5. Close the Configuration Manager dialog.
  3. Configure other project's properties:
    1. In the Configuration Properties > Linker > General > Additional Library Directories, enter "$(TEF_SDK)\lib\$(Configuration)\$(Platform)"
    2. In the Configuration Properties > C/C++ > General > Additional Include Directories, enter "$(TEF_SDK)\include"
    3. In the Configuration Properties > C/C++ > Code Generation > Runtime Library, select the Multi-threaded Debug (/MTd) option
    4. In the Configuration Properties > Debugging > Command, enter "$(TEF_SDK)\bin\$(Configuration)\$(Platform)\tentity_svr.exe"
    5. In the Configuration Properties > Debugging > Command Arguments, enter "$(TargetDir)"
    6. Click the OK button to close the project's properties dialog.
  4. Add the following code to the tef_getting_started.cpp:

  5. Compile (F7) and run the project (F5). It starts the tentity_svr.exe (note: run Visual Studio as Administrator since the tentity_svr.exe uses HTTP Server API which requires Administrator privileges to be configured).
  6. In the browser, navigate to The following image depicts the output: