Has anyone used Config_DAQ_Event_Message using Visual Basic?

I am not using ComponentWorks, just Visual Basic 6.0 on Windows NT with DAQ dll function calls. My hardware is an PCI-6534. The function Config_DAQ_Event_Message has as its last parameter a callback function address. I prefaced the function name with AddresOf. I can't get the code to call the specified function? I don't know the format of the callback function...parameters, returned value, etc. Does anyone have an example?

I've had the same problem for a 6527 device.
The solution is not available anymore on this forum but I've still have the example.
The problem is that VB doesn't use the same adressing than C++.
But you can use WM_MOUSEMOVE command for "message", EventSinkForm.hWnd for "handle" and 0 for "callback address", if you use the example joined.
It works.
Attachments:
6527example.zip ‏3 KB

Similar Messages

  • Can anyone help i want to call java class using visual basic

    I want to call java class using visual basic and send some arguments to the main class

    Hi,
    I don't know VB, but you can surely launch a command line like :
    javaw.exe mypackage.MyMainClass myArgument1
    Regards

  • Has anyone used JAAS with WebLogic?

    Has anyone used JAAS with Weblogic? I was looking at their example, and I have a bunch of questions about it. Here goes:
    Basically the problem is this: the plug-in LoginModule model of JAAS used in WebLogic (with EJB Servers) seems to allow clients to falsely authenticate.
    Let me give you a little background on what brought me to this. You can find the WebLogic JAAS example (to which I refer below) in the pdf: http://e-docs.bea.com/wls/docs61/pdf/security.pdf . (I believe you want pages 64-74) WebLogic, I believe goes about this all wrong. They allow the client to use their own LoginModules, as well as CallBackHandlers. This is dangerous, as it allows them to get a reference (in the module) to the LoginContext's Subject and authenticate themselves (i.e. associate a Principal with the subject). As we know from JAAS, the way AccessController checks permissions is by looking at the Principal in the Subject and seeing if that Principal is granted the permission in the "policy" file (or by checking with the Policy class). What it does NOT do, is see if that Subject
    has the right to hold that Principal. Rather, it assumes the Subject is authenticated.
    So a user who is allowed to use their own Module (as WebLogic's example shows) could do something like:
    //THEIR LOGIN MODULE (SOME CODE CUT-OUT FOR BREVITY)
    public class BasicModule implements LoginModule
    private NameCallback strName;
    private PasswordCallback strPass;
    private CallbackHandler myCB;
    private Subject subj;
             //INITIALIZE THIS MODULE
               public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options)
                      try
                           //SET SUBJECT
                             subj = subject;  //NOTE: THIS GIVES YOU REFERENCE
    TO LOGIN CONTEXT'S SUBJECT
                                                     // AND ALLOWS YOU TO PASS
    IT BACK TO THE LOGIN CONTEXT
                           //SET CALLBACKHANDLERS
                             strName = new NameCallback("Your Name: ");
                             strPass = new PasswordCallback("Password:", false);
                             Callback[] cb = { strName, strPass };
                           //HANDLE THE CALLBACKS
                             callbackHandler.handle(cb);
                      } catch (Exception e) { System.out.println(e); }
         //LOG THE USER IN
           public boolean login() throws LoginException
              //TEST TO SEE IF SUBJECT HOLDS ANYTHING YET
              System.out.println( "PRIOR TO AUTHENTICATION, SUBJECT HOLDS: " +
    subj.getPrincipals().size() + " Principals");
              //SUBJECT AUTHENTICATED - BECAUSE SUBJECT NOW HOLDS THE PRINCIPAL
               MyPrincipal m = new MyPrincipal("Admin");
               subj.getPrincipals().add(m);
               return true;
             public boolean commit() throws LoginException
                   return true;
        }(Sorry for all that code)
    I tested the above code, and it fully associates the Subject (and its principal) with the LoginContext. So my question is, where in the process (and code) can we put the LoginContext and Modules so that a client cannot
    do this? With the above example, there is no Security. (a call to: myLoginContext.getSubject().doAs(...) will work)
    I think the key here is to understand JAAS's plug-in security model to mean:
    (Below are my words)
    The point of JAAS is to allow an application to use different ways of authenticating without changing the application's code, but NOT to allow the user to authenticate however they want.
    In WebLogic's example, they unfortunately seem to have used the latter understanding, i.e. "allow the user to authenticate however they want."
    That, as I think I've shown, is not security. So how do we solve this? We need to put JAAS on the server side (with no direct JAAS client-side), and that includes the LoginModules as well as LoginContext. So for an EJB Server this means that the same internal permission
    checking code can be used regardless of whether a client connects through
    RMI/RMI-IIOP/JEREMIE (etc). It does NOT mean that the client gets to choose
    how they authenticate (except by choosing YOUR set ways).
    Before we even deal with a serialized subject, we need to see how JAAS can
    even be used on the back-end of an RMI (RMI-IIOP/JEREMIE) application.
    I think what needs to be done, is the client needs to have the stubs for our
    LoginModule, LoginContext, CallBackHandler, CallBacks. Then they can put
    their info into those, and everything is handled server-side. So they may
    not even need to send a Subject across anyways (but they may want to as
    well).
    Please let me know if anyone sees this problem too, or if I am just completely
    off track with this one. I think figuring out how to do JAAS as though
    everything were local, and then putting RMI (or whatever) on top is the
    first thing to tackle.

    Send this to:
    newsgroups.bea.com / security-group.

  • Has anyone used FCE with a Sony hd-fx7 camcorder

    As above, has anyone used FCE with a Sony hd-fx7 camcorder. I have recently got one of these at work and am currently using imovie for basic edits, but would like to step up to FCE, has anyone any experience using the two.
    THanks

    Hi, have MacBookPro 2,16 GHz and Sony HDR-FX7 and FCE 3.5 (German PAL)
    - works good and fast
    - But better don't try to use an external monitor on DVI connection
    my system slows down if srubbing time line
    - couldn't find out yet why

  • How do I open a pdf stored in a Microsoft Access database using Visual Basic studios 2012

    Currently I am unable to find a valid method of being able to open a pdf stored in a Microsoft Access database using Visual Basic studios 2012. I've tried displaying the entire database on a form, but when I do this all the other columns show up with
    the correct data besides the one containing the pdf's, it just displays <binary data> in each row down the column. I also tried another method with which you use the database as a dataset and can drag and drop the rows and columns into the form, which
    again works for all the other columns besides the one containing the pdf's but this time I'm unable to interact with the column  at all. 
    Not too sure if this is in the correct place, but any answers or help would be appreciated. Cheers.

    Alex,
    This forum is dedicated to Project and Project Server. You might get better response, if you post to a Visual Basic forum. Here are couple I could find. 
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral%2Cvblanguage&filter=alltypes&sort=lastpostdesc
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • Has anyone used a Dell 1908FPb with a MacBook Pro OSX 10.6.8?  What do I need to get/do?  thanks

    Has anyone used a Dell 1908FPb with a MacBook Pro OSX 10.6.8?  What do I need to get/do?  thanks

    Hi 4judy,
    If you are looking to use an external display with your MacBook Pro, you may find the following articles helpful:
    Apple Mini DisplayPort adapters: Frequently asked questions (FAQ)
    http://support.apple.com/kb/ht3382
    OS X: How to use multiple displays with your Mac in Mountain Lion and earlier
    http://support.apple.com/kb/ht5019
    Regards,
    - Brenden

  • Has anyone used reMIDI as a plug-in for GarageBand. I downloaded a trial version of reMIDI, which enables MIDI instruments to be strummed or arpegiated, but can't get it to work in Garageband.  How do I set it up?

    Has anyone used reMIDI as a plug-in for Garageband ('08)? The program allows MIDI instruments to be strummed or arpegiated. I have a trial version, but can't get it to work in Garageband. Wonder how to set it up.
    Thanks, Doctor Mark

    Port Forwarding.....or Port Mapping....as Apple calls it is a difficult and complex configuration method for most users. Because there are so many variables involved in this type of setup, it is not possible to provide a step by step guide that will work for everyone with all devices.
    It is possible that a setup guide exists for the the WD drive and AirPort Extreme, but you will have to go looking for it on the Internet. Even if you find one, it may not be tailored to your specific situation or needs.
    Sometimes, you can do everything right....at least according to someone's article or "how to" guide, and things still will not work correctly.
    In situations like this, when you really don't know what to do, you need to enlist the aid of an IT pro, who will know what to do based on your particular products and unique circumstances. Sometimes....they won't be able to get things working either due to particular circumstances.
    But, before you do this, I would strongly recommend that you use a Static IP address for your Internet connection with your ISP. If you do not have this now, contact them to ask them if they offer this type of connection. Expect to pay more for this type of service, of course.

  • Can I use Visual Basic to covert form user data from multiple .pdf files to a single .csv file?

    Can I use Visual Basic to covert form user data from multiple .pdf files to a single .csv file?  If so, how?

    You can automate Acrobat using IAC (InterApplication Communications), as documented in the Acrobat SDK. Your program could loop through a collection of PDFs, load them in Acrobat, extract the form data from each, and generate a CSV file that contains the data.
    Acrobat can also do this with its "Merge Data Files into Spreadsheet" function, but this is a manual process.

  • Has anyone used Aperture 2.0 with 8800GT?

    Has anyone used Aperture 2.0 with the new 8800GT? I'm about to order a new Mac Pro and wonder if Aperture will get a speed boost with the 8800GT over the HD 2600XT. I've read many times that Aperture is very GPU dependent, but then I've also read, on Barefeats.com for example, that the graphics card really doesn't do that much of a difference after all.
    For me, on my dual 2.0 G5 with 4.5GB and a X800XT, what's been most annoying with Aperture 1.5 has been the slow load times for raw images (15-20MB). But now with the quick preview mode in Aperture 2.0, that really isn't an issue any more.
    Is the 8800GT worth waiting for, or should I just get the Mac Pro now with the HD 2600XT?

    Hi Don
    I'm using Aperture 2.0 with the 8800GT. My system is the new MacPro 8 core 2.8GH with 10GB RAM. I'm shooting Nikon D3 lossless compressed RAW files. Approximately 12-14MB each.
    I do not need to use the quick preview mode. Images open instantaneously,either fit to screen or 100%. All the image adjustments are shown with no time lag. My D2X uncompressed raw files,19MB, display in approximately one second with quick preview turned off.
    I'm no MAC hardware expert so I don't know how much the speed is the result of the 8800GT but I'm just one happy camper.
    Hope this helps
    John Blake

  • Has anyone used the QuickUSB module (Bitswise Systems) to interface to a USB Camera via IMAQ for USB?

    Has anyone used the QuickUSB module made by Bitwise Systems with LabVIEW for image acquisition.   I have a USB camera and I'm trying to use the IMAQ for USB controls to no avail.   Any input is appreciated. 

    Are you using the NI-IMAQ for USB functions or are you calling the QuickUSB libraries from LabVIEW?  Unless the USB camera is DirectShow compliant, then it will not work with the NI-IMAQ for USB driver.  You can use the Code Interface Node in LabVIEW to call external dll's, and it looks like from QuickUSB's website that is the best way to go.  Hope this helps.
    Jason N 

  • Has anyone used Thunderbolt or USB 3.0?

    In the not too distant future I am intending to upgrade from my 2008 24"  2.8GHz iMac.
    The new models appear to have gone down the Thunderbolt route which appears to be not very popular with HDs being few and far between and very expensive.
    USB 3.0 whilst theoretically only half the speed seems to be taking off and reasonably cheap, and appears to be more universally adopted.
    Could Apple have backed the wrong horse on this occasion?
    Sorry, I was just thinking aloud, definitely not speculating.
    So has anyone used Thunderbolt and got anything good or bad to say about it?

    Not personally:
    The german computer-magazine c't tested the Promise Pegasus R6 Thunderbolt and found it speedwise way ahead of USB 3.0 and eSATA.
    As a RAID-Level 0 with 6 x Hitachi HDS721010CLA332 (7.200 U/min, 1TB each) and MBP 13" 2011 OSX 10.6.8:
    Write - 693 MByte/s
    Read - 721 MByte/s
    Read AND Write - 323 MByte/s
    Time Machine -capable and OS X Bootable.
    0.8 Sone when active
    61.6 W active - 48 W when not used.
    Sadly the article is not avaibale other than Printed.
    Stefan

  • Has anyone used Fat Cat Software to merge multiple iPhoto Libraries?

    Has anyone used Fat Cat Software to merge multiple iPhoto Libraries?

    I used it several years ago to merge libraries without problem. I cannot speak to the current version. It goes without saying that you need to have a very good backup before you use that sort of software (if you do).
    Barry

  • Has anyone used Migration Assistant to move services from one system running Server to a new system?

    So, I've purchased a Mac mini to replace my aging Mid 2009 mini on which I've been running Mavericks Server.  In trying to answer the question of how best to move services from the old machine to the new, I've stumbled into the fact that Migration Assistant can apparently migrate not just user data for workstations and laptops, but also service data for servers.  The problem is there isn't much detail in the docs about how good a job it does when going from one machine to another without changing OS releases.  There's a very detailed document in the KB about going from older versions of Server to new (OS X Server: Upgrade and migration from Lion Server or Snow Leopard Server) and a general doc on migrating from another Mac under Mavericks (OS X: How to migrate data from another Mac using Mavericks) but that has no details about Server.
    Has anyone used Migration Assistant to move services from one system running Server to a new system?  Are there any details that are particularly important to get right?  Are there things that require manual steps after Migration Assistant is done?
    There are other ways I could tackle the problem, of course.  I could simply swap drives between the systems, but the new system has two drives that are bigger, faster, and I intend to mirror them.  That would complicate such an approach.  I'd really like to keep the conversation constrained to a discussion of Migration Assistant as the primary method.

    yes. I migrated a server frm lion to mavericks following these notes a while back:
    OS X Server: Upgrade and migration from Mountain Lion
    i do not recall having any problems with it.

  • I just saw a message that iWeb has been discontinued by Apple.  It suggested EverWeb.  Has anyone used this or do you have aother recommendation?

    I just saw a message that iWeb has been discontinued by Apple.  It suggested changing to EverWeb.  Has anyone used this or do you have another recommendation?

    Hi
    I have now used Everweb to transfer a website from iWeb &amp; am now working on transferring a second website.
    I cannot recommend Everweb highly enough. I am an amateur, so iWeb was the easy option for me. Everweb is just as easy to use and very similar to iWeb. New features are being added every few days.
    I am extremely impressed by the excellent and prompt service from both the forum and support. All my questions have been answered (&amp; there have been many of them!)
    Everweb is complimented by an excellent site Everweb codebox which has developed more widgets and codes to add to Everweb. Roddy from Everweb codebox has been invaluable by answering questions on the forum &amp; generally complimenting the Everweb team.
    I have purchased the Everweb program &amp; Hosting. This gives my 1 click updating and works seamlessly. The price is competitive and the support exemplary.
    All in all, I am delighted with Everweb, excellent program &amp; excellent support!! I would not hesitate in recommending it to anyone.
    In answer to your question...buy it!!!!
    Lynn

  • Has anyone used "Microsoft.BizTalk.B2B.PartnerManagement" API ?

    Hello, forum; trying to make sense of that undocumented API library to create an agreement using BizTalk 2010. So far, I can create a Partner, Business Profiles, Business Identities and Partnerships, but how to create an agreement (onewayagreements and all
    that) still eludes me. I have checked one reference, it was written by Mick Breeze (http://blogs.breeze.net/mickb/2012/05/22/BizTalk2010CreatingTPMPartnersThroughCode.aspx),
    and also getting inspired by the newest published in here (http://msdn.microsoft.com/en-us/library/windowsazure/dn232396.aspx) which is not the same but at least it's something.
    I have navigated through the classes but I can't manage to do all the tasks that it is suppose to achieve.
    Has anyone used this before that may be able to help ? Is there any SDK sample of some sort ?
    Thanks in advance.

    Partner automation. The user wants to use an asp.net form instead of using biztalk admin console, in order to create and update a large party database, the total count rounding between 300 to 500 partners, so, we have already a webform with all business
    related information and we've add some port related information that will ultimately end up as the party information. With that info, this library should be able to accomplish everything we normally do from the console.
    We are not migrating from a previous version, so the party migration tools is a no-go. We explored the idea of creating a binding-like file that would be loaded from BtsTask, but ultimately, we end up with the idea of using this obscure library to perform
    all those so called duties of handling party related information on biztalk server.
    Thanks in advance.

  • Has anyone used the appscript modual for python rather than streight AS?

    I just discovered appscript and so far I like what I see. has anyone used it?
    Does it just wrap around actual applescript commands which it then sends to osascript with a system call or does it use the message system directly? Is there anything that it has not yet implemented that might cause problems?
    To me it seems to be a perfect solution to the clutter that AS seems to be... at least from someone coming from more traditional languages.

    In startMovie, you need to register the xtra
    on startMovie
    axRegister(serial code here)
    end
    Then, on your Record Button, something like this:
    on mouseUp me
    --start recording session - using 400k as maximum here
    errOpen=axOpenRecorder(400000)
    --see if there is an error
    put errOpen
    --save the new audio as a file
    errRecord=axRecordSoundToFile("soundName","c:\path\to\soundfile.wav")
    --see if there is an error
    put errRecord
    end
    then make sure you close the recorder in stopMovie
    on stopMovie
    axCloseRecorder()
    end
    You can also make a Stop Recording button that has code like
    this:
    on mouseUp me
    errStop=axStopRecording()
    put errStop
    end

Maybe you are looking for

  • How to install weblogic and froms compiler in redhat 6

    Dear gurus, I have oracle db Version 11.2.0.1 on redhat 6 and i develop forms/reports (Forms [32 Bit] Version 11.1.1.2.0 (Production)) in windows, all the operations are working fine till I access the form through Internet explorer. Now I want to shi

  • WLS 6.1 SP4: bug in ExecuteThread's contextClassLoader behavior?

    Platform: WebLogic Server 6.1 SP4, JDK 1.3.1_06, Windows When creating a new thread from a serlvet with a current thread of type "weblogic.kernel.ExecuteThread", the contextClassLoader of the new thread is set incorrectly. The contextClassLoader of t

  • Change message in web application designer

    as I can change to the message of data "nonavailable" by any other message when executing the Query and it does not find data suitable

  • PJC and JavaBean Demos from other source

    Hi , Is there any PJC demos on web that can be reference apart from technet?

  • Airport Extreme Don't work with windows

    I have an airport extreme, it connects and give internet to my 2 macbooks fine. But when i get onto a windows computer (laptop) it connects to the extreme but don't have internet. As i have changed my o.s. to Ubuntu 10.10 it still connects to the ext