I executed that code and it worked fine on Visual Studio 2010 (Ultimate)
Here is what I did:
Opened project in VS-2010 and converted it.
Build the solution
Copied an example circuit (rc.cir) from the original dist.
executed the spice in cmd:
c:\...\spice3f5\Debug>spice3f5.exe < rc.cir
It will dump some info on the screen and saves the result in rawspice.raw and dump some more files (like rc.read, write, etc.)
Screen dump:
Circuit: Basic RC circuit
Warning: vin: no DC value, transient time 0 value used
Circuit: Basic RC circuit
Date: Wed Nov 09 10:33:08 2011
basic rc circuit
r 1 2 1.0
*l 1 2 1.0
c 2 0 1.0
vin 1 0 pulse (0 1) ac 1
.tran 0.1 7.0
*.ac dec 10 .01 10
*.plot ac vdb(2) xlog
.end
elapsed time since last call: 0.000 seconds.
Total elapsed time: 0.000 seconds.
Current dynamic memory usage = 0,
Dynamic memory limit = 0.
rawspice.raw:
Title: Basic RC circuit
Date: Wed Nov 09 10:33:08 2011
Plotname: Transient Analysis
Flags: real
No. Variables: 4
No. Points: 66
Command: version 3f5
Variables:
0 time time
1 V(1) voltage
2 V(2) voltage
3 vin#branch current
Values:
0 0.000000000000000e+000
0.000000000000000e+000
0.000000000000000e+000
0.000000000000000e+000
1 1.000000000000000e-003
1.000000000000000e-002
9.990009990009990e-006
-9.990009990009990e-003
2 1.084056000000000e-003
1.084056000000000e-002
1.090030786509208e-005
-1.082965969213491e-002
3 1.252168000000000e-003
1.252168000000000e-002
1.286204694203642e-005
-1.250881795305796e-002
4 1.588392000000000e-003
1.588392000000000e-002
1.763224271321389e-005
-1.586628775728679e-002
5 2.260840000000000e-003
2.260840000000000e-002
...
Hope it helps
Hi again, I have a file rc.cir
Basic RC circuit
r 1 2 1.0
*l 1 2 1.0
c 2 0 1.0
vin 1 0 pulse (0 1) ac 1
.tran 0.1 7.0
*.ac dec 10 .01 10
.plot tran v(2) i(vin)
*.plot ac vdb(2) xlog
.end
The file is located in the same directory as the visual studio project-file.
I typed:
spice3f5 -b rc.cir
Nothing happens...