Highlighted
s_vogel Absent Member.
Absent Member.
2472 views

[TUTORIAL+KB] How to create an EML export mechanism in GW8

Hello there folks!

I'm pretty new to the topic of C3PO, GW and all the Novell stuff and one of my tasks was to "code an export mechanism for GW8 thats lats us save e-mails to our storage system". Ok, that was a hammer. But wrapping my head around it and starting to error out the things got me pretty far and I guessed it was tutorial material. So here we go:

@Moderators: Please don't delete this. I need some time to wrap it all up.


This tutorial is intendend for C# only. I don't like VB and I'm too dumb for C++ so if you need it for another dialect you need to work it out your self.


Agenda:

  1. Needed packages
  2. C3PO wizard
  3. Loading to Visual Studio 2010
  4. Needed Imports/References
  5. Simple MessageBoxing
  6. Get Messages and stuff them into Lists
  7. Export single Messages
  8. Export multiple messages
  9. Registering and caching the .DLL
  10. Testing (please help me with a better way here)



    1. Needed packages

    • the novell-gwc3po-devel-2012.11.15.zip file (unzip this after downloading)
    • an installed version of Visual Studio 2012 C# (or if you want to work with a different dialect choose another)
    • cmd access to some of the registering tools:
      [INDENT]It may be the best thing to set tose paths up in you env variables. Allthough when running the cmd with administrator privileges you can't use regasm from env variables and need to cd to the directory.

      • RegAsm (regasm.exe): C:\Windows\Microsoft.NET\Framework\v4.0.30319 (the version depends on the target)
      • GACUtil (gacutil.exe): C:\Program Files(x86)\Micrsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\ (this path is also dependent on your target framework version, I chose .NET4)
      • StrongName (sn.exe): C:\Program Files(x86)\Micrsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\ (this path is also dependent on your target framework version, I chose .NET4)

      [/INDENT]
    • a good beverage 😄 (you should obtain multiple of these :D)



    2. The C3PO wizard

    Loading to Visual Studio 2010

    Needed Imports/References

    Simple MessageBoxing

    Get Messages and stuff them into Lists

    Export single Messages

    Export multiple messages

    Registering and caching the .DLL

    Testing (please help me with a better way here)
Labels (1)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.