Now ,it can work.
The bug is that I colse file after returning p.
When I chang the position ('fclose (out) ') and put it before returning p . It work normally.
Thank you for everything you do for me.
I bother with you for a period time.
Thank you Tony and Bob.
Thank you very much!
Search found 22 matches
- Thu Apr 20, 2006 4:28 am
- Forum: Vensim
- Topic: c language in vensim
- Replies: 32
- Views: 14217
- Wed Apr 19, 2006 3:26 pm
- Forum: Vensim
- Topic: c language in vensim
- Replies: 32
- Views: 14217
- Wed Apr 19, 2006 7:55 am
- Forum: Vensim
- Topic: c language in vensim
- Replies: 32
- Views: 14217
- Tue Apr 18, 2006 2:19 pm
- Forum: Vensim
- Topic: c language in vensim
- Replies: 32
- Views: 14217
Whether you solve the problem or not,give me any reply ,please.I am worried about it very much.I tried to modify program body to make VC fine but fail. Could anyone help me? My things are too big to attach on the web. I can email my things for you. [Edited on 4-18-2006 by Anna] [Edited on 4-18-2006 ...
- Tue Apr 18, 2006 11:04 am
- Forum: Vensim
- Topic: c language in vensim
- Replies: 32
- Views: 14217
- Tue Apr 18, 2006 9:38 am
- Forum: Vensim
- Topic: c language in vensim
- Replies: 32
- Views: 14217
I found where was the problem!
I found some little problems and modify it .Now "NETWORK" which I made is fine but VC is not fine. Then I did some tests to test where were the problems happen? Because I use VC_FUNCTION 15 times(15 variables will use it) in my model.I tried to reserve one variable and others were deleted,...
- Thu Apr 13, 2006 1:59 am
- Forum: Vensim
- Topic: c language in vensim
- Replies: 32
- Views: 14217
- Tue Apr 11, 2006 12:56 pm
- Forum: Vensim
- Topic: c language in vensim
- Replies: 32
- Views: 14217
Thank you for you to help me modify the file. My model can't run when I added it. I email to you .Can you help me to check? I don't know about any c++.Actuality,This was my first time to know what is the dll file and to write neural nework by c . Our lab usually use Fortran and I often feel upset an...
- Tue Apr 11, 2006 1:14 am
- Forum: Vensim
- Topic: c language in vensim
- Replies: 32
- Views: 14217
Thank you Tony and Bob.Now ,I have 7errors: 1.D:\reserch\model\Fej1023\Fej1023\VENEXT.C(208) : error C2065: 'NETWORK_FUNC' : undeclared identifier 2.D:\reserch\model\Fej1023\Fej1023\VENEXT.C(209) : error C2065: 'VC_FUNC' : undeclared identifier -------------------------------------------------------...
- Mon Apr 10, 2006 1:40 pm
- Forum: Vensim
- Topic: c language in vensim
- Replies: 32
- Views: 14217
- Mon Apr 10, 2006 8:00 am
- Forum: Vensim
- Topic: c language in vensim
- Replies: 32
- Views: 14217
Wu..Wu...
When I add my neural network (it run well in vc++) and modify somewhere to suit the model that I will build in the future. There are 102 errors .My God! I don't know why it had errors because somewhere that errors mean I thought their were be fine.@@ I email something for you.Please take a look. Tha...
- Sun Apr 09, 2006 3:51 am
- Forum: Vensim
- Topic: c language in vensim
- Replies: 32
- Views: 14217
- Wed Apr 05, 2006 12:36 pm
- Forum: Vensim
- Topic: c language in vensim
- Replies: 32
- Views: 14217
- Wed Apr 05, 2006 9:15 am
- Forum: Vensim
- Topic: c language in vensim
- Replies: 32
- Views: 14217
read input file
I do a test in venext.c to check if vensim can open and read external file.I build a function to do this thing.It body is fllowing below :(There is only one value in in.dat) ==================================== 505 int VCTypeCount(int m) 506 { 507 int in ; 508 FILE *IN ; 509 if((IN=fopen("In.da...
- Mon Apr 03, 2006 1:57 pm
- Forum: Vensim
- Topic: c language in vensim
- Replies: 32
- Views: 14217
- Mon Apr 03, 2006 2:18 am
- Forum: Vensim
- Topic: c language in vensim
- Replies: 32
- Views: 14217
- Wed Mar 29, 2006 3:19 pm
- Forum: Vensim
- Topic: c language in vensim
- Replies: 32
- Views: 14217
- Wed Mar 29, 2006 3:17 pm
- Forum: Vensim
- Topic: c language in vensim
- Replies: 32
- Views: 14217
- Wed Mar 29, 2006 5:02 am
- Forum: Vensim
- Topic: c language in vensim
- Replies: 32
- Views: 14217
c language in vensim
I have already seen Chapter 8 of the DSS reference about external function.I find all external function are return one value.If I want to return many values ,I know to use the way that "call by address" in c language.Can Vensim support the "call by address" capability?That is wha...
- Mon Feb 06, 2006 8:54 am
- Forum: Vensim
- Topic: VENSIM & .DLL
- Replies: 3
- Views: 2819
I have already seen those informations you talk to me.All of examples your company provide express how to use VB,JAVA,..and so on,to call vensim by using vendll32.dll. But What I wnat is to know how to vensim call .dll file(the dll file can input a lot of variables that produce by other model) Do it...
- Tue Jan 31, 2006 1:07 am
- Forum: Vensim
- Topic: VENSIM & .DLL
- Replies: 3
- Views: 2819
VENSIM & .DLL
Sir: Where is the place in Vensim that connect with .dll files. I look for Vensim's help but it says little about that. Do the .dll files which were built in Vensim must be written in C or C++?I can only write dll in Fortran .Do you or someone have some books,guides,or any reference materials to giv...
about dll
Hi,everyone:
Can Vensim call other models (were not built by vensim) by DLL?In other words,DLL can make other models work to produce data then build its equation.That's DLL function,do I think right?
How to use fortran to build DLL?
Thank you!
Anna
Can Vensim call other models (were not built by vensim) by DLL?In other words,DLL can make other models work to produce data then build its equation.That's DLL function,do I think right?
How to use fortran to build DLL?
Thank you!
Anna