Bill Smith
unread,Jul 27, 2010, 12:38:37 AM7/27/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Com1 Software DLL Development
I downloaded and installed the X12 parser using setup.exe. I accepted
the default location. I ran the app and entered the code given by the
download page.
I'm trying to use it from C# (VS2008 Pro) with the following code
(console app running in debug mode):
using System.Runtime.InteropServices;
using System;
using System.Xml;
using System.Collections.Generic;
using System.Collections;
using System.IO;
class PInvoke1App
{
[DllImport(@"c1d0m471.dll")]
static extern string C1COMMAND0(string strCaptiona);
[DllImport(@"c1d0m471.dll")]
//static extern string C1COMMAND2(string command, string
outputType, string source);
static extern string C1COMMAND5(string strCaptiona, string
strCaptionb, string strCaptionc, string strCaptiond,
string strCaptione, string strCaptionf);
public static void Main()
{
string ret = C1COMMAND0("GETDLLVERSION");
Console.WriteLine("Return Value: " + ret);
string inFile = "C:\\mdonline835sample.835";
string outFile = "test1";
string options = "OW";
string result = C1COMMAND5("PARSE", "csv", inFile, outFile,
options, "");
}
}
I get this output:
Return Value: 1.16G-16
Then I get a usually get the standard demo popup about the window not
showing in the licensed mode. but right now I'm getting
"Sorry, the trial version of this product has reached its daily
limit."
It seems clear that the install thinks it's a demo version still --
what do I need to do? I've tried referencing the DLL where it was
installed, copying the DLL into the same directory as my exe and
copying my exe into the directory where the DLL was install -- all
have the same behavior. I can run the app in the install directory
(c1d0f472.exe) with no problem and no prompts.
Thanks,
Bill