![]() |
Telelogic Statemate (steve huntington) | ![]() |
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 |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
Have you defined the required environment variable DLL_LINK
to use the right function declaration under WINDOWS? |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.