Cannot get SetEndOfFile (or whatever it is in kernel32.lib) to post a link

I'm looking for truncating a file using the SDK SetEndOfFile function. Basically, I try to recreate the code that RobertoBozzolo has posted in this thread. I use CVI 2015 and 8.1 SDK.

I have consulted the SetEndOfFile of Microsoft documentation and I realized I needed to include fileapi.h, so I did. According to this page and the help topic "Availability of the SDK" CVI, SetEndOfFile figure in kernel32.lib. I've added this library to my project and then tried to build. Unfortunately I started having connection errors:

error: Undefined symbol "_SetEndOfFile", a reference (as well as the symbols not defined for _CreateFileA and _GetLastError)

All these functions must be in kernel32.lib. The CVI help topic also lists these functions as being in mincore.lib, so I tried to add to my project. Still no luck with the two mincore and kernel32.lib or only mincore.lib. It seems that everything which is supposed to be available in kernel32.lib does not work.

So I decided to try and add EACH lib in "C:\Program Files (x 86) \Windows"... all 450 of them. After that the CVI has frozen for a good 20 seconds, all libraries have been added and these symbols were still undefined.

I'm not quite foreign with Java SDK. This same exact project is successfully using a bunch of functions of WinInet.lib without problem, the same exact path. I feel that I am probably doing something stupid, but I can't understand what it is.

Figured it out. It was a problem of command include, associated with the Toolbox. This order did not work:




But this one related and ran perfectly:




Tags: NI Software

