Problem in using objbase.h ,help!!!

Hi
I have some problems in using the header file <objbase.h>
when I want to use the functions defined in objbase.h,such as " WINOLEAPI  CoInitialize(IN LPVOID pvReserved)",
labwindows cvi will give error information:
  Undefined symbol '_CoInitialize@4' referenced in "test.c".
who can tell me why??
thanks a lot ~~~~~~~~~

Hi phoenixmy,
You need to include the ole32.lib import library in your project. You can find this library in the <CVI>\sdk\lib directory if you have the Windows SDK installed for CVI. 
I would like to add that you should really be calling CA_InitActiveXThreadStyleForCurrentThread instead
of CoInitialize. CVI provides routines for using ActiveX, and this
function initializes COM (by calling CoInitialize) and takes care of
any other initialization CVI might need (ActiveX callbacks in multiple
threads etc.)
Best Regards,
Jonathan N.
National Instruments

Similar Messages

  • Problem while using Generic interface.Help!

    package cn.com.landstar.violet;
    import java.util.*;
    interface ITextContainer implements Iterable<String>
         void append(String newStr);
         void clear();
         Iterator<String> iterator();
    the error messages point out that
    Line3 and Line9 need "{"and "}",

    interfaces can't implement anything, they can extend other interfaces.

  • I am going to buy unlocked iphone 5.. i will be going to india nxt months and will stay there for a while... so my question is will i get warrenty in india.. and will there be any problem with using indian sims..?? thnx for the help..

    i am going to buy unlocked iphone 5.. i will be going to india nxt months and will stay there for a while... so my question is will i get warrenty in india.. and will there be any problem with using indian sims..?? thnx for the help..

    The warranty for the iPhone is not and has never been International.
    Warranty and support are ONLY valid in the country of origin.  The only exception is the EU where the entire EU is treated as one country.
    If the device will be used in India, buy it in India.
    An unlocked iPhone will work on any supported GSM carrier world wide.  The LTE portion of a US purchased, unlocked iPhone is unlikely to work outside North America as it does not support the appropriate bands used in other countries.

  • TS2755 Hi all, I bought one iphone and 3 ipads, i set up all on one apple ID. Now i have a problem when using messages: when sending message from one device it appears again on screen from the other 3 devices. I need help of how to set up messages on each

    Hi all, I bought one iphone and 3 ipads, i set up all on one apple ID. Now i have a problem when using messages: when sending message from one device it appears again on screen from the other 3 devices. I need help on how to set up messages on each device separately and to start using messages app on each device independently. Thanks

    search google for "iphone remove picture from contact"

  • Can anyone help me?Time Machine couldn't complete the backup to...  An error occurred while copying files. The problem may be temporary. If the problem persists, use Disk Utility to repair your backup disk.  What is the problem?  I've made no changes.

    I recently starting receiving the error message "Time Machine couldn't complete the backup to... An erro occurred while copying files.  The problem may be temporary.  If the problem persists, use Disk Utility to repair your backup disk.  I have had no problems backing up my MacBook Pro 2011 to my Western Digital My Book Live through a Linksys EA4500 router until recently.  I've made no major changes.  I've ran a diagnosis on my back up drive with no problems.  The Time Machine back up starts, but about after about 5 to 10 minutes I get the error message.  I can see the shared drive in Finder.  The light on the drive blinks while it starts the back up.  I can see the shared folders on the networked drive.  The backup process starts but for some reason it just stops.  Can anyone help?

    You can't repair a network volume in Disk Utility.
    Backing up to a third-party NAS with Time Machine is risky, and unacceptably risky if it's your only backup. I know this isn't the answer you want, and I also know that the manufacturer says the device will work with Time Machine, and that it usually seems to work. Except when you try to restore, and find that you can't.
    If you want network backup with Time Machine, use as the destination either an Apple Time Capsule or an external hard drive connected to another Mac or to an 802.11ac AirPort base station. Only the 802.11ac base stations support Time Machine, not any older model.
    If you're determined to keep using the NAS for backup, your only recourse for any problems that result is to the manufacturer (which will blame Apple.)

  • HEY, i have some issue i am using macbook air i5...the problem is that without doing anything 1.5gb of ram out of 2gb always in use ..please help me how to make it normal.

    HEY, i have some issue i am using macbook air i5...the problem is that without doing anything 1.5gb of ram out of 2gb always in use ..please help me how to make it normal....
    and my battery back up is max 3 to 3.5 hours in normal use with web ....is this normal or need some betterment!!!!

    ADEEL UR REHMAN wrote:
    ...the problem is that without doing anything 1.5gb of ram out of 2gb always in use
    No computer can do a thing without using memory. 1.5 GB is very little. It's normal.
    3 or so hours from a full charge may also be normal, for what you are doing. As batteries age, they don't last as long on a full charge as they did when they were new. All batteries eventually wear out, and are easily replaceable.

  • Hi fellow apple guys, i have this problem. Hope you can help me. I don't know how to use the function keys (F1 to F12) on my macbook air. Pls help

    Hi fellow apple guys, i have this problem. Hope you can help me. I don't know how to use the function keys (F1 to F12) on my macbook air. Pls help

    Out of the box, to use the function keys as function keys, hold down the fn key when you press the key. Otherwise, you get the picture function on the key. You can reverse this behavior in the Keyboard system prefs.

  • This has happened on several computers. I can download using video download helper with on problems until I attempt to download "Dishonorable Disclosures" on Yo

    This has happened on several computers. I can download using video download helper with on problems until I attempt to download "Dishonorable Disclosures" on You Tube once a download attempt is made on that video download helper stops working for that video or any other video. Could this be a virus or malware? How do I fix download helper after this happens?

    Which movie do you mean?
    Try to clear the Google cookies.
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    *http://kb.mozillazine.org/Cookies
    You can also try to delete the webappsstore.sqlite file in the Firefox Profile Folder to clear the local storage.
    You can use this button to go to the Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    *http://kb.mozillazine.org/Profile_folder_-_Firefox

  • Even though I have repaired, deinstalled and reinstalled itunes, the assitent still tells me that I can't burn or import music due to an incomplete installation... I have been using itunes for years now and never had a problem...who can help??? thx

    Hey everybody,
    even though I have repaired, deinstalled and reinstalled itunes, the assitent still tells me that I can't burn or import music due to an incomplete installation... I have been using itunes for years now and never had a problem...who can help??? thx

    check out this support article.

  • I encountered a problem when using Flash Player V9.0.115, can somebody help me?

    Hello all, can somebody help me?
    I have encountered a problem when using Flash Player
    V9.0.115. Your help would be greatly appreciated.
    The problem described as follows:
    1. The flash file with sound works well before uploaded to
    website. The audio lost when uploaded to the website(There is no
    problem with the flash file size). I have uploaded the flash file
    to website for you to test. Please go to
    http://www.sameshow.com/democreator/create
    a new site.swf and kindly check with it.
    2. When we open the flash movie in IE with Flash player
    V9.0.47 and previous versions (Flash9d.ocx), the flash movie with
    sound works well.
    3. When we upgrade the flash player to the latest version
    V9.0.115 (Flash9e.ocx), the video works well, but the sound just
    can play several seconds and then stop.
    4. On Flash Player ocx V9.0.115. If we publish the flash
    movie on web with 24fps, the sound just can work several seconds
    and then stop, the problem is the same if we use the
    TShockWaveFlash control to play the flash movie.
    5. On Flash Player ocx V9.0.115. If we publish the flash
    movie with 12fps, the sound works well but the quality is really
    very poor. It seems that the sound plays shorter with more frames
    per second. But the flash file works well with the Flash Player
    V9.0.47 and previous versions (Flash9d.ocx).
    Can somebody help me to figure it out? Thanks in advance!
    Regards,
    Sabrina
    [email protected]

    Hello Darren, I really appreciate your response. My mail is
    [email protected] I have uploaded the flash file to our
    ftp,
    http://www.sameshow.com/democreator/create
    a new site.swf. And also I compressed the original file to a
    zip file and uploaded to our ftp at
    http://download.sameshow.com/aff/create.zip,
    please kindly check! When we playing this flash file on FlashPlayer
    V9.0.47 and previous, the audio works well. But the audio just can
    play several seconds and then stop when I playing it on FlashPlayer
    V9.0.115. The garbled audio makes us very upset. Your help would be
    great appreciated!
    Sabrina Fu

  • Encore CS4 (version 4.0.0.258) will not finish burning to blu-ray disc when using a menu template.  DVD burning works fine.  Anyone know the problem with blu-ray?  HELP!

    Encore CS4 (version 4.0.0.258) will not finish burning to blu-ray disc when using a menu template.   DVD burning works fine with menu template.  Anyone know the problem with blu-ray?  HELP!

    For CS4 you must update the Roxio component, especially with Win8
    http://forums.adobe.com/thread/1309029 http://docs.roxio.com/patches/pxengine4_18_16a.zip
    http://corel.force.com/roxio/articles/en_US/Master_Article/000012592-PX-Engine-Description -and-Download

  • Having trouble importing individual songs on a CD.  Instructions say to select/deselect songs using the check marks by song titles, but they are not there. never had this problem in older versions.  Help Please

    having trouble importing individual songs on a CD.  Instructions say to select/deselect songs using the check marks by song titles, but they are not there. never had this problem in older versions.  Help Please

    Are you saying that the tick-box shown in my screenshot, isn't there? (Yes, this is iTunes 11 - I've turned on the sidebar and the Menu bar. So you can see, this is a CD in my drive that we're looking at.)
    If it isn't, go to Edit/Preferences/General and turn on the tick-box box
    You can show the Menu Bar (with Edit on it) by using CTRL + B

  • HELP :  BAPI_BUS1077_CREATE (  facing problem in using this Bapi )

    Hi
    I am facing a problem in using this Bapi.
    I already have a Data record for the Property Say FAT under a property tree say XXYYZZ. Suppose I want to create a new value for one of its Characteristic of the existing record, I am able to do that. For example. Suppose FAT has a Characteristic called Min = 1  , Max = ' ' , I am able to create a value for this  say Max = 5..   at the same time i am able to change the value of Min = 2 if I use the Bapi_Bus1077_Change..
    But my problem comes when I am trying to create a new records for the FAT.  with Min = 6  and Max = 10.. ( I am creating a new instance ).
    I see in the documentation that something has to be done with the Primarykey and Foreighkey.  But when I look into my import parameter table, all have the 000000000000000 in my primary key and in foreignkey.. 
    Can someone help me out?
    Thanks.
    David
    Message was edited by:
            Kirubakaran David

    As you want to create a new instant, you need to pass PROP_VAL and PROP_DATA
    First call GetDetails and then use it as follows.
    prop_val-function = '009'. "NEW
    prop_val-primarykey = '000000000000001'. "Temporary key that you need to assign
    prop_val-flgprimkey = 'X'. "As the key does not exist
    prop_val-foreignkey = prop_header-record_no. "From GetDetail
    prop_val-flgfrgnkey = ' '. "As key exists
    APPEND prop_val.
    prop_data-function = '009'. "NEW
    prop_data-primarykey = ''000000000000002'. "Temporary key that you need to assign
    prop_data-flgprimkey = 'X'. "As the key does not exist
    prop_data-foreignkey = prop_val-primarykey. "This is the value assigned above
    prop_data-flgfrgnkey = 'X'. "As the key does not exist
    prop_data-name_char = 'MIN_CHAR'.
    prop_data-char_value = '6'.
    APPEND prop_data.
    prop_data-function = '009'. "NEW
    prop_data-primarykey = ''000000000000003'. "Temporary key that you need to assign
    prop_data-flgprimkey = 'X'. "As the key does not exist
    prop_data-foreignkey = prop_val-primarykey. "This is the value assigned above
    prop_data-flgfrgnkey = 'X'. "As the key does not exist
    prop_data-name_char = 'MAX_CHAR'.
    prop_data-char_value = '10'.
    APPEND prop_data.
    CALL FUNCTION 'BAPI_BUS1077_CREATE'
    Note how primary key from PROP_VAL (000000000000001) is used as foreign key for PROP_DATA (000000000000002 and 000000000000003)

  • No sound for incoming calls but it works using speaker and earpiece. I can't hear anything but the other party can hear me clearly. I was told it's hardware problem. Would anyone please help? Thanks

    No sound for incoming calls but it works using speaker and earpiece. I can't hear anything but the other party can hear me clearly. I was told it's hardware problem. Would anyone please help me? Thanks

    This is an annoying problem for many people. Most likely your dock connector (on the bottom where you plug in your phone) is dirty or screwed up and is probably just coincidence that it happened after you updated. Some people have had success cleaning the port with a dry clean tooth brush. There is a long discussion going on at the thread I linked below. Good luck...
    https://discussions.apple.com/thread/2475631

  • Hi i am from india and i am using iphone 5 but i have problem with charging last 20 % suddenly my phone switched off every day and som heating when i am using internate pls help me where i can check whether my phone waranty is valid on expire

    hi i am from india and i am using iphone 5 but i have problem with charging last 20 % suddenly my phone switched off every day and som heating when i am using internate pls help me where i can check whether my phone waranty is valid on expire

    https://selfsolve.apple.com/agreementWarrantyDynamic.do

Maybe you are looking for