Need help trying to create a ActiveX registered event

I am trying to create a register event for an ActiveX component. The problem I am having is creating the callback vi. When I right click on the VI ref and create the callback vi it is created with the user parameter as a variant. I would like this to be a control refnum. If I open the callback vi and replace the user parameter variant with a control refnum the wire from the callback vi to the VI ref is broken. How do I change the user parameter?

Joe is correct on this one. The callback where designed to take variants as their inputs, so that they are more flexible. In addition Variants are used through out ActiveX programming.
If you have a control reference that you want to pass into the VI, all you need to use is the "To Variant" function in the main VI to turn the reference into a variant. You can then inside the Callback VI you can use the Variant to Data VI to change the variant back to a reference; you simply where a constant of the reference type to the "Type" terminal.
Evan
National Instruments

Similar Messages

  • I am trying to create a checkbook register from the numbers temple, the instruction says to click on register then click choose; where is choose?

    Where is the choose button when trying to create a checkbook register using the numbers templete?

    I assume you are talking about Numbers.  If you launch you are presented with template chooser. Highlight your template and in the lower right hand corner-->Choose.
    If you are past this point or closed the window you can use the command-shift-N  to open the Template chooser.

  • HT5622 I need help trying to figure out why I'm not able to purchase anythi iTunes. I changed my password, that didn't help. I changed my payment type, that didn't help. It initially started when my password got disabled. Any advice?

    I need help trying to figure out why I'm not able to purchase anything on iTunes. I changed my password, that didn't help. I changed my payment type, that didn't help. It initially started when my password got disabled. Any advice?

    I need help trying to figure out why I'm not able to purchase anything on iTunes. I changed my password, that didn't help. I changed my payment type, that didn't help. It initially started when my password got disabled. Any advice?

  • Need help trying to use close button and i really like to know why it off

    need help trying to use close button and i really like to know why it off

    And in English? You need to explain better.
    Mylenium

  • This is detailed: I lost my touch pad scroll ability on my desktop when I installed Firefox, I am having a terrible time trying to sync my new Android tablet to my desktop, my desktop Firefox is acting very strangly (I need help trying to use it)

    My Vista Home Premium desktop has not used Firefox for a long time. I just loaded it as well as on my Honeycomb Android. The statement that I made pretty much says what my problem is. I can use both of them at the same time and use a router with the air Verizon card installed.
    I'll repeat my question: This is detailed: I lost my touch pad scroll ability on my desktop when I installed Firefox, I am having a terrible time trying to sync my new Android tablet to my desktop, my desktop Firefox is acting very strangely (I need help trying to use it)

    My Vista Home Premium desktop has not used Firefox for a long time. I just loaded it as well as on my Honeycomb Android. The statement that I made pretty much says what my problem is. I can use both of them at the same time and use a router with the air Verizon card installed.
    I'll repeat my question: This is detailed: I lost my touch pad scroll ability on my desktop when I installed Firefox, I am having a terrible time trying to sync my new Android tablet to my desktop, my desktop Firefox is acting very strangely (I need help trying to use it)

  • I need help trying to activate my new phone online where do i go??

    i need help trying to activate my new phone online where do i go??

    Log in to your MyVerizon (verizonwireless.com) and on the Overview page scroll down to I WANT TO... in the third column of boxes, under DEVICE, the 3rd one down is "Activate or Switch Device".  Click on that and follow the instructions.  If there is an issue, it will instruct you to call customer service or you will be connected to customer service automatically.  Let us know if this works...

  • I need help trying to access my spotlight messages.

    I need help trying to access my spotlight messages.  I type in the persons name and only one text comes up but when I type in words in the text other ones come up.  So what I need to do is get all those text messages if its possible.

    I know the texts are there, but like I said it depends on the spotlight search but I want them all in one.

  • Need help trying to transfer my information from one iphone to another

    need help trying to transfer my information from one iphone to another

    If you are restoring from an icloud backup you are going to have to erase a content and setting and while in the setup prompts you will get the option to restore from an icloud back...that's the only time you will get the option to restore from an icloud back and that's during setup

  • [Locked] Really need help trying to log users

    I really need help trying to show when members have logged in.  This is my second post and and the code that I was given, didn't work and now I can't get anyone to tell me what is wrong with it.  Here is the code and error message:
    Error message is "Unknown column 'billsmith' in 'where clause'
    Here is the code I am using:
    mysql_select_db($database_connRegister, $connRegister);
    $logged_in_user = "-1";
    if(isset($_SESSION['MM_Username'])) {
    $logged_in_user=$_SESSION['MM_Username'];
    $query_online_now = "UPDATE users SET logged_in='Online', last_login_date=NOW() WHERE user_name=$logged_in_user";
    $online_now = mysql_query($query_online_now, $connRegister) or die(mysql_error()); }
    $query_not_online_now="UPDATE users SET logged_in='Offline' WHERE last_login_date<NOW() - INTERVAL 60 MINUTE";
    $not_online_now=mysql_query($query_not_online_now, $connRegister) or die(mysql_error());
    Can someone please tell me why it isn't working?

    This question has been answered here: http://forums.adobe.com/message/2351465#2351465.
    Locking this thread to avoid duplication. Please reply in the original thread if any further help is needed.

  • Good evening. needed help. I created an account on my ipad on itunes. then wanted to add a credit card the Mbnet. the problem is that an error appears saying "payment method rejected

    I
    good evening. needed help. I created an account on my ipad on itunes. then wanted to add a credit card the Mbnet. the problem is that an error appears saying "payment method rejected"Can help me?

    iTunes Store: Accepted forms of payment
    Mbnet (virtual) is not acceptable form of payment.

  • (Need Help) How to create Numeric text box in SVG

    Hello everyone,
    Can any one help me to create Numeric TextField in SVG? I'm struggling to do this please someone help me as soon as possible....
    Thanks In advance,
    Ulaga

    To get the best answers, I think you probably need to break down your post into several different one with a separate question in each, along with the business problem you are trying to solve... but here's a few pointers for you to research...
    Textbox - there's plenty of info in SDN on creating a custom control with a textbox e.g. Re: Text Editor on modulepool Screen and sample code in SAP too.
    Attachments - If this is for an email, then GUI_UPLOAD might help and the BCS class is the newer way to send messages... check out Re: Offline Approval: RBBP_NOTIFICATION_OFFAPP Vs RSWUWFMLEC for example... if this is an attachment for an SAP object such as an FI Document or Purchase Order, then the Generic Object Services (GOS) could be what you want e.g. https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0e6b0d95-0a01-0010-4696-ca0a48de5fb3
    Jonathan

  • I need help trying to get my email address

    I need my email address to my skype name brittany.cifers1. I havent logged in a long time so i dont remember any of it 

    Hi, Brittany_Cifers, and welcome to the Community,
    We here in the Community do not have access to Skype account records; only Skype Customer Service does.  Therefore, if you cannot access your account to re-set your password and change your registered e-mail address, as strange as it may seem, you will need to create a new account in order to contact them. 
    Skype offers help and support through ... :
    Email and Live chat (for eligible customers)
    To get help with the issue you’re experiencing:
    Go to the Support request page.
    Select the topic you need help with and the problem you’re experiencing. Some information that might help with your problem is displayed.
    If you still feel that the information doesn’t help, click the Continue support request button at the bottom of the screen.
    Select your contact method. We recommend that you check our Support Network first.
    If you chose email, enter your details, describe your problem, and then click Send support request. We'll get back to you as soon as we can.
    We don’t currently provide telephone support.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Help trying to create multiple rectangles

    Hi, I'm trying to create a five-in-a-row game, and I need lots of rectangles, forming a kind of a net. I've figured out a bit, but the thing is that every new rectangle seems to erase all the former ones, so in the end there's just the last one. I use this code:
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class luffare extends JApplet {
    ruta rutor[] = new ruta[400];
    public void init() {
    for(int a=0;a<20;a++){
    for(int b=0;b<20;b++){
         rutor[a*20+b] = new ruta(a*10, b*10);
         //rutor[a*20+b].setBackground(Color.white);
    getContentPane().add(rutor[a*20+b]);
    class ruta extends JPanel implements MouseListener, MouseMotionListener{
    Rectangle rect;
    public ruta(int xPos, int yPos){
    rect = new Rectangle(xPos, yPos, 10, 10);
    addMouseMotionListener(this);
    addMouseListener(this);
    public void paintComponent(Graphics g){
    Graphics2D g2 = (Graphics2D)g;
    g2.draw(rect);
    public void mouseReleased(MouseEvent e){}
    public void mousePressed(MouseEvent e){}
    public void mouseDragged(MouseEvent e){}
    public void mouseMoved(MouseEvent e){}
    public void mouseClicked(MouseEvent e){}
    public void mouseExited(MouseEvent e){}
    public void mouseEntered(MouseEvent e){}
    I'm really stuck here, can anybody help?
    regards,
    M?ns Wide

    Hey, I'm no Swing expert, actually I'm very much a beginner in Swing! I suggest you go through the Swing tutorials
    {color:#0000ff}http://java.sun.com/docs/books/tutorial/uiswing/index.html{color}
    and learn about the multitude of features that can be useful to you.
    After that, if you have any problems related to Swing, please post in the Swing forum where you will get advice from real experts.
    This works, using setBounds(...) with null Layout --I've added the position number to each Ruta (size increased to 20 X 20 for that) so you can see where they go.
    file Luffare.javapackage manswide;
    import java.awt.*;
    import javax.swing.*;
    public class Luffare extends JApplet
        Ruta rutor[] = new Ruta[400];
        public void init ()
            setLayout (null);
            for(int a = 0; a < 20; a++)
                for(int b = 0; b < 20; b++)
                    rutor[a * 20 + b] = new Ruta (a * 20 + b);
                    getContentPane ().add (rutor[a * 20 + b]);
                    rutor[a * 20 + b].setBounds (a * 20, b * 20, 20, 20);
    }file Ruta.javapackage manswide;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    class Ruta extends JPanel implements MouseListener, MouseMotionListener
        Rectangle rect;
        int id;
        public Ruta (int newId)
            id = newId;
            setBorder (LineBorder.createBlackLineBorder ());
            addMouseMotionListener (this);
            addMouseListener (this);
        public void paintComponent (Graphics g)
            Graphics2D g2 = (Graphics2D)g;
            g2.setFont (new Font("Arial", 1, 9));
            g2.drawString (Integer.toString (id), 2, 10);
        public void mouseReleased (MouseEvent e) {}
        public void mousePressed (MouseEvent e) {}
        public void mouseDragged (MouseEvent e) {}
        public void mouseMoved (MouseEvent e) {}
        public void mouseClicked (MouseEvent e) {}
        public void mouseExited (MouseEvent e) {}
        public void mouseEntered (MouseEvent e) {}
    }It's good practise to place each java class in its own file.
    db
    -- To post code, use the code button or type the code tags -- [code]CODE[/code] is displayed as CODE

  • NEED HELP!! creating a method to search records from a data.dat file

    i am having a lot of trouble trying to create a method for searching records from a data.dat file as a contacts application i am using (for) and (if) together and getting the same error messages saying a ")" is needed when it doesn't and illegal start of expression can anyone help! on letting me know how you create search methods! thanks

    public static void search_records()
              System.out.println("Please Enter a Surname (* for all):");
              user_surname = data_input.next();
              System.out.println("Please Enter a firstname (* for all):");
              user_firstname = data_input.next();
              for (int i = 0; i < number_of_records; i++)
                   if(user_surname.compareTo(lastName) || user_surname.compareTo(*));
                             if(user_firstname.compareTo(firstName[i]) || user_firstname.compareTo(*));
                                  system.out.print("Result:",number_of_records);

  • Help trying to create a button in safari please.

    trying to create a button that runs an applescript. I have been discussing it in 101 but cross posting it here because it's not getting much interest over there.
    Any help would be nice. I have read Become an xCoder and it doesn't seem to answer my questions.
    http://discussions.apple.com/thread.jspa?threadID=1514799&tstart=0

    Is there no way to create an appcontroller that works like an applescript? Or get an applescript to be recognized so a new NSButton added to the Bookmark bar be activated?
    i.e.
    *tell application "System Events"*
    * tell application "Safari" to activate*
    * keystroke "n" using {command down}*
    * delay 0.1*
    * keystroke "l" using {command down, shift down}*
    *end tell*
    Or,
    _Something Like:_
    / AppController /
    *#import <Cocoa/Cocoa.h>*
    *@interface AppController : NSObject*
    *IBOutlet id NSButton;*
    *-(IBAction) autoFill:,delay 0.1,checkSpelling:(id)sender*
    @end
    I really don't know if that AppController looks anything like it should or if it's even close.

Maybe you are looking for

  • Plays on TV, but not on iMac

    I imported an iMovie to iDVD and burned a DVD on my iMac. The DVD plays on a standard DVD player for my television, but it does not play on my iMac. Each time I insert the DVD into my computer, it is rejected. What did I do wrong? I know the movie bu

  • Premier pro trial version download

    I had downloaded the premier pro trial version 10 days back, and unfortunately deleted it from apps while cleaning my laptop. The creative cloud is not letting me install it again, is there anyway I could sort this issue and download the premier pro

  • Where is the setting of iFrame?

    Hi,experts. I've never heard iFrame but I have to do the setting of iFrame(iframe connection definition). If anyone know where the setting is, could you tell me it? And could you tell me what's iFrame?(now I'm using this function in ITS) Best Regards

  • Material unit of measure

    Hiiiiiiiiiiiiiiii Experts, I have a problem.When I am attaching material to an activity , it is taking base unit of measure which has been defined in material master as default.In case of stock item  as item category it allows me to change the unit.B

  • Grids on top of a drawing?

    Hi everyone, I have a bit of a problem, I am new to Adobe Illustrator, but i have worked with Photoshop for ages. I want to try making little characters and logos in Ai, that i have drawn in hand. I'm beginning to understand the program, but i don't