JNI Question,help me thx!!

Setp1:
//Setdisp.java
class Setdisp {    
public native static void greeting();
static {         
System.loadLibrary("Setdispdll");
Setp2:
cmd>javac Setdisp.java
Setp3:
cmd>javah Setdisp
Setp4:
/*Setdisp.c
* DO NOT EDIT THIS FILE - it is machine generated
#include <jni.h>
#include <windows.h>
/* Header for class Setdisp */
#ifndef IncludedSetdisp
#define IncludedSetdisp
#ifdef __cplusplus
extern "C" {
#endif
* Class: Setdisp
* Method: greeting
* Signature: ()V
JNIEXPORT void JNICALL Java_Setdisp_greeting
(JNIEnv * env, jclass cl) {
DEVMODE Mode;
EnumDisplaySettings(NULL, ENUM_CURRENT_SETTINGS, &Mode);
Mode.dmPelsWidth = 800; //screen width
Mode.dmPelsHeight = 600; //screen height
Mode.dmDisplayFrequency =75; //screen bits
if (ChangeDisplaySettings(&Mode,CDS_TEST)==DISP_CHANGE_SUCCESSFUL)
ChangeDisplaySettings(&Mode, 0);
#ifdef __cplusplus
#endif
#endif
Setp5:
cmd>cl -IF:\jdk\include -IF:\jdk\include\win32 -LD Setdisp.c -FeSetdisp.dll
errors:
Setdisp.obj : error LNK2001: unresolved external symbol __imp__ChangeDisplaySett
ingsA@8
Setdisp.obj : error LNK2001: unresolved external symbol __imp__EnumDisplaySettin
gsA@12
Setdisp.dll : fatal error LNK1120: 2 unresolved externals
Why ??
Help me,thank you very much!

are you sure you are linking to user32.dll?

Similar Messages

  • Apple id is disabled, to reset the password I do not know the email and security question. help what to do?

    apple id is disabled, to reset the password I do not know the email and security question. help what to do?

    Hi ingaosk,
    Thanks for the question. Based on what you stated, it seems like you did not receive the reset email. I would recommend that you read this article, it may be able to help you isolate or resolve the issue.
    If you didn't receive your Apple ID verification or reset email - Apple Support
    Thanks for using Apple Support Communities.
    Cheers,
    Mario

  • HT1349 I for get security question help my too rest , send to my mail :

    I send email for serves and send to my by email ling I tray eat not help my to rest my security question .
    No we to send security question to my email or what I down I tray from many days
    The serves send that and it,s not help : read it
    Hello,
    The following information for your Apple ID *********** was updated on 02/03/2013:
    Phone number(s)
    If these changes were made in error, or if you believe an unauthorized person accessed your account, please reset your account password immediately by going to iforgot.apple.com.
    To review and update your security settings, sign in to appleid.apple.com.
    This is an automated message. Please do not reply to this email. If you need additional help, visit Apple Support.
    Thanks,
    Apple Customer Support
    Tel my what I do I need my program and my many in my account and wan I need to seal program he asking security question , what I do
    I for get security question help my too rest , send to my mail : ***********
    <E-mail Edited by Host>

    Do not post your email adress here.
    Open your browser and go to iforgot.apple.com and follow the instructions there.

  • TS3694 my iphone 3g fails to restore. i have tried to restore many times and in different computers but at the end of the restore process it keeps giving me an error message- 1015. can anybody help? thx.

    my iphone 3g fails to restore. i have tried to restore many times and in different computers but at the end of the restore process it keeps giving me an error message- 1015. can anybody help? thx.

    The phone was jailbroken. That's what that error indicates. You can't get help here. You can't get help from Apple.
    Try Google.

  • HT201363 I forget security question, help me recover?

    I forget security question, help me recover?

    You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (104340)

  • About Java 2 opaque font color question, help needed!

    About Java 2 opaque font color question, help needed!
    I was trying to test opaque font (the string has a foreground color and a background color), but i can't find the method for doing that.
    i can change foreground by Graphics2D.setPaint(Color.black).
    Anybody know how to change the background of the string?
    Thanks!

    Hi. The way I'd do it would be to use the font metrics to find the length of a string and draw a rectangle and then drawstring over the rectangle. If you want an example, I can post it although I suspect theres a better way.

  • Hi I need ur help actually my iPhone 5 is not working properly I been to apple store they said u have to booked online for repair but I couldn't find where to register plz help out thx ali

    Hi I need ur help actually my iPhone 5 is not working properly I been to apple store they said u have to booked online for repair but I couldn't find where to register plz help out thx ali

    Dollersheikh wrote:
    ... I been to apple store ...
    Go to that Apple Retail Stores website and click on Make a Reservation...
    Here's an example...
    http://www.apple.com/retail/crossgates/
    Store List here  >  http://www.apple.com/retail/storelist/

  • I forgot my security queStions help me!

    I forgot my security queStions help me!

    If you have a rescue email address set up on your account then you can try going to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you might see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address set up then go to Express Lane  and select 'iTunes' from the list of 'products' in the middle of the screen.
    Then select 'iTunes Store', and on the next screen select 'Account Management'
    Next choose 'iTunes Store Account Security' and fill in that you'd like your security questions/answers reset.
    You should get an email reply within, I think, about 24 to 48 hours (and check your Spam folder as well as your Inbox)

  • My iphone 5 syncs with itunes but the music, movies and TV shows DO NOT. icloud if off on pone and store. Both itunes and phone have latest app/operating software. Please help. Thx!

    my iphone 5 syncs with itunes but the music, movies and TV shows DO NOT. icloud if off on pone and store. Both itunes and phone have latest app/operating software. Please help. Thx!

    Connect your device, select it in the left-hand column, then change the settings on the various tabs to sync the media content your library to the device. Anything already on it may be removed. If that would be a problem see Recover your iTunes library from your iPod or iOS device.
    tt2

  • Sister was using my iPod, she changed Apple id to hers, then forgot the iTunes password, now it's disabled she doesn't know what backup email she use or the security questions HELP can Apple reset my iPod?

    sister was using my iPod, she changed Apple id to hers, then forgot the iTunes password, now it's disabled she doesn't know what backup email she use or the security questions HELP can Apple reset my iPod?

    Is there a way to find my Apple ID Name if I can't remember it?
    Yes. Visit My Apple ID and click Find your Apple ID. See Finding your Apple ID if you'd like more information.
    How do I change or recover a forgotten Apple ID Password?
    If you've forgotten your Apple ID Password or want to change it, go to My Apple ID and follow the instructions. SeeChanging your Apple ID password if you'd like more information.
    Forgotten Security Questions/Answers
    You need to contact Apple by:
    1 - Use the Express lane and start here:
    https://expresslane.apple.com
    then click More Products and Services>Apple ID>Other Apple ID Topics>Forgotten Apple ID security questions.
    or
    Apple - Support -form iTunes Store - Contact Us
    2 - Call Apple in your country by getting the number from here:
    http://support.apple.com/kb/HE57
    or          
    Apple ID: Contacting Apple for help with Apple ID account security
    3 - Use your rescue email address if you set one up
    Rescue email address and how to reset Apple ID security questions
    For general  information see:
    Apple ID: All about Apple ID security questions

  • HT5312 forgot the answers to security questions. help.

    forgot the answers to security questions. help.

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Memory Question Help Please

    Alright ive never really been to smart on memory and how it runs and all that. The Question is I have a gig of ram on my mac book but right now it says only 30 mb is free
    wired: 221mb
    active: 524mb
    inactive: 247 mb
    used: 993mb
    now is that normal cause i mean im hardly using anything im using like safari, aim, and itunes. seems like more memory should be free and crap.

    Hi,
    here is link toe help you understand better:
    http://docs.info.apple.com/article.html?artnum=107918
    Good Luck

  • SAP MM questions- help needed

    Please can I get an expert's help in findig a solution to the following questions:
    1 To view the most up to date planning data (available stock, orders, reservations, etc.) on a material, use the:
    (more than one answer can be correct)
    A Stock Overview report.
    B List display of material and accounting documents.
    C MRP list.
    D Stock Requirement list.
    E Standard Analysis for a material
    2 A material forecast can be used by the following MRP types:
    (Only one answer is correct)
    A Manual Reorder point planning.
    B Automatic reorder point planning.
    C Forecast based planning.check
    D Time phased planning.
    E Storage location MRP
    3 Materials planning can be set to automatically generate:
    (more than one answer can be correct)
    A Contracts.
    B Purchase Requisitions.
    C Purchase Orders.
    D Planned Orders.
    E Delivery Schedules.
    4 The following are lot sizing rules available for SAP R/3:
    (more than one answer can be correct)
    A Fixed lot size.
    B Replenish to maximum stock level.
    C Weekly lot size.
    D Daily lot size.
    E Economic order quantity.
    5 Which of the following apply to Purchase Orders?
    (more than one answer can be correct)
    A The vendor must be specified in the Purchase Order Header.
    B All materials on a purchase order must be procured through the same purchasing group.
    C All materials on a purchase order must be of the same material group.
    D Discounts and surcharges can be maintained in the document header.
    E Discounts and surcharges can be maintained at line item level.
    6 Which of the following is an Account Assignment category?
    (more than one answer can be correct)
    A Material Group.
    B Purchase Requisition.
    C Sales Order.
    D Release Code.
    E G/L Account
    7 Which of the following are Item Categories?
    (more than one answer can be correct)
    A Consignment.
    B Service.
    C Manufacturing.
    D Cost Centre.
    E Subcontracting.
    8. Which of the following documents can be subject to release (approval) procedure?
    (more than one answer can be correct)
    A Planned Order.
    B Purchase Requisition.
    C Scheduling Agreement.
    D Purchase Order.
    E RFQ.
    9 In Source lists the following can be sources of supply:
    (more than one answer can be correct)
    A Vendor.
    B Contract.
    C Scheduling Agreement.
    D Quotation.
    E Quota Arrangement.
    10 Which of the following document types can appear in the purchase order history for a purchase order line item?
    (more than one answer can be correct)
    A Another purchase order.
    B A goods receipt material document.
    C A service entry sheet.
    D An invoice.
    E A release procedure.
    11. Which of the following stock types can be counted through Physical Inventory procedure?
    (more than one answer can be correct)
    A Unrestricted use stock.
    B Block stock.
    C Quality Inspection stock.
    D Vendor consignment stock.
    E In-transit stock.
    12 Which of the following cab possibly influence the valuation price of a moving average priced material?
    (more than one answer can be correct)
    A Goods receipt for a purchase order.
    B Goods Issue to a cost centre.
    C Invoice verification against a purchase order.
    D Stock transfer between two storage locations in the same plant.
    E Transfer posting from unrestricted use stock to quality inspection.
    13. In the SAP system a user can operate in the following hierarchies.
    (more than one answer can be correct)
    A Service level.
    B Application level.
    C Main menu level.
    D Month.
    E Total stock value.
    14 Your planning department is using a Forecast Model for materials planning. It has been established that while demand for the particular material is projected to increase steadily as market share is increased, the fluctuating tourist demand will affect the overall requirements. Which forecast model will best address this requirement?
    (Only one answer is correct)
    A The Constant model.
    B The Constant trend model.
    C The Seasonal trend model.
    D The Fluctuating trend model.
    E The Seasonal model.
    15. In the SAP system, the reference document used in the purchasing cycle is the:
    (Only one answer is correct)
    A Purchase requisition.
    B Info record.
    C Source list.
    D Purchase Order.
    E None of the above.
    True / False
    16 What purpose does invoice verification serve in materials management?
    a It allows invoice that do not originate in materials procurement to be processed.
    b Completes the materials procurement process
    c Handles the payment
    d Allows credit memos to be processed
    e Handles the analyses of invoices.  
    17 What are the tasks of invoice verification?
    a Entering invoices and credit memos received.
    b Checking the accuracy of invoices
    c Executing the account posting resulting from invoice
    d Updating open items and material prices
    e Checking invoices that were blocked.
    18 What is the process of invoice verification?
    a Purchase order, service or GR referenced for incoming invoice.
    b Invoice items suggested by the system against referenced document
    c Corresponding automatic account postings carried out.
    d Payment proposal list for vendor generated.
    19 From where does the system pick the default quantity of an item when you post invoice receipt?
    a Invoice
    b Purchase order
    c Purchase order history
    d System settings
    e Vendor master
    20 During invoice verification the system picks the rate at which tax is calculated from the vendor master record.
    TRUE
    FALSE
    Regards
    VS

    Hi Vishal,
    Here are the answers.
    1. C, D
    2. C
    3. B, D, E
    4. A,B,C,D
    5. A, B, D, E
    6. C
    7. A, B, E
    8. B, C, D, E
    9. A, B, C
    10. B, C, D
    11. A, B, C
    12. A, C
    13. E
    14. A
    15. A
    True / False
    16. B, C, D, E
    17. A, B, C, E
    18. A, B, D
    19. C
    20. False
    Hope this helps.
    Thanks,
    Viswanath

  • Security question; HELP!

    So, I changed the email and password to my apple account, the only thing left to do is change my security questions, The problem is I can't send a security question reset because it's only giving me the option to send a reset message to my old email (which I cannot use anymore) why didn't that email change when I changed the emails? I also changed the backup email address? can somebody please help me

    You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    (119062)

  • IPAD and UPdate to Airprint Printer question Help Please?

    I have an HP 6500 printer that I utilize with my MacbookPro (from 2007) and it operates just fine wirelessly using WiFi at home. I did note  though that my iPod cannot print to the printer as the printer IS NOT AIRPRINT equipped.
    MY QUESTION?
    I am considering purchasing an IPAD MINI (RETINA)equipped with KeyNote, Pages, etc., and am wondering If I invest in an AIRPRINT equipped printer in order to enable printing from the IPAD MINI, will I also still be able to print from my Macbook Pro (2007) which is not equipped with anything that interfaces with AIRPRINT to my new AIRPRINT printer? In other words, is this reversed engineered to allow printing from an older laptop to a brand new AIRPRINT printer?
    Hope you can help, so I don't waste money on a new printer and an IPAD only to find out I can no longer use my LapTop (MacbookPro) to print.
    Thanks you for any help.
    Charles

    Thanks, Jim.
    Going to give it a try, Now, after reading all the reviews on the various HP and Epson model all-in-one printers, my next chore will be to make the actual selection. It seems that there as many people who love each unit as there are who hate each unit. Confusing, but I will digest it over the next several days and make a choice.
    Thanks again,
    Charles

Maybe you are looking for

  • BPM Error: Synchronous Send Step

    Hi All,   I am getting the below error in the synchronous send step of my BPM. Interface urn:Haworthinc.com:India_Tax SIAA_IndiaTax_DBSelect_TICUSEXT has multiple operations I am trying to send a query and get data from a table in this step. I have a

  • Web services Publisher Error

    Hello Experts, I am ruuning down with an issue in Web I - web services publishing. When i tried to Publish the report as Web services Url, it says Connection time out. I tried to Add host in manage servers area (which is blank ), again it says "conne

  • How to read CAF entity services in BCO

    Hello, I try to read an entity service out of an background callbale object. For this i added the the public part of the webdynpro DC of the entity service as used DC to my bco. I did this as well with the library, including my bco. The problem is, t

  • Problems with QCM tables in DB export

    Hi gurus, I have a problem with an export that I'm performing, the problem is that the R3SETUP is trying to export a QCM table "QCMT066" but this table doesn't exits in the database. (EXP) ERROR: DbSlExeRead: rc = 107, table "QCMT066"         (SQL er

  • How do i close the "export pdf" window?

       How do I close the "export pdf" window so my documents can appear on a full screen?