|
Post by Wayne Rayner on May 13, 2010 10:35:32 GMT -5
ok so basically I found this tutorial on header files (which I have being trying for the last couple of days finding a tutorial I undestand). Now finally I found it. The example was a add command. add(x,y). Well then I decided to add some more functions and well it has currently got 4 functions. I am going to add more functions now. Also this is only for c++ at the moment. I plan to write my first b4GL plugin on this library as well. But I hope u like the four functions. Addition Functions add(x,y) Subtraction Functions subtract(x,y) Multiplication Functions multiply(x,y) Division Functions divide(x,y) Ok so basically thats the functions. The next step is to add more complex functions. For better math equations. The site I got the tutorial from is www.learncpp.com/cpp-tutorial/19-header-files/Tell me what functions you want and I will add them for you Yours Wayne rayner Attachments:
|
|
|
Post by Wayne Rayner on May 13, 2010 11:07:05 GMT -5
Well here is the next version with a trig function that I think isn't correct. If it is wrong can someone tell me how to fix it. Trig Function trig(ang, x, y) This is a division Function of trig, if it even works properly. If it does I will add a multiplication one as well. it will be trigm (ang, x,y)/ I hope you like it Attachments:
|
|
|
Post by Wayne Rayner on May 13, 2010 12:10:06 GMT -5
Ok check first post for functions. Well basically this is my first DLL ever. However it is still used in C++. I am now going to learn how to convert it into a plugin for b4GL now. I hope this works as I haven't tesed this yet. I got this tutorial from msdn.microsoft.com/en-us/library/ms235636%28VS.80%29.aspxYours Wayne Rayner Attachments:
|
|
|
Post by Wayne Rayner on May 13, 2010 12:47:34 GMT -5
ok well i know this ai'nt the best place for help but the file above is not working properly. it keeps coming up with undefined error. run it for your self and coulp u please tell me how to fix it thanks for your help Attachments:
|
|