CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 11 of 11

Thread: ActiveX dll

  1. #1
    Join Date
    Oct 2001
    Posts
    6

    ActiveX dll

    does anybody have an ActiveX dll for numerical integration? or give me some tips on that. I am trying to develop one but it seems more difficult than I thought.

    Thanks,

    tk


  2. #2
    Join Date
    Jun 2001
    Location
    Sri Lanka
    Posts
    272

    Re: ActiveX dll

    I can give u a hint on developing the Program (It's an easy job to make it an ActiveX Dll or Exe or any thing)
    Note that the answer is an approximate one & not the exact one. To make the accuracy high, the time required will be more

    Trick is to get a data set for the function and use the Trapizoidal rule.
    If u want me to explain I'll do it.

    If u r have a Mathematics background, u know what I Mean??

    R U worried about ActiveX or the way to do the integration programatically?
    Srinika


    If u don't know how to Rate an answer, then Rate my answer to learn, If u know, then practice it

  3. #3
    Join Date
    Oct 2001
    Posts
    6

    Re: ActiveX dll

    I have a background in mathematics. I know how to programmize simpson's rule and trapizodal in matlab. but I don't know in VB. Right now, I am developing a project in VB and I need numerical integrations for that project.

    Please explain to me.

    thanks for your reply.




  4. #4
    Join Date
    Oct 2001
    Posts
    6

    Re: ActiveX dll

    the biggest problem is that the function to be numerically integrated is not known. how can I deal with this problem in VB? for instance, using simpson's rule,

    public function simps(a as single, b as single, n as integer, f() as single) as single
    Like you see, I used a dynimic array for the unknow function. the problem is how to connect the arrary with the unknow function. Do you see my problem?

    Thanks,



  5. #5
    Join Date
    Jun 2001
    Location
    Sri Lanka
    Posts
    272

    Re: ActiveX dll

    Tell Me, out of the following what u need to do
    1. Integrate any function given ? eg. At one time y = Sin(t) another time y = x^3 + 2x + 7 and so on.
    2. Only one complex function eg. y = Sin(7t) + t^8 + Tan(t^4) + 4t^.25
    3. U have a set of data related to the function & u want to integrate those. eg. (y=0,x=11),(y=1,x=14),(y=2,x=15),(y=3,x=6).....
    4. Any other

    If the case is 1., it would be a bit difficult task. 2. & 3. are simple
    Srinika


    If u don't know how to Rate an answer, then Rate my answer to learn, If u know, then practice it

  6. #6
    Join Date
    Oct 2001
    Posts
    6

    Re: ActiveX dll

    sure it is case 1.



  7. #7
    Join Date
    Jun 2001
    Location
    Sri Lanka
    Posts
    272

    Re: ActiveX dll

    Here I can give u the following hints:
    1. In a help file (to be used by any user), the way of defining formula has to be defined. eg. To the Power -- > "^" , Multiply --> "x" ...
    2. The Function has to be given in a text box with appropriate Format in 1.
    3. In a Routine where there is string manipulation to take place all operators & values are to be identified & stored in an array or a stack
    4. Complicated Error Checker has to be written
    5. If syntax is correct, the evaluation routine has to be called
    6. In the evaluation routine, the data in the above 3 . are manipulated

    Also u can have pre-defined buttons to place the necessary mathematical symbol, rather than writing the formula manually. Then the creation of the formula would be taken place more easily. Also identifying the mathematical operations for each number would be easier

    Any way this is not a small task, but a rather complicated one
    Srinika

    If u don't know how to Rate an answer, then Rate my answer to learn, If u know, then practice it

  8. #8
    Join Date
    Oct 2001
    Posts
    6

    Re: ActiveX dll

    could you give me a simple example for that?
    I don't think i understand that.

    thanks,


  9. #9
    Join Date
    Jun 2001
    Location
    Sri Lanka
    Posts
    272

    Re: ActiveX dll

    cosider point by point that I have given.
    Each is having an example.
    Which one u couldn't understand? It is easier to answer in point form
    Srinika


    If u don't know how to Rate an answer, then Rate my answer to learn, If u know, then practice it

  10. #10
    Join Date
    Oct 2001
    Posts
    6

    Re: ActiveX dll

    I don't understand the string manipulation process. I guess u recommend using collection for that. is that right?

    thanks,


  11. #11
    Join Date
    Nov 2001
    Location
    Andhra pradesh
    Posts
    2

    Re: ActiveX dll

    Hi srinika,

    I just want to develop some tiny ActiveX dll code in VB. Can you give me some steps to build Activex Dll and use it. Give any small example.



    santhosh

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured