img_lib_attach(): how questions?

I am very confused on how to load it.

I understand the code of documentation:

img_lib_t ilib = NULL;
int rc;
rc = img_lib_attach(&ilib);

How do I join img_codec_png.so so it gives me an undefined reference error.  I'm a little confused on what the documentation says about the config file in reference to this function.

I'm trying to insert in the main function of a file of learning that I worked on. If I solve this problem, I think it will help me with img_load_file() error im receiving.  The labour code is below which will give you a black parent window and includes a child window to it.  The child is not defined or pushed on the screen again. (Excuse the fi business funtions, trying to practice practical intelligent coding.)

#include 
#include 
#include 
#include 

screen_context_t    homeContext = 0;
screen_window_t     homeWindow = 0;//parent window
static const char   *homeGroup = "Home Windows";
screen_buffer_t     homeBuffer;
int hformat_w   = SCREEN_FORMAT_RGBA8888;
int husage_w    = SCREEN_USAGE_NATIVE;
int hvis        = 0;
int hcolor      = 0xff000000;
int hshap[4]    = {0, 0, 1, 1};
int hdims[2]    = {0, 0};
int hcount = 0;     

screen_window_t     hcscreen_w = 0;//child window

int main()
{
    if(screen_create_context(&homeContext, SCREEN_APPLICATION_CONTEXT) != 0)
    {
        return EXIT_FAILURE;
    }

    if(screen_create_window(&homeWindow, homeContext) != 0)
    {
        screen_destroy_context(homeContext);
        return EXIT_FAILURE;
    }

    if(screen_create_window_group(homeWindow, homeGroup) != 0)
    {
        return EXIT_FAILURE;
    }

    if(screen_set_window_property_iv(homeWindow, SCREEN_PROPERTY_FORMAT, &hformat_w) != 0)
    {
        return EXIT_FAILURE;
    }

    if(screen_set_window_property_iv(homeWindow, SCREEN_PROPERTY_USAGE, &husage_w) != 0)
    {
        return EXIT_FAILURE;
    }

    if(screen_set_window_property_iv(homeWindow, SCREEN_PROPERTY_VISIBLE, &hvis) != 0)
    {
        return EXIT_FAILURE;
    }

    if(screen_set_window_property_iv(homeWindow, SCREEN_PROPERTY_BUFFER_SIZE, hshap+2) != 0)
    {
        return EXIT_FAILURE;
    }

    screen_get_context_property_iv(homeContext, SCREEN_PROPERTY_DISPLAY_COUNT, &hcount);

    screen_display_t *hdisps = calloc(hcount, sizeof(screen_display_t));
    screen_get_context_property_pv(homeContext, SCREEN_PROPERTY_DISPLAYS, (void **)hdisps);

    screen_display_t hdisp = hdisps[0];
    free(hdisps);

    screen_get_display_property_iv(hdisp, SCREEN_PROPERTY_SIZE, hdims);

    if(screen_set_window_property_iv(homeWindow, SCREEN_PROPERTY_COLOR, &hcolor) != 0)
    {
        return EXIT_FAILURE;
    }

    if(screen_set_window_property_iv(homeWindow, SCREEN_PROPERTY_SOURCE_SIZE, hdims) != 0)
    {
        return EXIT_FAILURE;
    }
    int hpos[2] = { -hdims[0], -hdims[1] };
    screen_set_window_property_iv(homeWindow, SCREEN_PROPERTY_SOURCE_POSITION, hpos);

    if(screen_create_window_buffers(homeWindow, 1) != 0)
    {
        return EXIT_FAILURE;
    }

    screen_get_window_property_pv(homeWindow, SCREEN_PROPERTY_RENDER_BUFFERS, (void **)&homeBuffer);
    screen_post_window(homeWindow, homeBuffer, 1, hshap, 0);

    if(screen_create_context(&homeContext, SCREEN_APPLICATION_CONTEXT) != 0)
    {
        return EXIT_FAILURE;
    }

    if(screen_create_window_type(&hcscreen_w, homeContext, SCREEN_CHILD_WINDOW) != 0)
    {
        screen_destroy_context(homeContext);
        return EXIT_FAILURE;
    }

    if(screen_join_window_group(hcscreen_w, homeGroup))
    {
        return EXIT_FAILURE;
    }

    if(screen_destroy_window(homeWindow) != 0)
    {
        return EXIT_FAILURE;
    }

    if(screen_destroy_context(homeContext) != 0)
    {
        return EXIT_FAILURE;
    }

return 0;
}

