Hi again!, I´m very lost with this... I´m trying to connect to a navision data base using C/FRONT, using a web technology (PHP, ASP, or something...). I have seen the "DotNetApplicattionSample" from my Navision CD, but I´m really lost!.
Furthermore, when I try to execute the aplicattion with Visual Studio 2005, appears an error saying "the system can´t find 'cfront.dll'" (or something like that).
Can anyone tell me what programs I need to use C/FRONT? Can anyone explain me with a very little sample (like a 'Hello world' or something) how can I use C/FRONT?
Thanks in advance!
PD: Sorry for my bad english and my low knoledge... I´m really novice... :oops:
0
Answers
http://www.mibuso.com/forum/viewtopic.php?t=19534
You need to install C/Front. It's on the CD, in the Devkit directory.
Can anybody help me?? Thanks!
Anyway, thanks for your reply poltergeist,
C/Front is a library of C functions to manipulate a Navision database (C/SIDE or SQL).
Therefore, to use it, you should be using the C programming language.
If you want to use a web based language like PHP you're going to have write an interface to make it work with your new language. Fortunately in PHP you can do this:
since you are using Windows and the API is contained within a DLL then you could call it via rundll32, which you can call
via the PHP system() function.
system('rundll32.exe YourAPI.DLL,FunctionWithinDLL Parameter1 Parameter2
....')
Haven't tried that though.
http://blogs.msdn.com/eldar/archive/200 ... -code.aspx
describes how to call c functions from asp.net
Just glanced over the two posts, but they seem to be dependent on how the .dll functions are defined. So you still might have to write some custom C interface code.
Happy coding ! Any way, if you get discouraged, you can also look for ara3n's posting about how to calculate flowfields directly from SQL tables. You might find that easier. Then you can you standard ADO to write you web application.
Personally, I've been mulling over the two options for a long time now. Write now, my preference is to do it with C/Front... but as you can see, its not totally straightforward (but it *is* doable) either way.
I am in the same situation which you have faced.I want to learn the C/FRONT. I want to access the Navision Database from in an ASP.NET program. can you please help me.
I vhae gone through the w1w1cfront.pdf but it talks about accessing navision database using c Compiler only, i am willing to access it using .NET, but i dont know how to start.
please help me.
thanks in advance.