Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Statemate (steve huntington)
Decrease font size
Increase font size
Topic Title: Compiling DataPort Example with MS Visual Studio
Topic Summary:
Created On: 10-Apr-2006 07:43
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 10-Apr-2006 07:43
User is offline View Users Profile Print this message


Matthias Wiemann

Posts: 2
Joined: 5-Apr-2006

Hi,

I am following the DataPort example from ilogix to read out a StateMate project. I copied & pasted the given example, but it does not work. The source looks like this:

[FONT=Courier New]#include "C:/I-Logix/stmm/4.1/include/dataport.h"
#include <stdio.h>

main( )
{
int status, success;
char name[32];
char dir[30];
printf ("Enter name of Statemate project: ");
scanf ("%s", name);
printf ("Enter directory pathname for your Workarea: ");
scanf ("%s", dir);
success = [COLOR=Red]stm_init_uad (name, dir, automatic_transaction, &status);[/COLOR]
if (!success)
printf ("Init function failed. Reason: status code %d", status);
}[/FONT]

The compiler error is:
[FONT=Courier New]main.c(14): error C2197: 'stm_init_uad' : too many arguments for call through pointer-to-function[/FONT]

Does anyone have an idea? I would really appreciate it!

Best regards,
Matthias
Report this to a Moderator Report this to a Moderator
 11-May-2006 11:44
User is offline View Users Profile Print this message


Olaf Bär

Posts: 4
Joined: 28-Jul-2005

Have you defined the required environment variable DLL_LINK
to use the right function declaration under WINDOWS?
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Statemate forum.
There are currently 0 users logged in.
The most users ever online was 12 on 4-Mar-2008 at 15:31.
There are currently 0 guests browsing this forum, which makes a total of 0 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.