You must link against libimg.  Add "img" to your list of libraries.

Tags: BlackBerry Developers

Similar Questions

  • How question scan to MS Word or?

    Good first day and all.

    Is it possible to put an icon on MS Word that will allow me to scan directly to Word?

    If not then how do I do this?

    Have HP 5610 all in one.

    Thank you

    Warren @.

    [Redacted for privacy]

    Hello

    I don't think that the printer has this facility. You will need to scan from Word, but only of Word 2003. For Word 2007, 2010 and 2013 the process san to something first.

    Kind regards.

  • How question list of access room.

    Hello

    What I try to do is:

    (1) Authenticate and connect to the account

    (2) the list of the room (as applicable)

    (3) validate if a certain margin exists against the room list

    So I connect successfully, but the list of the room is always null.

    I checked the documentation, it seems to be straight forward, but I can't get it to work.

    Someone at - it an example of code for this?

    Here is my code:

    public void authenticateSuccess(event:AccountManagerEvent):void
    {
    trace ("ROOM:" + event.list);
    try {}
    {if (IsMaster)}
    acctMgr.createRoom (roomName);
    }
    else {}
    return;
    }
    } catch (error) {}
    e.message = "the room that you are trying to create already exists!"
    throw e;
    }
    }

    Thanks in advance.

    Artour.

    LordAlex Works Inc.

    That doesn't really meet Nigel question (you do this in the Flex client? You can't unless you are the owner of the developer account).

    In addition, it is faster for you to call createRoom and capture/ignore the error instead of check if the room is first (it's always 1 server call vs potentially two calls to the server if the room does not exist)

  • How Question: want to use ADMN > > common > > country like ExtAtt LookUp

    On PLM4P v6116.

    We need to have an attribute extended around rummage sale and country of origin.  We want to use the Common > > list of countries as a search rather than create new lists.  We are unable to locate the list in the user interface.  Is it possible to do... for an environmental assessment to consume the country list table.  And further, after we enter the scripts to translate the country names in Chinese, we want the EAs to be aware of language.

    Is there any method to accomplish what we are trying to try?

    Thank you.  Best, Beckie

    You can run some scripts sql on your database to verify your data?

    1. Check if InternalLookupCategory is included in LookupCategories. Make sure that the value returned by the sql below contains "InternalLookupCategory", the default value is like ' ItemDO = CommonLookup, filter = class = "CustomLookupCategory" or class = "InternalLookupCategory", ItemPropertyList = pkid | Name | Category... ".

      • Select ConfigValues in commonLookupServiceManagers where ManagerID = "LookupCategories."
    2. Check if countries in the category is included in InteralLookupCategory. If no records are returned by following sql running, you need to add a.
      • Select * from commonLookups where category = 'InternalLookupCategory' and name = 'country '.

  • [How Question] 1440 p to 1080 p

    Hey gang!

    I've been test resolution of 1920 x 1440 on my GoPro Hero 3 Black, but have not been able to find a way to resize it to 1080 p.

    I was under the impression that since 'bigger' video 1440 p, I gives me the freedom to cut as much as I want to disable the top or the bottom do 1080 p. Is it not true? Isn't this possible?

    Anyone has any advice for me? Thank you!

    Deselect "scale to the size of the image?

  • Data Modeler how Question

    I'm curious to know is it possible to have the DDL file editor to generate the table/view/etc. SQL in fashion Long name: relational model name: table-name. The reason for this is when we give our SQL DBA, it is easier to run all the user creates and table creates sysdba user. It would be ncie maker data could do this without having to change the SQL code and adds the name of the relational model SQL.

    Published by: user1577386 on August 11, 2009 07:09

    Hello

    I'm not sure that understand the reason. But you can set the user in the physical model and can simply change the name before substitution of name during the generation or the generation of DDL DDL allows to change the user name.

    Philippe

  • Where and how do I ask questions about Email?

    The Commission opening thingy is complicated, I have trouble finding my way around it.  I don't know where or how questions about email.  Is there an easier way than trawling through all these icons?  Like a list or something - as you get on all other forums on the internet?

    It would be a good starting point: Mac mini

    Or the appropriate under MAC Os and system software section.

    You might also find this useful: find answers and new questions

  • How can I block a VPN user ' ing in while AD is used for authentication

    We currently use Active Directory to authenticate via IPsec VPN.

    Employee was let go... then his account AD has been disabled

    However, there an other AD username and password which cannot be disabled because it

    is used under other services

    Our entire society is in a group policy

    My is.how question I would block her access to the network. ?

    No, you will not have to configure a new group strategy. Everything you have to do is to create a create a saying political dap that if a user comes with this attribute radius or ldap (username in your case) apply to a certain policy (complete) for her. Rest all users, since they do not match this criterion, they'll hit the dap default policy which you alow them normally without applying any policy for them.

  • How to align form fields in 4.2.6

    Hello

    I use apex 4.2.6.  Wanted to know how to align the fields according to my condition.  For example, 3 fields through and again a few 4 fields in the row.  I use 'Checkerboard'-> 'New Start line' attributes.  But this seems a little dirty.  Is there another way?

    I created an example on oracle for the EMP table.  If someone can clarify.

    (workspace: test_ws_anand user: anandgp password: cable123)

    img 2.png

    Thank you

    -Anand

    anand_gp wrote:

    I use apex 4.2.6.  Wanted to know how to align the fields according to my condition.  For example, 3 fields through and again a few 4 fields in the row.  I use 'Checkerboard'-> 'New Start line' attributes.  But this seems a little dirty.  Is there another way?

    I created an example on oracle for the EMP table.  If someone can clarify.

    (workspace: test_ws_anand user: anandgp password: cable123)

    Your layout grid settings were:

    Sequence Name of the element New line New field
    10 P4_EMPNO Yes Yes
    20 P4_ENAME NO. NO.
    30 P4_JOB NO. NO.
    40 P4_MGR NO. NO.
    50 P4_HIREDATE Yes Yes
    60 P4_SAL NO. NO.
    70 P4_COMM NO. NO.
    80 P4_DEPTNO NO. NO.

    This means that all elements on each line were placed in the same cell in the grid as the first:

    I created a copy of the application and changed the settings of the grid so that each element is in a cell of the grid:

    Sequence Name of the element New line New field
    10 P4_EMPNO Yes Yes
    20 P4_ENAME NO. Yes
    30 P4_JOB NO. Yes
    40 P4_MGR NO. Yes
    50 P4_HIREDATE Yes Yes
    60 P4_SAL NO. Yes
    70 P4_COMM NO. Yes
    80 P4_DEPTNO NO. Yes

    What gives the layout desired by 3 points in the first row and 4 in the second:

    You should consult the documentation on how question attributes affect layout. Note that the best way to control the layout is to change the properties of the layout of all the elements at the same time using the change all button on the page view component. The option Show Grid in the developer toolbar is also useful in showing the layout of the items in the grid.

  • Second vSwitch on the only host of 5.1 ESXi

    For some reason any crazy it is escaping me.  My apologies in advance.

    I have a single host 5.1 in a laboratory. Not connected to a vcenter.  Is it possible to create a second vSwitch?  The reasons aka 'WHY' is not serious in this case, it can be done and how questions.

    I can't find a way to do it.

    Thank you

    You can create as many vSwitches as you want (the maximum supported). The host selected in the inventory, click 'Configuration'-> 'Networking'-> 'add network... '. ».

    André

  • ask user is connected

    Hello
    I am new to the development OFA and EBS.
    I need charly apps db if the user is logged on or not?
    Can someone help how question us her?

    Hello

    Under queries can help you find no.. users connected to the EBS application
    -to see the number of sessions user;

    Select the number of user sessions: ' | Count (distinct session_id) How_many_user_sessionora0121s
    of icx icx_sessions
    where disabled_flag! = « Y »
    and PSEUDO_FLAG = n
    and (last_connect + decode (FND_PROFILE. VALUE ('ICX_SESSION_TIMEOUT'),
    NULL, limit_time, 0, limit_time, FND_PROFILE. VALUE('ICX_SESSION_TIMEOUT')/60) / 24) > sysdate
    and the meter<>

    / * currently users of connection * /.
    SELECT distinct icx.session_id, icx.user_id, fu.user_name, fu.description
    Of icx, fnd_user fu icx_sessions
    WHERE disabled_flag! = « Y »
    AND icx.pseudo_flag = n
    AND (last_connect + DECODE (fnd_profile. VALUE ("ICX_SESSION_TIMEOUT"),
    NULL, limit_time, 0, limit_time, fnd_profile. VALUE ("ICX_SESSION_TIMEOUT") / 60) / 24
    ) > SYSDATE
    AND icx.counter<>
    AND icx.user_id = fu.user_id
    order by 4;

    Thank you
    Nitin

  • Option group a radio for all lines

    Hello developers,
    I then how questioning:
    On a presentation of tabular, to have a radio with a single option validation of Y for all lines.
    similar with option simple checkbox for all lines, but a single row it will be checked and others will be automatically disabled.
    If you know of similar examples, I'd appreciate if you let me know.
    Thank you.

    Hello

    Take a look on: Re: creating a Yes/No radiogroup... If selected then YES, another STEP in the table

    It's: http://apex.oracle.com/pls/apex/f?p=55041:18

    It is a normal report, but you may be able to adapt to it.

    Andy

  • Record type.  Display the entire register with DBMS_output.putline

    Hello. I have the following code, I've played with to better understand the Collections. I have a 'how' question. Is there a way to dbms_output.putline a complete file or I have to name each column as I began to do in the code below?

    If there is no single statement to display a record, is it a good way to dynamically loop through the registration and use of dbms_output.putline for each output column without having to name each column explicitly?

    Thanks much for any help.
    DECLARE
    pc_info_rec performance_clusters%rowtype;
    
    CURSOR C1 IS 
         SELECT * 
         INTO pc_info_rec
         FROM performance_clusters 
         WHERE rownum < 11; 
    
    BEGIN
         OPEN C1;
         LOOP
         FETCH C1 INTO pc_info_rec;
         EXIT WHEN C1%NOTFOUND;
    
                    -- Currently have to name each column in the record, but would prefer a simpler way to output the entire record
              DBMS_OUTPUT.PUT_LINE (pc_info_rec.pc_code||', '||pc_info_rec.zip3);
    
    
         END LOOP;
         CLOSE C1;
    END; 
    /

    You can not 'loop' in the columns folder. You must list the columns individually. As I already mentioned, if you need display case in many places, you can create a procedure (you don't need a package as I suggested earlier):

    SQL> create or replace
      2    procedure print_dept_rec(
      3                             p_rec dept%rowtype
      4                            )
      5      is
      6      begin
      7          dbms_output.put_line(p_rec.deptno || ', ' || p_rec.dname || ', ' || p_rec.loc);
      8  end;
      9  /
    
    Procedure created.
    
    SQL> set serveroutput on
    SQL> DECLARE
      2      v_rec dept%rowtype;
      3      CURSOR C1 IS SELECT  *
      4              FROM  dept;
      5  BEGIN
      6      OPEN C1;
      7      LOOP
      8        FETCH C1 INTO v_rec;
      9        EXIT WHEN C1%NOTFOUND;
     10        print_dept_rec(v_rec);
     11      END LOOP;
     12      CLOSE C1;
     13  END;
     14  /
    10, ACCOUNTING, NEW YORK
    20, RESEARCH, DALLAS
    30, SALES, CHICAGO
    40, OPERATIONS, BOSTON
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    

    Obviously, you will need to create a procedure for each record type.

    SY.

  • Great list of 'How To' Questions

    I am a newbie to iTunes learn the tricks of the trade, and I learned a lot of ed2345, who led me to still more questions:

    1. a few songs that I managed to acquire have nothing in the kind column. So that this information will be available on the impressions of my playlists, is there a way I can key this information in me?

    2. I was unhappy to see small numbers began to appear to the left of the names of my songs, and I'm sure that must have been added when I said to organize my library. Is there a way I can get rid of them now?

    3 re the small icons 'cloud' next to my name of the song: one with the line through it saying "duplicate". If I delete one of them, I will always have it on my PC? (This whole business of some things being only in iCloud I do not understand yet.)

    4. a few other icons 'cloud' have an exclamation in them, which means that it is not able to be downloaded to iCloud due to an error. In all cases, there are an extra copy of the file in my library. Is this the reason why it didn't download?

    5. I'm fighting a lot to try to understand how certain things can be on iCloud and others do not. I mainly paid my $25 to Match service so I could keep transfer my playlists (and songs) to other computers on my LAN House (at this point, I don't have an iPad, iPhone or etc..). Now, I noticed that in the preferences that I can share my share my library on my network, which is an Ethernet wired with 4 PC and a Mac. If I check that box library share will I still game?

    6. on the other hand, if I want to share a playlist with a friend who has iTunes, I would want to use game for this?

    7. Finally, I know especially with PCs; I just bought the Mac this month. I find it there any equivalent to the files of Microsoft Explorer, except on an external hard drive, I connected to it. Specifically, I can't find the directory structure accessed by iTunes - a feature that could be very useful for me, for example in the collection in a single folder the files of one kind or a particular type (for example MP3). We're not supposed to do that?

    I hope that the answers to these questions will be useful to others, too.

    Thank you.

    1. You can use Get Info and enter the relevant information yourself. Select the album or the titles you want to edit and press CMD + I (Mac) or Ctrl + I (Windows).
    2. You see these numbers in a separate column in iTunes or in the name column, or in the Finder? ITunes is generally tracks numbers which are useful for playback of tracks in an album in the correct order. In some cases where the unmarked files are imported into iTunes, for example those in .wav format, numbers in the file name will become the name of the track in iTunes and other properties such as artist or album will be missing.
    3. See on iCloud library icons and status - Apple Support. If your support is not entirely possible that different versions of the same track are treated as duplicates so that they should not be. If you have duplicates real then they should be cleaned.
    4. Once again see on iCloud library icons and status - Apple Support. This indicates an error with a load of attempt.
    5. iTunes game is a great service if you want to replace any old purchases DRM with DRM 256 k new releases, like on the continuous access go to the entire library of your iOS devices or keep libraries iTunes on two remote sites in sync without manually copying files to and from portable hard drives. If the goal is simply to move a library from one computer to another, it's usually better achieved by copying the folder iTunes set to a portable player and then copying it in the new computer. A network share can also be used.
    6. You can't easily share a playlist with a friend. Normally iTunes playlists are sorted in lists of references to tracks in your library. They work only import if all the tracks already exist in the same paths that stored in the list. Having said that this is something which can be done in a certain measure with music from Apple, because each user has access to a common library of streaming content from the iTunes Store and their rights to listen to it.
    7. Equivalent of the Mac of the Explorer Windows is called Finder. It should be pretty easy to find. Macs are more lenient if you move the files in the same volume, but usually don't. Let iTunes manage physical files on disk when you store the logical organisation within the library. See make a split portable library for images of the typical presentation of the iTunes library. The images come from Windows, but the General layout on a Mac is the same.

    TT2

  • How can I delete my questions?

    How to remove one of my questions in this forum?

    Best regards

    Filip

    You cannot delete the question yourself.  If you tell us the link to the issue you want to be removed we can point to for real, and I hope that among the host organizations it will remove

Maybe you are looking for