I need help using the "GetCursorPos" function in the user32.dll on a machine running Win98.

I'm able to get the x axis information by setting arg1 to TYPE=Numeric, DATA TYPE=Signed 32-bit Integer, PASS=Pointer to Value. I wired a zero to the input.
When I setup arg2 the same, LabView crashes.???
This is the first time I've attempted to access a dll, and I'm not sure I'm on track with the operation and I appreciate any help with this matter.

Hi,
What you are doing now is:
BOOL GetCursorPos(
LPPOINT lpX // cursor's X
LPPOINT lpY // cursor's Y
This is not correct! The Api pop only one parameter from stack, and returns
to the second. The second parameter should be the return andress (set
automatically), but in your case it's a pointer to lpY! So LV crashes!
This is the prototype of GetCursorPos:
BOOL GetCursorPos(
LPPOINT lpPoint // cursor position
Wire a cluster to the first parameter (set the dll to "adapt to type"). the
cluster should have two U32's in it.
Regards,
Wiebe.
"_K_" wrote in message
news:[email protected]..
> I'm able to get the x axis information by setting arg1 to
> TYPE=Numeric, DATA TYPE=Signed 32-b
it Integer, PASS=Pointer to Value.
> I wired a zero to the input.
> When I setup arg2 the same, LabView crashes.???
> This is the first time I've attempted to access a dll, and I'm not
> sure I'm on track with the operation and I appreciate any help with
> this matter.

Similar Messages

  • Need help using count over function

    I have the following query
    Select student_id, OM, TM, TP, count(rownum) over (order by OM desc) PS from
    (select
    er.student_id, sum(er.obtained_marks) OM, sum(ds.max_marks) TM,
    to_char(sum(er.obtained_marks)/sum(ds.max_marks)*100,'990.00') TP
    from
    tbl_exam_results er, tbl_date_sheet ds
    where
    ds.date_sheet_id = er.date_sheet_id and ds.class_id = 77 and ds.exam_id = 3 and ds.session_id = 1 group by er.student_id
    results in
    <div style="width: 889px"><div class="fielddata"><div>
    <div>STUDENT_ID OM TM TP PS
    1825 291 300 97.00 1
    3717 290 300 96.67 2
    2122 289 300 96.33 3
    3396 287 300 95.67{color:#ff6600} *5 &lt;--*{color}
    4554 287 300 95.67{color:#ff6600} *5 &lt;--*{color}
    1847 281 300 93.67 6
    1789 279 300 93.00 7
    5254 277 300 92.33 8
    1836 258 300 86.00 9
    4867 250 260 96.15 10
    1786 249 300 83.00 11
    4659 245 300 81.67 12
    1835 241 300 80.33 *{color:#ff6600}15 &lt;--{color}*
    1172 241 270 89.26*{color:#ff6600} 15 &lt;--{color}*
    3696 241 300 80.33 *{color:#ff6600}15 &lt;--{color}*
    3865 234 300 78.00 16
    5912 215 300 71.67 17
    5913 204 300 68.00 *{color:#ff6600}19 &lt;--{color}*
    3591 204 300 68.00 *{color:#ff6600}19 &lt;--{color}*
    1830 184 250 73.60 20
    </div>
    </div>
    </div>
    </div>
    <div style="width: 889px"><div class="fielddata"><div>
    But I want as following
    <div>STUDENT_ID OM TM TP PS
    1825 291 300 97.00 1
    3717 290 300 96.67 2
    2122 289 300 96.33 3
    3396 287 300 95.67 *{color:#ff6600}4 &lt;={color}*
    4554 287 300 95.67 *{color:#ff6600}4 &lt;={color}*
    1847 281 300 93.67 {color:#ff6600}5 the following entry{color}
    1789 279 300 93.00 6
    5254 277 300 92.33 7
    1836 258 300 86.00 8
    4867 250 260 96.15 9
    1786 249 300 83.00 10
    4659 245 300 81.67 11
    1835 241 300 80.33 {color:#ff6600}*12 &lt;=*{color}
    1172 241 270 89.26{color:#ff6600} *12 &lt;=*{color}
    3696 241 300 80.33 {color:#ff6600}*12 &lt;=*{color}
    3865 234 300 78.00{color:#ff6600} 13 the following entry{color}
    5912 215 300 71.67 14
    5913 204 300 68.00 *{color:#ff6600}15&lt;={color}*
    3591 204 300 68.00 *{color:#ff6600}15 &lt;={color}*
    1830 184 250 73.60 {color:#ff6600}16{color} {color:#ff6600}the following entry{color}
    </div>
    Thanks in advance for any help
    </div>
    </div>
    </div>
    <div style="width: 889px"></div>
    Edited by: sabir786 on Jan 14, 2009 4:13 AM
    Edited by: sabir786 on Jan 14, 2009 4:17 AM

    Since I do not understand at all what you are trying to do, I cannot correct your query, but I can explain the results.
    The analytic function is doing a running count of the number of records that have been outout so far. With no duplicates, this is somewhat clearer.
    SQL> WITH t AS (SELECT 1 om FROM dual UNION ALL
      2             SELECT 2 FROM dual UNION ALL
      3             SELECT 3 FROM dual UNION ALL
      4             SELECT 4 FROM dual UNION ALL
      5             SELECT 5 FROM dual)
      6  SELECT om, COUNT(rownum) OVER (ORDER BY om) ps
      7  FROM t;
            OM         PS
             1          1
             2          2
             3          3
             4          4
             5          5However, when you have duplicates, both duplicate values get the running count from the last of the duplicates (i.e. the highest running count). Here, I have duplicated 4 and see what I get:
    SQL> WITH t AS (SELECT 1 om FROM dual UNION ALL
      2             SELECT 2 FROM dual UNION ALL
      3             SELECT 3 FROM dual UNION ALL
      4             SELECT 4 FROM dual UNION ALL
      5             SELECT 4 FROM dual UNION ALL
      6             SELECT 5 FROM dual)
      7  SELECT om, COUNT(rownum) OVER (ORDER BY om) ps
      8  FROM t;
            OM         PS
             1          1
             2          2
             3          3
             4          5
             4          5
             5          6The "second" 4 record had a running count of 5 (i.e. it was the fifth record output), so both 4's get the same count. Changing the order by to descending shows the same effect, it just changes the running count:
    SQL> WITH t AS (SELECT 1 om FROM dual UNION ALL
      2             SELECT 2 FROM dual UNION ALL
      3             SELECT 3 FROM dual UNION ALL
      4             SELECT 4 FROM dual UNION ALL
      5             SELECT 4 FROM dual UNION ALL
      6             SELECT 5 FROM dual)
      7  SELECT om, COUNT(rownum) OVER (ORDER BY om DESC) ps
      8  FROM t;
            OM         PS
             5          1
             4          3
             4          3
             3          4
             2          5
             1          6John

  • Need help using basic interger function

    I made a basic program to calculate the arrival of a trail, but the problem
    is that when i get the result of sum6 it comes out as 13.833333333333333.
    I just want to remove all the numbers after 13 for the printout answer?!?!!?!
    I know i have to use the "int" function to do this, but where & what do i put
    in my code to do that?
    thanks!!!!
    // DECLARE VARIABLES/DATA DICTIONARY
    double num1,num2, num3, num4 ; // Given numbers
    double sum1,sum2, sum3, sum4, sum5, sum6, sum7, sum8 ; // Intermediate, sum of num1, num2, and num3
    // READ IN GIVENS
    System.out.println ("Please enter hour value of start time: ");
    num1 = ITI1120.readDouble( );
    System.out.println ("Please enter minute value of start time: ");
    num2 = ITI1120.readDouble( );
    System.out.println ("Please enter the speed of train (in km per hour) : ");
    num3 = ITI1120.readDouble( );
    System.out.println ("Please enter travel distance (in km) : ");
    num4 = ITI1120.readDouble( );
    // BODY OF ALGORITHM
    sum1 = num1 * 60;
    sum2 = sum1 + num2;
    sum3 = num3 / 60;
    sum4 = num4 / sum3;
    sum5 = sum2 + sum4;
    sum6 = sum5 / 60;
    sum7 = sum6 * 60;
    // PRINT OUT RESULTS
    System.out.println("The hour value of the arrival time is: " + sum6);

    Which is easier to debug, your code with the generic variable names or this code:
        System.out.println ("Please enter hour value of start time: ");
        startHour = ITI1120.readDouble( );
        System.out.println ("Please enter minute value of start time: ");
        startMinutes = ITI1120.readDouble( );
        System.out.println ("Please enter the speed of train (in km per hour) : ");
        velocityKmPerHr = ITI1120.readDouble( );
        System.out.println ("Please enter travel distance (in km) : ");
        travelKm = ITI1120.readDouble( );
        startMinutesFromHours = startHour * MINUTES_PER_HOUR;
        totalMinutes = startMinutesFromHours + startMinutes;
        velocityKmPerMin = velocityKmPerHr / MINUTES_PER_HOUR;
        travelTimeMinutes = travelKm / velocityKmPerMin;
        arrivalTimeTotalMinutes = totalMinutes + travelTimeMinutes;
        arrivalTimeHours = (int)(arrivalTimeTotalMinutes / MINUTES_PER_HOUR);
        noIdeaWhyYoureCalculatingThis = arrivalTimeHours * MINUTES_PER_HOUR;?

  • Need help using split, how to get the number of inputs?

    I am trying to write a program in which a user inputs several numbers, then the output is how many numbers were input. I am thinking that the best way to do this is to use split, however I am pretty new and can't get it quite down. Thanks

    Sorry, I guess I didnt explain it correctly. The input would be something like this-
    90 87 76 23 99
    Here is what I have-
    import java.util.*;
    public class Scores {
      public static void main(String args[]) {
              int score;
              System.out.println("Input UNC Basketball scores, each separated by a space.");
              Scanner keyboard = new Scanner(System.in);
       int count = args[0].trim().split(?\\s?).length;
    }The int count line was given to me by someone, however I dont know how to get there. Thanks

  • Does anyone have an example VI about how to call the animatewindow function in the user32.dll using CLN in Labview?

      I want to call the WinAPI function-animatewindow in user32.dll to produce some special effect when showing or hidding windows, but i don't know how to using this Win API to achieve my purpose?
      Does anyone have an example VI about this application?
      Thanks in advance for your help.

    You have to use the Call Library Function Node to call Windows API functions. The animatewindow function itself has some pretty simple parameters. You first need to get the window handle. There are a set of Windows API Function Utilities (32-bit) for LabVIEW that you can use. In there there is a VI (Get Window Refnum) that gets the window handle. It's a simple call to a Windows API function. You would call the animatewindow function in the same way. In this case there are 3 parameters: the window handle (returned by a FindWindow API call), a DWORD (32-bit integer) for the duration, and another DWORD for the flags.

  • I don't know how to use the canlendars function and the notes are kind of messy code,anyone help me

    i don't know how to use the canlendars function and the notes are kind of messy code,anyone help me

    Step by step:
    1. On your main vi Front Panel, create your boolean indicator.
    2. On the block diagram, right click the new boolean indicator and select Create - Reference.
    3. On sub-vi front panel, create boolean indicator (or use one that is already created).
    4. On sub-vi front panel, create a reference (Controls Palette - Refnum - Control Refnum).
    5. Right click on the newly created Refnum and select Select Vi Server Class - Generic - GObject - Control - Boolean. The refnum label changes to BoolRefnum.
    6. On sub-vi block diagram, create Property Node (Functions - Application Control - Property Node). Find the BoolRefnum and move it close to the new Property Node.
    7. Wire the BoolRefnum to the reference input of the property node.
    8.
    Right click on the property node and select Change to All Write.
    9. Move mouse to point to Visible inside property node box, left click and select Value.
    10. Wire the boolean indicator from step 3 to the Value input of the property node.
    11. On sub-vi front panel, right click on icon and select Show Connector.
    12. Click on empty connector spot then click on the new BoolRefnum. Save your sub-vi.
    13. On main vi block diagram, connect refernece created in step 2 to the new connector terminal of sub-vi.
    14. Save and run.
    Here are the modified vi's.
    - tbob
    Inventor of the WORM Global
    Attachments:
    Pass_a_Reference.vi ‏20 KB
    GL_Flicker_mod.vi ‏83 KB

  • Im having massive issues with my email... I cant receive emails for my work email... was working perfectly and now just wont connect, i assume that I need to use my home wifi as the outgoing server?? Please help :)

    Im having massive issues with my email... I cant receive emails for my work email... was working perfectly and now just wont connect, i assume that I need to use my home wifi as the outgoing server?? Please help

    For your work email, do you use a well known server or do you use their own server? Their server IMAP and SMTP addresses might of changed or you entered them in wrong. It might be something with your router but unless you blocked every incoming connection, then it should work. I would talk to your tech guys at work to see if it is on their end.
    Hope this helped a bit, Sean

  • HT5622 i need help using the icloud it is not making any since to me can some one call me and help me with it please don't try to help me through email i need to talk and listen i don't understand instruction by reading

    i need help using the icloud it is not making any since to me can some one call me and help me with it please don't try to help me through email i need to talk and listen i don't understand instruction by reading.
    <Phone Number Edited by Host>

    You aren't addressing anyone from Apple here.  This is a user forum.
    You might want to call a neaby Apple store to see if they have a free class you could attend.

  • Need help using dbms_scheduler to submit an immediate job on the database

    Hi. I need help using dbms_scheduler to submit an immediate job on the database. Essentially I want to issue a one-time call to an Oracle Stored Procedure - this procedure will then send an email. I've never used dbms_scheduler before, but here's what I have so far.
    So my Program is a stored database procedure named 'TTMS.dropperVacationConflict_Notify', but my problem is that I need to pass 3 parameter values to this job each time I run it. This is what I can't figure out. The procedure expects an 'Id' as number(5), begin_dt as a date, and end_dt as a date.
    How do I pass these values when I run my job? Can anyone help?
    begin
        dbms_scheduler.create_program(program_name=> 'PROG_DROPVACCONFLICTS_NOTIFY',
         program_type=> 'STORED_PROCEDURE',
         program_action=> 'TTMS.dropperVacationConflict_Notify',
         number_of_arguments => 3,
         enabled=>true,
         comments=> 'Procedure to notify PCM of a Dropper Vacation Conflict. Pass in Dropper Id, Begin_dt, and End_dt');
    end;
    begin
        dbms_scheduler.create_schedule
        (schedule_name=> 'INTERVAL_EVERY5_MINUTES',
         start_date=> trunc(sysdate)+18/24,
         repeat_interval => 'freq=MINUTELY;interval=5',
         end_date => null
         comments=> 'Runtime: Every day all 5 minutes, forever'
    end;
    begin
        dbms_scheduler.create_job
        (job_name => 'JOB_DROPVACCONFLICTS_NOTIFY',
         program_name => 'PROG_DROPVACCONFLICTS_NOTIFY',
         schedule_name => 'INTERVAL_EVERY5_MINUTES',
         enabled => true,
         auto_drop => true,
         comments => 'Job to notify PCM of Dropper Vacation Conflicts'
    end;
    /And I use this to execute the job as needed...
    begin
        dbms_scheduler.run_job('JOB_DROPVACCONFLICTS_NOTIFY',true);
    end;
    /

    Duplicate Post
    Need help using dbms_scheduler to submit an immediate job on the database

  • I need helping using iAds in my application.

    I need helping using iAds in my application. I currently am not using any storyboards. I am using Sprite builder for my UI.
    I attatched an image ot show all the different file name I have.
    Everyone is being used & they all work fully.
    The "iAdViewController.h & .m" files are just example codes I looked up and was messing with so that my iAd can work.

    I wouldn't even be able to use the Mathscript node in an executable? 
    What I am trying to do is make a user configurable data stream. 
    They tell me how many bytes are in the stream and what parameters they
    want to be put in to it.  Currently I have to make vi's that are
    called dynamicaly to make the parameters.   Then recompile
    the code and send it to them.  This is somewhat of how the config
    file is set up so I know how to make the data.
    Data_Type  foo
    Bytes 30
    parameter_name        
    function           
       byte#          format
    sync              
    foo_sync            
    29               int
    time                              
    foo_time             
    1,2,3,4       double
    If I can't use MathScript to allow the user to make there own functions
    is there another way that I might be able to do this so I do not have
    to recompile the code atleast?  Were I might just be able to make
    the new function and send that to them.
    Any Idea would be great.

  • My Illustrator freezes when trying to use the reflect function of the transform tool.

    My Illustrator CC freezes when I try to use the reflect function of the transform tool.  I am on MAC OS 10.9.5.  I have restarted several times, trashed the preferences, moved the applications folder etc.  I am currently working on projects where I need this function, help please!!!

    Transform panel? Transform effect?
    Please show the artwork?

  • Need help with user defined function

    Hello SDN,
    I need some help with a user-defined function. My source message contains multiple
    generic records (1000 char string), and my target message is 1 header record,
    then multiple generic records.  See description of source and target messages below:
    Source:
      GenericRecordTable 1..unbounded
        Row (1000 char string)
    Target:
      Field1 (char5)
      Field2 (char5)
      Field3 (char5)
      IT_Data
        GenericRecordTable 1..unbounded
          Row (1000 char string)
    Basically, what I need to do in my user defined funtion is to map the first record
    in my source record to the 3 header fields, then map all of the rest of the records
    (starting from line 2) into the GenericRecordTable.
    Can someone please help me with the code for the user defined function(s) for this
    mapping?
    Thank you.

    hi,
    Activities
    1. To create a new user-defined function, in the data-flow editor, choose Create New Function (This
    graphic is explained in the accompanying text), which is located on the lower left-hand side of the
    screen. In the menu, choose Simple Function or Advanced Function.
    2. In the window that appears, specify the attributes of the new function:
    Name
    Technical name of the function. The name is displayed in the function chooser and on the data-flow
    object.
    Description
    Description of how the function is used.
    Cache
    Function type (see above)
    Argument Count
    In this table, you specify the number of input values the function can process, and name them. All
    functions are of type String.
    3. In the window that appears, you can create Java source code:
    a. You can import Java packages to your methods from the Imports input field, by specifying them
    separated by a comma or semi-colon:
    You do not need to import the packages java.lang., java.util., java.io., and java.lang.reflect. since
    all message mappings require these packages and therefore import them. You should be able to
    access standard JDK and J2EE packages of the SAP Web Application Server by simply specifying the
    package under Import. In other words, you do not have to import it as an archive into the Integration
    Repository. You can also access classes of the SAP XML Toolkit, the SAP Java Connector, and the
    SAP Logging Service (see also: Runtime Environment (Java-Mappings)).
    In addition to the standard packages, you can also specify Java packages that you have imported as
    archives and that are located in the same, or in an underlying software component version as the
    message mapping.
    b. Create your Java source text in the editor window or copy source text from another editor.
    4. Confirm with Save and Close.
    5. User-defined functions are limited to the message mapping in which you created the function. To
    save the new function, save the message mapping.
    6. To test the function, use the test environment.
    The new function is now visible in the User-Defined function category. When you select this category,
    a corresponding button is displayed in the function chooser pushbutton bar. To edit, delete, or add the
    function to the data-flow editor, choose the arrow next to the button and select from the list box
    displayed.
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/718e40496f6f1de10000000a1550b0/content.htm
    http://java.sun.com/j2se/1.5.0/docs/api/
    /people/krishna.moorthyp/blog/2006/07/29/documentation-html-editor-in-xi
    /people/sap.user72/blog/2006/02/06/xi-mapping-tool-exports
    http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
    UDF -
    http://help.sap.com/saphelp_nw04/helpdata/en/22/e127f28b572243b4324879c6bf05a0/content.htm
    Regards

  • Is there a way to use the 'search' function outside the search menu

    Is it possible, to activate the 'search function' outside the 'search menu' on the iPod classic ? With 30000 songs and more on an iPod, it would be great, if I could use this option i.e. in cover flow, display songs, or display albums. This way, I won't get any blisters on my fingers, from scrolling from "A hard day's night" to "You can't do that".
    Thanks for your help !

    A couple of suggestions:
    1. If you just have a few items you don't want included when you shuffle then find them in your library or playlist, pull up the info on the song/book/etc (File menu, Get info option), go to the "Options" tab and click the box that says "Skip when shuffling"
    2. If there are a lot of items, then you may want to create a smart playlist (File menu, New Smart Playlist option) and set it up so that it excludes all the items you don't want. Then you can play that playlist on shuffle.
    Hope that helps!
    MacBook 2.0 GHz white   Mac OS X (10.4.7)   30GB 5G iPod (with video)

  • Re: Beginner needs help using a array of class objects, and quick

    Dear Cynthiaw,
    I just read your Beginner needs help using a array of class objects, and quick of Dec 7, 2006 9:25 PM . I really like your nice example.
    I also want to put a question on the forum and display the source code of my classe in a pretty way as you did : with colors, indentation, ... But how ? In html, I assume. How did you generate the html code of your three classes ? By help of your IDE ? NetBeans ? References ?
    I already posted my question with six source code classes ... in text mode --> Awful : See "Polymorphism did you say ?"
    Is there a way to discard and replace a post (with html source code) in the Sun forum ?
    Thanks for your help.
    Chavada

    chavada wrote:
    Dear Cynthiaw,
    I just read your Beginner needs help using a array of class objects, and quick of Dec 7, 2006 9:25 PM . I really like your nice example.You think she's still around almost a year later?
    I also want to put a question on the forum and display the source code of my classe in a pretty way as you did : with colors, indentation, ... But how ?Just use [code] and [/code] around it, or use the CODE button
    [code]
    public class Foo() {
      * This is the bar method
      public void bar() {
        // do stuff
    }[/code]

  • New airport user need help setting up a pc on the network

    went and bought a airport extream today and my mac works fine on it but i also have a pc and need help getting it to work with the airport express. it seems to see the airport in the network slection screen but after i put in the pass i get nothing and it returns to the "chose a wireless network" can anyone help?

    Thanks for the reply.
    That's interesting, I guess I had assumed that would be a basic thing.
    Right now the 4000 number is in port 1, and then 4244 is in port 2. So if no one else is on the phone, and my  boss picks up his phone, dials 9 then XXX-XXXX, he will be routed outbound on the 4000 line on port 1. Then while he's talking, if I pick up the phone and dial 9 then XXX-XXXX, I will be routed out on the 4244 line on port 2.
    Am I understanding that correctly?
    If that is the case, then that is a bit frustrating. Our 4000 line has everything on it, call waiting, caller id, long distance, etc. But the 4244 line is just a basic service. So if I'm calling local or toll free, I don't want to tie the other line up in case someone else needs to make a long distance call to a client. Is there any work around to that at all? Is there any way to use steering digits to point the call to the right line? Would we have to put the PSTN lines on seperate SPA400's?
    Again, any comments and suggestions are much appreciated!
    Message Edited by VoIP_Me on 07-30-2008 06:27 AM
    Message Edited by VoIP_Me on 07-30-2008 06:28 AM

Maybe you are looking for