How can I load a picture and use it in ActiveX in run time ??

I am using an ActiveX object which needs a property "picture" as input.
I can set the picture property in its property page in design time, but I don't know how to give it a "picture" in run time.
In VB, I can do:
dim pic As Picture
pic = loadpicture("c:\test.bmp")
control_1.picture = pic
(("control_1" is the ActiveX object, and picture is the property))
How can I do the same with labview?
Is there any example that sets the picture property of an ActiveX in run time?

sealiker wrote:
I am using an ActiveX object which needs a property "picture" as input. I can set the picture property in its property page in design time, but I don't know how to give it a "picture" in run time. In VB, I can do:   dim pic As Picture pic = loadpicture("c:\test.bmp") control_1.picture = pic (("control_1" is the ActiveX object, and picture is the property))   How can I do the same with labview? Is there any example that sets the picture property of an ActiveX in run time?
As
far as I understand from the MSDN site, it seems that the Picture
datatype is a specific VB only datatype. Most probably it is a handle
(uInt32) value as far as other programs including LabVIEW are
concerned, but there is no way that LabVIEW could deal with this
datatype directly.
If you can convert this datatype with some VB fucntions into a HBITMAP
or HDIB then you could call some Win32 API functions to extract the
relevant bitmap data from this common Win32 datatype and get somewhere
from there. OR it maybe that VB itself has other functions to extract
the bitmap data, color palette and other attributes of the Picture
datatype. Don't expect LabVIEW to be able to deal with the Picture
datatype directly though, this is really a proprietary VB thing.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • HT1386 i have lost my pictures in my I POD while trying to dowen loade song to my I tune could you please let me know how can i get my pictures and songs back to my I.POD

    i was trying to dowen load the song from my I POD to my I tune
    i lost all my songs and pictures i had on my I POD while doing so
    could you please let me know how can i get my pictures and songs back to the I POD?
    many thanks for your help

    - If you backed up the iPod after taking the photos then restoring from backup will recover the photos. To restore from backup see the restoring topic of:
    iOS: How to back up
    If you restore via iTunes make sure that autosyncing is turned off. Go to iTunes>Preferences>Devices and check the box that says prevent iPods...".
    - Otherwise if the photos ore not on the computer or iPod they are gone uless you can get them from your PhotoStream. See that topic of:
    iOS: Importing personal photos and videos from iOS devices to your computer

  • How can I transfer my pictures and videos from Zenfolio?

    How can I transfer my pictures and videos from Zenfolio?

    If you have a copy of the photos that are in zenfolio on your computer, then you can upload them from there to revel. If you do not have other copies, then you will need to download the files from zenfolio to your hard drive and then upload them to revel. There is not  an interface between zenfolio and revel to do this directly.
    Here is information on uploading to revel:
    FAQ: How do I add (upload) files to revel?
    http://forums.adobe.com/thread/1162795?tstart=0
    Pattie

  • I have lock iPhone 5 from Japan, i don't know from which carrier it  is belongs to currently I am in Saudi Araiba, how can i unlock the phone and use here)

    I have lock iPhone 5 from Japan, i don't know from which carrier it  is belongs to. currently I am in Saudi Arabia, how can i unlock the phone and use here)
    <Personal information edited by Host>

    You can't.

  • How can you listen to music and play a game at the same time?

    How can you listen to music and play a game at the same time?
    I am playing music, by starting the Crash Baandicoot Nitro Kart 3D game it shuts off the music playing. Is there a way around this?
    It seems like this should be possible.
    Message was edited by: RuthlessVengeance
    Message was edited by: RuthlessVengeance

    Select the music play list you want to listen to and start it playing. Go back to the home screen and start the app you want to use, music will stop. Press the home button two time quickly and it will bring up a simple control for controling the music. This works for me with all of the apps I have purchased including games. Just a note you can pull up the same music control if the iPod is a sleep and locked by pressing the button three times quickly.
    Mike

  • How can I listen to itunes and play a game at the same time on my ipad 4?

    How can I listen to itunes and play a game at the same time on my ipad 4? This means I need to run 2 apps at the same time itunes and my game.  The game has its own sound control so I can turn off its sound while i listen to itunes tracks.  But I don't know how to set it up so the ipad does both.

    Anytime you open an app that has a persistant sound stream - a movie, a podcast, some games - it will overide the music app's stream. nothiong you can do to change it.

  • I only wanted to restore my settings but i ended up restoring everything (i.e. all data got deleted), how can i get my pictures and books back?

    How can i return my phone back to what it was 10 minutes ago and no i haven't backed up my phone since last year so i do a restore from what i have in my computer, this will only return my phone back to what it was a year ago. please help.

    If you haven't backed the device up in a year, and you did not copy the pictures and other data  off before restoring it, then your stuff is gone.
    It is important that you back up your data, just like with your computer, regular backups are vital for recovering data when things happen.

  • How can I save an "effect" and use it later as a default in my timeline

    I created a splitt screen. Now a want to reuse this effect later in the timeline. How can I save this effect?
    The same goes for titels. I arrange my own titels and want to reuse them later in editing again. So that I Only have to change the words and not all of the arrangement I mad.
    I also miss a featured titel that can stretch across the screen. Most titelsonly offer a limited space for the text.
    Thy
    ANDY

    Good morning Tom,
    re: titels.
    your are right, I can make the titels as big as I want, but not as long as I want.
    Do you have an idea how I can work around this.
    re: effects
    how can a copy the splitt screen effect from the timeline (as a compound clip) to the event browser (I suppose that is the window on the top left with all the event clips)
    PS. sorry I live in AUstria and use the German version.
    Thanks for your help
    ANDY

  • I accidentaly reset my iphone 4s, how can I restore my pictures and contacts?

    i accidentaly resent my Ophone 4s so i wonder how can I get all my contacs and photos back?

    restore it from your last backup?

  • Hey i can connect to the internet and use the wifi but at random times it just disconnects to it leaving me using my data sometimes w/o knowledge cause of watching youtube does anyone else have this issue if or have any recomendations on how to fix it?

    it hasnt happened before the update just would like for it to stop

    HI again Andy,
    The last message had some more stuff in between the "Hello" and "Regards" - I have no idea what happened to it. But nevermind...
    I started up the Mini with the modem in one usb, and the speaker system in the other (M-Audio Sonica Theatre) - I have one of the Minis that have only 2 USB (and one FireWire) ports. The firewire has the external drive connected to it.
    So far, as I"m typing this, I AM able to be online and use iTunes simultaneously. (both SaFari and iTunes respond slower than if I was using only one or the other, but they ARE actually working - in addition to having Adium running) - So I think what you suggested ( that is was something wonky was the USB hub) was a correct, yet assessment.
    Would you have any reccommendations for USB hubs? The only thing that I have connected to the hub under normal circumstances that would be constantly "running" would be the RadioShark (even though the Radio soft isn't playing - the blue light on the RadioShark is always on) - and the speakers naturally. Everything else is of the occassional variety - iPod Sync Cable, Dual Layer External DVD Burner, and a "pass thu" to the USB ports on my Hard Drive Enclosure (which had been unplugged before the problem was noticed). The hub I current use is the
    Kensington DomeHub USB 2.0 (7 ports) Weighted Hub 33118 http://www.amazon.com/Kensington-DomeHub-ports-Weighted-33118/dp/B0002FHENE/ref= sr16/002-4275642-8664817?ie=UTF8&s=electronics&qid=1187848108&sr=8-6
    which (I thought) worked better than the "throwaway" ones I had used previously.
    You think it is the hub or something connected to it that may be causing the problem?
    Regardless, thank you for your time, and I hope to hear from you soon.

  • How can i send multiple videos and photos, via mail, at the same time?

    you allowed to send only one video or 10(+) photos via mail.
    but can you send both at the same time? so 10(+) photos and a video (or more than one) in one mail?
    because if my mom has birthday pictures or something like that. She likes to be able to send it directly from her iphone to every person she knows in just one mail.
    anyone any tips or tricks?

    Those restrictions are generally part of the email provider, not just the phone. Attachments are restricted due to size, bandwith use, etc. Trying to send that much information in an email attachment is even restricted on a computer. Sharing via photo sites is generally a better option for large amounts of pictures and large video files.

  • How can I trap & display HTML syntax errors in mx:HTML at run time?

    I am loading HTML pages into an mx:HTML component in an AIR application. If the HTML contains errors, they show up in the trace window in debug mode.  I'd like to trap that information so I can tell the usere that there are errors (and what they are) in the production version of the application. How can I get at those errors?

    I found it myself how to do it. The error says that it is not able to find the reference object i.e  it is asking us to refer to the table. The following piece of code will solve this problem. Have to implement this in WDDOMODIFYVIEW method of the view. This thing works comrades enjoy...
      DATA : lr_cmp_usage TYPE REF TO if_wd_component_usage,
             lr_if_controller  TYPE REF TO iwci_salv_wd_table,
             lr_cmdl   TYPE REF TO cl_salv_wd_config_table,
             lr_col    TYPE REF TO cl_salv_wd_column.
      DATA : node_year  TYPE REF TO if_wd_context_node,
             elem_year  TYPE REF TO if_wd_context_element,
             stru_year  TYPE if_alv_layout=>element_importing,
             item_year  LIKE stru_year-i_current_year,
             lf_string    TYPE char(x),
      DATA: lr_column TYPE REF TO cl_salv_wd_column.
      DATA: lr_column_header TYPE REF TO cl_salv_wd_column_header.
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    Get the entered value from the input field of the screen
    node_year  = wd_context->get_child_node( name = 'IMPORTING_NODE' ).
    elem_year  = node_year->get_element( ).
      elem_year->get_attribute(
       EXPORTING
        name = 'IMPORT_NODE-PARAMETER'
       IMPORTING
        value = L_IMPORT_PARAM ).
      WRITE L_IMPORT_PARAM TO lf_string.
    Get the reference of the table
      lr_cmp_usage  =  wd_this->wd_cpuse_alv( ).
      IF lr_cmp_usage->has_active_component( ) IS INITIAL.
        lr_cmp_usage->create_component( ).
      ENDIF.
      lr_if_controller  = wd_this->wd_cpifc_alv( ).
      lr_column_settings = lr_if_controller->get_model( ).
    get column by specifying column name.
      IF lr_column_settings IS BOUND.
        lr_column = lr_column_settings->get_column( 'COLUMN_NAME').
    set Header Text as null
        lr_column_header = lr_column->get_header( ).
        lr_column_header->set_text( lf_string ).
    endif.

  • Getting LabVIEW load error code 59 using LabVIEW 2010 with a Run Time Engine.

    I use a vi compiled with a run time engine to run separate vi’s in my application directory. Once a file association is made with this exe file any Vi in my application directory is available to be loaded as needed. This is a process that has been very successful for me over the years and would prefer to continue using this process. Most of my applications are running in LabVIEW 8.6 and have moved them to 2009. First indications are in 2009 this process is still working. However, I plan to go on to 2010 before upgrading my test stations.
    In 2010 I get the error 59: “The source file’s compiled code has been separated, and this version of LabVIEW does not have access to separated compiled code.”
    The same dialog box also presents, (Hex 0x626)  “Cannot open a VI with separated compiled code in a Run Time Engine that has no access to the VIObjCache.”
    What can I do in the build that will get around this error?
    Thank you

    Thank you for the solution. I am sure this works until the next vi in the vi library gets this option selected.
     The bigger issue is I was doing something that National Instruments did not support. When I started in the days of LV 4.0 it was recommended to me that I use this method as virtually all my applications were for in house projects. This is still my preference because it gives the most versatility and allows modifications of single files rather than compiling the entire application.
    The final solution I ended up with for those who may be having the same issues. My recommendation for what it is worth, is to compile the application as an executable. This is from what I can tell the only acceptable and supported method. Using this method the problem is solved.
    I have accepted this as the solution. I still don't like it. I could list the reasons why but it is a mute point.
    Thanks again for taking the time to respond to this issue and offer the solution you found.

  • My iphone 5 was working fine, I went to make a call and black vertical flashing was on my scree, I also cant use my touchscreen. How can I save my pictures and viideo? :( I tried plugging my phone into my laptop, but it says no pictures are found, help

    Help

    Dear brothers
    Thanking you so much to be interested about my answer but what I figured out is as long as you bought your iPhone from gulf or Arabian area it will not has face time application cause I think apple has made special software for Arabian areana to privent facetime according to special request by phone cells companies and one of my friends has told me if you want to make sure that your iPhone not for Arabian areana you should check the model number on your iPhone backside if it ends with 29 it means it's for Arabian countries if other numbers it's gonna be for US. Or Hongkong so it's ok
    That's all I could know if you have another solution just please let me know
    Thanks for all answers

  • How can i get my pictures and music from my ipod to my itunes library after having to get a new computer where none of my file exist

    please help i dont know how to do this and i dont want to loose my pictures or music that is on my ipod and not my computer i had to restore my windows and i lost everything but its still on my ipod touch 8 gb

    It has always been very basic to always maintain a backup copy of your computer.
    Use this to put everything back.
    The music and pic sync is one way - computer to ipod.  The exception is itunes purchases.
    If for some reason you have failed to maintain a backup ( not good) then you can transfer itunes purchases:  Without syncing - File>Transfer Purchases
    If the pics are pics taken with ipod, then you can import them as you would from any digital camera.  otherwise you can e-mail them to yourself.

Maybe you are looking for

  • Different logon pages for same server.

    hi Expert, I have created two different logon pages with different URL's for the same server, now i can use both the pages to logon in to the system. what i need to do now is :- URL "A"  users set ="A" URL "B"  users set ="B" If we have the above two

  • How to Manually Sort Images in Library View

    In lightroom 1 I was able... under some circumstances... to be able to pick and drag images to a new location in the library grid mode. What do I have to do to sort my images by the time they were taken first...then...be able to manually drag some im

  • Display pattern questions

    I would like to be able to set up a display patter that will add some asterisks or some other characters on each side of what ever a user enters in a field in order to flag the text. Is that possible? or is there a better way to do this than using di

  • MWST Condition Type

    Hi All, MWST condition type  is only available in Purchasing pricing procedure MM not in Tax procedure under FI. 1) How can i use this condition type & post value to VST key. 2) should i include MWST in Tax procedure also. Pls advise how to use this

  • Is it possible to keep certain emails together in a folder in mac mail

    is it possible to keep certain emails together in a separate folder in mac mail? I have a variety of e-mails pertaining to a particular subject that I would like to keep together. Thanks in advance