分类：电脑/网络-程序设计
问题：用c写的dll有点问题(用于VB调用)，请教大家!c语言写：#i 
c语言写：#include <iostream.h>#include <conio.h>#include <io.h>#include <alloc.h>#include <stdlib.h>#include <windows.h>#include <math.h>#include <stdio.h>#include "d:\exdl\ioput.h"/*enter*/int _stdcall far pac语言写：#include <iostream.h>#include <conio.h>#include <io.h>#include <alloc.h>#include <stdlib.h>#include <windows.h>#include <math.h>#include <stdio.h>#include "d:\exdl\ioput.h"/*enter*/int _stdcall far pascal LibMain (HANDLE hInstance ,WORD wDataSeg ,WORD wHeapSize,LPSTR lpszCmdLine ){  if (wHeapSize!=0)    UnlockData(0);  return 1;}/*output*/int _stdcall far pascal ioput(int x,int y){  int a,b,sum;  a=3;  b=100;  sum=a*x+b/y;  returm(sum);}/*exit*/int _stdcall far pascal WEP ( int/*SystemExit*/ ){   return(1);}写：Option ExplicitPrivate Declare Function inoutput Lib "D:\exdl\ioput.dll" (ByVal x As Long, ByVal y As Long) As LongPrivate Sub Command1_Click()        Dim A, B, sum As Long    A = CInt(txt1.Text)    B = CInt(txt2.Text)    sum = ioput(A, B)        txt1.Text = sum    txt2.Text = sumEnd Sub用VB运行调用出现“实时错误‘453’，找不到DLL入口点 ioput in D:\exdl\ioput.dll”消息框
回答：程序基本没问题，将enter exit 中的_stdcall去掉，应该用vc就可生成dll