Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

dll?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • dll?

    Hi all,

    Will any version of alpha call a dll? i am not finding this answer.
    Dave Mason
    [email protected]
    Skype is dave.mason46

  • #2
    Re: dll?

    Dave,

    Are you referring to maybe an API call which uses methods in which to use Windows dlls? The code archive has a few references mostly made by Marcel K. I have done a very tiny bit with it but again mostly with Marcel's help....and he may very well be gone now unless the runtime pricing changes :( . There was a thread with some API references also. IF this is indeed even what you are referring to.
    Mike
    __________________________________________
    It is only when we forget all our learning that we begin to know.
    It's not what you look at that matters, it's what you see.
    Henry David Thoreau
    __________________________________________



    Comment


    • #3
      Re: dll?

      mike,

      Kinda and I guess it might work, but I was not thinking of an indirect way, but a way to directly call a dll that has functions like:

      xzy = call."curdrive+"\"+curdir+"\"+puur.dll" -raster(132,368,y)

      Raster being a function embedded in the purr.dll

      Make sense? No, this probably would not be the right syntax, but an example.

      Another way would be to include a dll at start of alphaDB and all the functions in the dll would show up like the aex files do now.
      Dave Mason
      [email protected]
      Skype is dave.mason46

      Comment


      • #4
        Re: dll?

        I sorta thought it went beyond what has been discussed on the messageboard....but I think Marcel would be the one who could more definitively let you know what can and cannot be done and has a seemingly good background in VB so you would have common ground there as well...he is the only one so far I have seen that will spend the time to convert existing VB API calls into xBasic. And he has a few times stated that it is never for the faint of heart as can take a bit of time even for him.
        Mike
        __________________________________________
        It is only when we forget all our learning that we begin to know.
        It's not what you look at that matters, it's what you see.
        Henry David Thoreau
        __________________________________________



        Comment


        • #5
          Re: dll?

          In clipper, we just included the function and dll name and when it was compiled, it all went together in the exe as an ovl file.

          VB(my memory slips sometimes) I THINK we had to include the dll as a file and call the dll at runtime.

          Most just call the runtime at runtime.
          Dave Mason
          [email protected]
          Skype is dave.mason46

          Comment


          • #6
            Re: dll?

            http://msgboard.alphasoftware.com/al...ad.php?t=64478

            Marcell has posted a simple script that can burn cd's using a dll. Take a look at it for some ideas on dll usage.
            Andrew

            Comment


            • #7
              Re: dll?

              that could get me on the right path.

              Thanks
              Dave Mason
              [email protected]
              Skype is dave.mason46

              Comment


              • #8
                Re: dll?

                Dave,

                What do you need? Can you show me the dll and function you want to use and the parameters? Does it looks like this?

                Code:
                'Xbasic
                declare hid HidD_FreePreparsedData LL
                 
                'VBA
                'Public Declare Function HidD_FreePreparsedData _
                '    Lib "hid.dll" _
                '    (ByRef PreparsedData As Long) _
                'As Long
                Link1

                Link2
                Marcel

                I hear and I forget. I see and I remember. I do and I understand.
                ---- Confusius ----

                Comment


                • #9
                  Re: dll?

                  Marcell,

                  Thank you. There is no exact one right now, but I have a dll on the way made in c that I would need to use some functions in. It is a win 32 function and doesn't use anything strange.

                  You just pass it a string with numbers and characters and it returns a number.

                  It works kind of like: pymtonapr(bal as n, term as n, apr as n, dtf as c) would work in alpha.

                  I think You gave me the answers in your post. Too bad we can't directly call dll's, but I guess we can't compile either. Oh well.
                  Dave Mason
                  [email protected]
                  Skype is dave.mason46

                  Comment


                  • #10
                    Re: dll?

                    Hi Dave,

                    Originally posted by DaveM View Post
                    Too bad we can't directly call dll's
                    Sure we can, unless your definition of calling a DLL is different than mine.

                    It just requires that you specify the correct declare statement (and possibly declarestruct) in XBasic. As long as you don't use variant parameters and a few other types, it works with most DLL's, particularly if you are generating the DLL and have control of the parameter types.
                    Regards,

                    Ira J. Perlow
                    Computer Systems Design


                    CSDA A5 Products
                    New - Free CSDA DiagInfo - v1.39, 30 Apr 2013
                    CSDA Barcode Functions

                    CSDA Code Utility
                    CSDA Screen Capture


                    Comment


                    • #11
                      Re: dll?

                      Hi Dave,

                      Ira is right.

                      Code:
                      declare hid HidD_FreePreparsedData LL
                      Is a declaration to hid.dll and an extrernal function in that dll with name HidD_FreePreparsedData and one parameter (second L). The functions returns (first L) a L (long 32 bit number).

                      You use it as:

                      Code:
                      dim T as N
                      dim P as N
                      T = HidD_FreePreparsedData(P)


                      Just an example.
                      Marcel

                      I hear and I forget. I see and I remember. I do and I understand.
                      ---- Confusius ----

                      Comment


                      • #12
                        Re: dll?

                        Thank both of you guys.
                        Dave Mason
                        [email protected]
                        Skype is dave.mason46

                        Comment

                        Working...
                        X