Similar Questions

  • Cannot get mail that failed to connect to my server

    Cannot get mail

    Failed to connect to my server

    Hello parkspa,

    Thank you for using communities Support from Apple. I know have a problem with Mail on your iPhone, it's not what you expect. The good news is the next article will be useful for troubleshooting and solving your problem and get email working again on your iPhone:

    Get help with Mail on iPhone, iPad and iPod touch

    See you soon!

  • After the installation of 41.0.1 gmail site has security problem, also cannot get roboform toolbar to display after activation of Roboform in FF

    FF broke so I upgraded to 41.0.1. After that whenever I tried to go to gmail.com , I get a message of no reliable view security. Tried to ignore the message, but received another similar message and was hardly the easy just configure an exception for each of them.

    Also activated roboform version newly installed but cannot get the roboform toolbar to display.

    I'm 10 Windows and the version of ff is 41.0.1

    Hi Andy, which display the certificate refer to the "issuer", certificate Firefox does not trust. He mentioned Microsoft parental control? Unfortunately, everything I know about this certificate was already in my previous answer.

  • Trying to get rid of the annoying pop up, I chose deny full screen and "remember" in You Tube and cannot get full screen anywhere or change it back. How?

    I tried to get rid of the annoying pop up on You Tube and in frustration, I chose the refusal full screen and "remember" and now cannot get full screen anywhere or change it back. How do I do that? I read the thread here with the same problem and the solution included hit ' command + I "and so on. How do I do that? What is 'Order' and the letter 'i' or 'L' or the number "!"?

    You can control and manage permissions for the domain in the tab currently selected through these steps:

    • Click the address bar onthe Site identity button"(globe/lock)
    • Click on 'More information' to open ' tools > Page Info "with the Security tab is selected
    • Go to the permissions tab (Tools > Page Info > permissions) to check the permissions for the domain in the currently selected tab
  • Cannot get the password or re-establish the link. What should I do?

    Cannot get the password or re-establish the link. What should I do? Reset email is never sent. This master password"... How do you define? I'm locked out of Thunderbird. Help

    Maybe he's trying reset Pasword Thunderbird Master as I'm doing? I copy the code and paset in the console tools\error and press Evaluate. I wonder if I want to reset the Master PW and I say yes, then I get a saying that the Master PW has been reset. Maybe he's looking for an e-mail to tell him that the IPL has been rest to? But the problem is, nothing happens when the password has been reset, msg is sent. TB continues to request the password. I have not changed my PW and when I enter the good PW, TB does not recognize. And reset the PW Master does nothing but generate Pop up messages. It's very frustrating. The information in the help files are not accurate, or the code provided does not work although it generates messages indicating that the IPL has been reset.

  • Adware couponarific has considered, even mcafee cannot get rid of it; I can't even delete mozilla and start over

    Adware couponarific has considered, even mcafee cannot get rid of it; I can't even delete mozilla and start over

    See this - http://malwaretips.com/blogs/remove-couponarific-virus/

  • Cannot get new url of the tab open with the homepage (Google).

    After the upgrade, I cannot get rid of 12 boxes (Facebook, Youtube, etc.) on the new tab or make open with my homepage (Google). I tried two different newtaburl add-on, uninstall and reinstall Firefox and the directives of the object: subject: config, browser.newtab.url, etc. I can't even scratch try this approach. I can't get the 12 bar blues.

    Well, I know I'm repeating something you've read before, but just for completeness (and also, I suspect this isn't built-in Firefox page):

    (1) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (2) in the search above the list box, type or paste newtab and make a pause so that the list is filtered

    (3) double-click the preference browser.newtab.url and enter your favorite page:

    • (Default) page thumbnails = > subject: newtab
    • Blank tab = > subject: empty
    • Built-in Firefox homepage = > topic: welcome
    • Any other page = > full URL of the page

    Press Ctrl + t to open a new tab and check that it worked. Fixed?

    Some traps:

    If Firefox will not let you change this setting: you can have what is called SearchProtect on your system.

    Firefox if allows you to save your changes, but he doesn't know: one of your extensions may be the substitution of her. You can consult, disable and/or remove extensions on page modules. Either:

    • CTRL + SHIFT + a
    • "3-bar" menu button (or tools) > Add-ons

    In the left column, click on Extensions

    If the modification works during your session, but during the next startup is return to the unwanted page: you could have a user.js file in your personal settings Firefox (your Firefox profile folder). This article describes how to track down and delete the file: How to fix preferences that will not save.

    A little luck?

  • Have WIN 8.1 and running Internet explorer as web browser cannot get Thunderbird to be my e-mail by default Web pages, keeps wanting to use MAIL!

    Have WIN 8.1 and running Internet explorer as web browser cannot get Thunderbird to be my e-mail by default Web pages, keeps wanting to use MAIL!

    About the prior Toad Hall "Windows default" comment. That was really the key to the problem - windows by default does not work unless ALL the boxes on Thunderbird are checked. I had used TB along right but wanted to send a few photos and the default TB has not been recognized, though even I had used for a few months. Where discover the box the letters on TB has been verified not a made only of the disappearance of the problem. Tried the default Windows repeatedly route to nothing does not.

  • After update to El Capital, cannot get numbers key pad to work on several different keyboards

    Updated to v10.11.5 and now cannot get the keys on the keyboard to work. Have tried several keybds and different brands. Any suggestions?

    Not sure if it works but try resetting the SMC.

    Reset the management system (SCM) controller on your Mac - Apple Support

  • cannot get into my email inbox. a message appears, your xfinity connect session has expired due to inactivity. Comcast said that it comes to firefox. I have a mac.

    cannot get into my email inbox. a message appears, says your xfinity connect session has expired due to inactivity. Comcast says it's a firefox issue. I have a mac.

    This can be caused by corrupted cookies or cookies that are not sent or otherwise blocked.

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Firefox > Preferences > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox > Preferences > privacy > Cookies: "show the Cookies".
  • whenever I log on a pop up sayes clik here for donations of charitys 1.0 to purches, cannot get rid of this

    cannot get rid of the pop up prestosavings click here for your charitable giving to purches 1.0

    I googled prestosavings and it seems to be an add ON. They call it "discreet" but where is everything related to the announcement "discreet"?
    This person has had a similar problem and prosecuted for a solution-
    https://support.Mozilla.org/en-us/questions/939056

  • Ah, tried everything cannot get rid of Claro

    I've tried everything I can find, cannot get rid of Claro.Must find a way, don't like to give up on Firefox

    Did you watch these discussions and these pages?

    Do you see a browser program Manager in the control panel > programs

  • Outlook: "cannot get mail" "cannot connect to the server.

    April 6 at 7:00 PM CST, my iPhone 5 running iOS stopped syncing with my Microsoft Outlook account 9.3.1.

    I did have problems with my iPhone sync with my Outlook email over the past 5 years so far.

    My Outlook account is to these servers-

    web mail:
    https://blu183.mail.live.com/

    for Windows Live Mail 2012:
    https://mail.Services.live.com/DeltaSync_v2.0.0/sync.aspx

    I tried to delete my Outlook account from my iPhone and re-establishment and the account Outlook 'checks' correctly - but this does not solve the problem.

    The iPhone keeps displaying a pop-up message:
    "Cannot get mail" "cannot connect to the server.

    My iPhone is syncing correctly with my Gmail accounts and iCloud.

    Also, I created my Outlook account on iPad to my daughter who is running iOS 8.1.2 and I have the same problem.

    This seems to be a situation of the Apple servers, do not sync with Microsoft servers.

    Thank you

    It seems that Outlook is to have questions, not only with iPhones but W10, see this thread:

    I lost all my contacts.

  • Cannot get into the BIOS on my Portege R700

    Hello friends,

    I have laptop Portege R700-1321.
    1 year a go, I was updating my version of BIOS to 2.20 and after that I have cannot get into the BIOS!
    try a passer-by but noway :(

    When you press F2 after you restart the computer nothing add and put it back again.
    try to change ro F10 boot order but still just restart :(
    I need to change the boot order to install the new OS fresh and of course my BIOS setting.

    Please help me.
    If any body had a same problem or know how to fix it :(

    First of all you n t need to change the boot order in the BIOS if you want to reinstall the new system.
    You can press F12 all turn on/off the unit.
    Then a menu should appear where you can change the boot device.

  • Lost user account password and cannot get into Netbook

    We bought a Toshiba Netbook nb200 for our teenager for Christmas.

    She was so excited to get it and was on the computer immediately implemented its own user account without writing or allowing me the time to create a floppy disk for it.

    Now the user account won't let us. She said she knew what was the password and when we try, it doesn't work. We spent two days by typing everything under the Sun to see if we can get it and no luck.

    2 days after that Christmas and she cannot get into the computer at all.

    I tried SafeMode etc and does not work.

    Any suggestions on what it takes to please?

    Thank you.

    Try this...

    To retrieve the original factory image using the utilities on your computera? s internal disk storage:

    1. make sure that the computer is turned off.

    2. press in and hold the value 0 (zero) key on your keyboard all turn on/off the computer.

    3. If your system offers a choice of Windows® 7 32-bit or 64-bit operating system, you can select one right now. If this is not the case, go to step 4.

    4. a warning screen opens, indicating that when the recovery is performed all data will be deleted and rewritten.

    Click Yes to continue. Follow the instructions to do a full restore...

    HTH,

    The f

Maybe you are looking for