Are these functions and parameters used in DirectX 11.2?

Functions and parameters like WINAPI, hPrevInstance, hInstance , PSTR etc are used in DirectX 11.2?

This is the entry-point for a Windows desktop application (aka Win32 application) whatever the architecture it is running on (32-bit or 64-bit native).
int WINAPI wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPWSTR lpCmdLine, _In_ int nCmdShow)
This is not used for Windows Store apps or Windows phone apps which instead use:
[Platform::MTAThread]
int main(Platform::Array<Platform::String^>^)
I suspect you are using this forum as it's the only one that mentions "DirectX" but you aren't writing a Windows Store app. You should take al look at the
Direct3D Win32 Game Visual Studio template for VS 2013 or this
tutorial for an example of how to set up a DirectX 11 device and swap chain for a Windows desktop application for 32-bit and 64-bit native.

Similar Messages

  • Hi I'm new to Mac. I have a macbook air and for some reason the top keys, ec, f1 etc etc are not functioning and emitt the non function noise when pressed. Also the volume keys don't adjust the volume. Have I done something to disable them?

    Hi I'm new to Mac. I have a macbook air and for some reason the top keys, ec, f1 etc etc are not functioning and emitt the non function noise when pressed. Also the volume keys don't adjust the volume. Have I done something to disable them?

    I don't have the same version of OS X here but try System Preferences>Keyboard. Is there an option similar to "Use the F1, etc, keys as standard function keys"?
    If so, and it has a checkmark, uncheck it & see if that does the trick.
    ~Lyssa

  • Suppose in a Package Spec there are 3 functions and Package Body there are 5 functions will the package compile?

    Suppose in a Package Spec there are 3 functions and Package Body there are 5 functions will the package compile?

    Rather than asking these basic one-liner questions (When a package is created how many database objects are created?) why don't you explain what issues you are experiencing after you've read the documentation and tried things yourself.
    The forums are for people to help when they experience issues, not when they can't be bothered to read the documentation or searcht the web for the basic information that's already explained.
    Re: 2. How do I ask a question on the forums?
    Re: 1. Where can I find Oracle Documentation?

  • My battery reads that it is 100% charged. However, as soon as I unplug it, it dies instantly. The battery lights are still functional, and everything else is working fine! What's wrong with my battery?

    My battery reads that it is 100% charged. However, as soon as I unplug it, it dies instantly. The battery lights are still functional, and everything else is working fine! What's wrong with my battery?

    Sounds like it may need to be replaced. Contact Apple.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • Calling Oracle function and Procedure using OCCI with in C++ code

    Could any body send me the sample code to create and execute Oracle function and Procedure using OCCI concept in C++?.
    Edited by: 788634 on Aug 16, 2010 4:09 AM

    Hi Vishnu,
    Yes, sure, you can create a PL/SQL procedure, function, package, package body, etc. from within an OCCI application. I would say that, generally, this is not the sort of activity a typical client application would perform unless there is some initialization/installation processes that need to happen. In any case, here is a simple demo showing how to create a stand alone procedure (in a real application I would use a package and body) that returns a ref cursor. The ref cursor is just a simple select of two columns in the hr.countries sample table. Of course, there is no error handling, object orientation, etc. in this demo - I wanted to keep the code as short and as simple as possible to illustrate the concept.
    Regards,
    Mark
    #include <occi.h>
    #include <iostream>
    using namespace std;
    using namespace oracle::occi;
    int main(void)
      // occi variables
      Environment *env;
      Connection  *con;
      Statement   *stmt;
      ResultSet   *rs;
      // database connection information
      string user = "hr";
      string passwd = "hr";
      string db = "orademo";
      // sql to create the procedure which returns a ref cursor as out parameter
      // should be run as hr sample user or in a schema that has select privilege
      // on the hr.countries table and a synonym (countries) that points to the
      // hr.countries table
      string sqlCreate =
        "create or replace procedure get_countries(p_rc out sys_refcursor) as "
        "begin"
        " open p_rc for"
        " select country_id, country_name from countries order by country_name; "
        "end;";
      // pl/sql anonymous block to call the procedure
      string sqlCall = "begin get_countries(:1); end;";
      // create a default environment for this demo
      env = Environment::createEnvironment(Environment::DEFAULT);
      cout << endl;
      // open the connection to the database
      con = env->createConnection(user, passwd, db);
      // display database version
      cout << con->getServerVersion() << endl << endl;
      // create statement object for creating procedure
      stmt = con->createStatement(sqlCreate);
      // create the procedure
      stmt->executeUpdate();
      // terminate the statement object
      con->terminateStatement(stmt);
      // now create new statement object to call procedure
      stmt = con->createStatement(sqlCall);
      // need to register the ref cursor output parameter
      stmt->registerOutParam(1, OCCICURSOR);
      // call the procedure through the anonymous block
      stmt->executeUpdate();
      // get the ref cursor as an occi resultset
      rs = stmt->getCursor(1);
      // loop through the result set
      // and write the values to the console
      while (rs->next())
        cout << rs->getString(1) << ": " << rs->getString(2) << endl;
      // close the result set after looping
      stmt->closeResultSet(rs);
      // terminate the statement object
      con->terminateStatement(stmt);
      // terminate the connection to the database
      env->terminateConnection(con);
      // terminate the environment
      Environment::terminateEnvironment(env);
      // use this as a prompt to keep the console window from
      // closing when run interactively from the IDE
      cout << endl << "ENTER to continue...";
      cin.get();
      return 0;
    }

  • In my storage summary it says other files. It shows 30GB what are these files and how do I remove them

    I am trying to remove files to get my computer to run better. In the storage summery it shows a category OTHER. What are these file and how can I remove them. I went through my downloads and documents and copied them and then removed them. What else could they be??

    They are files that cannot be put in the other categories. They are documents, email, cache, temp, OS files, etc.

  • What are these processes and how do I prevent them?

    For many years, many have complained of external drives that are in standby/sleep spinning up for no apparent reason.  From the user's point of view this is unnecesssary, but to make matters worse, the system usually stops everything else while waiting for the drives.
    I have a Mac mini that I use as a home theater pc.  The media and backups are on a 5-bay enclosure (no RAID) attached by USB.  While watching a video, the unused drives will go into standby mode, which is good.  But then, with no user activity, they will spin up, freezing the video and everything else, which is not good.  As these are slow drives and spin up sequentially, this can take 10-20 seconds.  This may happen once or twice an hour, but sometimes more frequently.
    In looking into the causes, I have turned off time Machine (after putting these drives into the Privacy section for good measure).  I also prevented Spotlight and fsevents logging with the following:
    mdutil -i off /Volumes/<drive1> /Volumes/<drive2> . . .
    cd /Volumes/<drive1 and then repeat for other drives>
         rm -rf .fseventsd .Spotlight-*
         mkdir .fseventsd
         touch .fseventsd/no_log .metadata_never_index
    As far as I can tell this has worked to stop those processes from accessing the drives after they are mounted, but the problem persists.  To find out what else might be causing them to wake up:
    sudo fs_usage -w | grep -e Volumes/<drive1> -e /Volumes/<drive2> . . .
    and here is what I found last night (actually didn't use the -w last night, thus it is cut off):
    18:35:36  fsgetpath   /Volumes/XBMC         0.000026   SSDragHelper
    18:35:36  fsgetpath   /Volumes/Stuff        0.000006   SSDragHelper
    18:35:36  fsgetpath   /Volumes/DatOptic_3   0.000005   SSDragHelper
    18:35:36  fsgetpath   /Volumes/MacBackUp    0.000003   SSDragHelper
    18:36:15  fsgetpath   /Volumes/XBMC         0.000026   System Prefe
    18:36:15  fsgetpath   /Volumes/Stuff        0.000004   System Prefe
    18:36:15  fsgetpath   /Volumes/DatOptic_3   0.000003   System Prefe
    18:36:15  fsgetpath   /Volumes/MacBackUp    0.000003   System Prefe
    18:55:36  fsgetpath   /Volumes/XBMC         0.000034   GoogleSoftwa
    18:55:36  fsgetpath   /Volumes/Stuff        0.000004   GoogleSoftwa
    18:55:36  fsgetpath   /Volumes/DatOptic_3   0.000003   GoogleSoftwa
    18:55:36  fsgetpath   /Volumes/MacBackUp    0.000003   GoogleSoftwa
    After looking into the Google process, I was surprised to find the tentacles that Google puts into your system, and ripped every bit of it out that I could.  But I have no idea about what's going on with SSDragHelper and System Prefe (presumable System Preferences).  This must be OS X itself?  What are these processes doing, and is there any way to prevent them from accessing these disks in this way?

    Thanks for the reply Hen3ry.  Looks like you've done a lot of investigation.  For me, fs_usage entries accompanying spindown are not problems - I'm happy if the drives spin down.  My problem is the spinups.  But still, I don't think it is necessary to time the fs_usage entries with spinups.  If you grep for the drives you're concerned about, you will see any process that would potentially wake them up.
    Because my understanding is limited, I also am more concerned with the process/application that is accessing the drives than with the functions or commands they are sending.  And the values that are returned by those functions are way beyond what I can deal with.
    It's interesting that you've found a difference between your old and new drives.  Could you specify the enclosure and drives in each case?
    The StorageStatus app looks interesting; thanks for the tip.
    Here's a summary of what I've done so far, which I think is working.  I need a few more weeks to know for sure.
    How to prevent unwanted drive spin-ups
    If you are actively using the computer that the enclosure is attached to, nothing on God’s green earth will stop OS X from waking them up after some user action, even ones that seem to have nothing to do with the external drives.  But if you leave the computer alone while some application is running, like watching a movie or downloading a file, you have a fighting chance of coaxing OS X into leaving the uninvolved drives alone.
    If the drives are shared with any other computers over a network, eject them on those computers
    Otherwise, OS X (AppleFileServer) will poll them every 10 seconds.  This might not be bad if you want to just keep the drives spinning and the other computer stays awake.
    Third-party apps
    Make sure no apps are running that might access your drives.  Google runs some processes that do this (maybe I’m naïve, but I was so shocked I removed chrome and every other trace of Google from my Mac mini system). Another is iStat and any utility that monitors SMART status in the background.
    Don’t let Spotlight index or search the drives
    Spotlight is persistent, and it may be necessary to take a variety of steps to stop its various processes (mds, mdworker) from accessing the drives and waking them up.  In other words, kill it, drive a stake through its heart, then burn the body:
    In System Preferences > Spotlight, add the drives to the Privacy pane.
    Add a file called .metadata_never_index to the root of each drive (note the leading period).  The easiest way to do this is in Terminal
    touch /Volumes/<drive1>/.metadata_never_index
    Tell Spotlight AGAIN to keep away from the drive:
    mdutil -i off /Volumes/<drive1> /Volumes/<drive2> . . .
    Finally delete the Spotlight folder from the drive.
    rm -rf /Volumes/<drive1>.Spotlight-*
    Stop fseventsd from logging in the drive
    This is easy, just putting a no_log file in its folder.  I have found that rarely it still writes some files in there, but it doesn’t seem to do so when it causes problems, so . . .
              rm –rf /Volumes/<drive1>/.fseventsd/*
         touch /Volumes/<drive1>/.fseventsd/no_log
    Finder sidebar
    Some people say that if the drives show in the Sidebar of Finder windows, the Finder will be checking them.  I’m not sure. But to be safe, in Finder Preferences > Sidebar, uncheck External Disks.
    Just say no to Time Machine
    On the home theater mac itself, regular backups shouldn’t be needed.  You should be able to just turn Time Machine off.  However, it is probably sufficient to simply open System Preferences > Time Machine > Options and add the drives to the list of locations to exclude from backup.
    Second, local backups can be disabled with
    sudo tmutil disablelocal
    Look for other culprits
    If the problem persists, use fs_usage, which generates a real-time log of filesystem activity. There is so much going on that you need to use grep to restrict the output to entries that involve your drives. The entries that accompany your drive spin-ups are the ones you really want.
    sudo fs_usage -w | grep -e Volumes/<drive1> -e /Volumes/<drive2> . . .
    Now leave the keyboard and mouse alone, as many things you might do will cause the drives to be accessed. You probably want to find what does it when you’re not actively interacting with the computer.  It’s not really necessary to wait for your drives to sleep and see what wakes them.  Any activity you see would probably wake the drives if they were asleep.  When you see some activity and want to stop and examine, type Control-C to stop the output.  On the far right of each entry is the process or application that accessed the disks.
    I got pointers from http://system-log.tyr.org.uk/2012/01/31/how-to-stop-usb-drives-from-spinning-up- unnecessarily-on-os-x-lion/ and http://www.jackenhack.com/disk-that-refuses-to-sleep-in-mac-os-x-how-to-fix-it/

  • Is it possible to hide the save function and only use the save as function in teststand

    Hi,
    When i'm done building a sequence i want to prevent other engineers to save the sequence with the same filename (or version number).
    Is it somehow possible to "hide" the save button and only use the save as function?
    Or is there another possiblity to solve my problem.
    The idea is to have a sequence called Sequence_V1.0.seq which i have build. When installing this in a factory enviroment I would like whenever there is a change needed in the sequence that the version number increases (manual action) (becomes Sequence_V1.1.seq). So from the moment you want to save i would like to only have the function save as. In this way you are obligated to fill in a new sequence name (original sequence will be read-only)
    What would even be great if there could be a log of what the changes were
    Thx!!! 

    1) You could mark the file as read-only, by default you would then not be able to save over it. The user could make it not read-only though if they know what they are doing.
    2) Another possibility is to lock the sequence file for editing (this is a teststand feature). Go to the Sequence File Property dialog, on the advanced tab, where it says Password Protection, set it to Not Editable and give it a good password. This doesn't however keep someone from saving another file to the same name as the locked one, but they at least won't be able to saved the locked file again without your password, nor will they be able to edit it.
    Hope this helps,
    -Doug

  • Getting all Functions and Procedures using DBA_ARGUMENTS

    Hi All
    I am wanting to find out all functions and procedures that are within each of my packages and am using the following SQL to do this.
    SELECT DISTINCT A.OBJECT_NAME, A.PACKAGE_NAME,
    DECODE(POSITION,0,'FUNCTION','PROCEDURE')
    FROM DBA_ARGUMENTS A
    WHERE OWNER = 'NB'
    I have discovered however that if a procedure has been overloaded with function will appear twice: as procedure and as a function
    I was wondering if there was any workaround for this as I would only like a function to be displayed once?
    Kind Regards
    Mark

    There is an 'OVERLOAD' column which can be used to show only specific overloads (e.g. first).
    Determining which overload should be displayed in any given case may require some more thought.

  • Feedback, please. How are these overviews and links to resources working for you?

    I've been working lately on providing concise introductory sections in After Effects Help that each give an overview of a topic, provide some related tips, and then give a bunch of useful links to more detailed information.
    I'd like to get some feedback on how these sections are working.
    http://blogs.adobe.com/toddkopriva/2009/09/feedback-please-how-are-these.html
    If, as I hope, these overviews and collections of tips and resources are helpful, then I'll do more of this kind of thing.

    Hi Todd,
    Thank you for all that you have contributed to this board, and beyond. I have looked at, and used some of your resources, and found them to be very helpful. In my particular case, I learn much better through video tutorials, especially ones that include the project file and elements that are used in the tutorial. I'm glad to see you include links to other peoples work, but with your wealth of knowledge and talent, I would like to see you make your own series of video tutorials. I think you could do as good or better than anyone out there at this point. I hope you will at least give it some consideration. Thanks again for all that you do, keep up the good work.

  • What are the pros and cons using Active Data Guard vs Data Guard?

    My understanding is that Active Data Guard is an additional database option for Oracle 11gR2 Enterprise Edition. I need to know the pros and cons using Active Data Guard vs Data Guard in order to decide whether to get pay extra for the Active Data Guard.
    Thanks for any help.

    Hemant K Chitale wrote:
    Before jumping in to Active Data Guard, one needs to evaluate :
    a. Is there really a need to run queries on the Standby ? The Standby could / should be at a remote site so queries are "across the network". Depending on the nature of the queries and the volume of output, the "performance" of the queries may not seem to be the same.
    b. If the database is not in Maximum Protection mode, the data "seen" at the standby may not be in "real-time" synch
    c. Not all applications are truely read-only when querying. Some applications use "jobs" that write to tables when querying. Such would not work with Active DataGuard. (example : EBusiness Suite). There are very complicated ways of handling this -- and one needs to consider if the complications can be introduced and supported.
    Over the network accessing standby read only is really not an good idea, I think no one will compare performance with primary and standby,
    But some of them they want to validate data which are very critical, as it is matching with primary or not, Its an added advantage with ACTIVE DATAGUARD
    Prior to that until unless stop MRP, open database and then we need to validate, So there is an interruption of recovery, I can say its also an advantage where there is no interruption of recovery.

  • What are the pros and cons using ospf as the PE/CE protocol

    pros and cons using ospf as the PE/CE Protocol

    Hi,
    Well in short,
    pros:
    well deployed protocol with good user experience
    fast convergence
    no redistribution required on ce side
    cons;
    type 1 & 2 routes (O) from one site are known as type 3 summary routes (OIA) in the other site
    you need a sham link configured on the pe routers to get the routes as type1&2 at each remote site
    If was deploying mpls vpn, i would use either ospf or bgp as pe/ce protocol.
    http://www.cisco.com/en/US/docs/ios/12_2t/12_2t8/feature/guide/ospfshmk.html#wp1024995
    HTH
    LR

  • What are these lists and another question re: iTunes "purchased" playlist.

    Hello.
    I purchased songs from iTunes tonight, and made a playlist called "purchased" to put them in, not realizing that iTunes was going to do that. I synced my iPod, then I noticed (on my iPod) that I now have 2 playlists called "purchased". One is the one I made, and the other is called "Purchased" (with a capital p) that iTunes made when it downloaded my selections. This iTunes-created playlist appears under the heading "STORE". Can I delete that without removing the songs from my library?
    Also...
    Under the heading "Playlists" the first two items are
    "Music Videos" and "My Top Rated". Why are their icons different...are they not playlists? How do I put music in the "My Top Rated" list? (Right clicking in library and choosing "move to" doesn't show that "my top rated" list.)
    Thanks,
    Sue

    "Top Rated" is a smart playlist and songs/videos, etc. will start appearing as your rate your songs. Pick a few songs in your library in iTunes that are your favorites, click on the rating column for that song and give it four or five stars, then go back and look at your Top Rated playlist.

  • What are these features and how can I use them?

    Why do I have SDM Profile, Dyanmic private IP, Pay per message, Mobile Hotspot provisioning,   My mom is on the same account and does not have these.  Everything I look at points to enterprise stuff and administration.  I'm not aware of any of that.  Verizon seems to act like they don't know but it's right on my bill.  My VM seems to be funky too.  I had to change my phone number because of unknown video texts being sent.  Something is still not right.

    If these are items listed on your account as features, I think there are supposed to be there.
    I know I have that dynamic IP address one for my smartphone. So I suspect it is associated with the smartphone provisioning.
    The mobile hotspot provisioning would depend on what kind of plan you have.
    The pay per message is probably associated with your text messages so your phone will receive and send them.
    The other one I'm not sure about, but it could be something associated with the SIM card.

  • Reading DLL function and parameters from a header file

    Hallo to everyone,
    I am trying to find a cute way

    Hello,
    I think this is what you were asking in another stream.  I don't think there is a way to do that.  For examples of passing data to dlls given the naming convention variation across environments, check out the shipping example named Call DLL.vi, which will open other examples of using call library function nodes with a datatype you specify.
    I hope this helps, and these suggestions are very welcome at our feedback site - click Contact NI at ni.com, and then the word "feedback" in the lower left corner to submit a product suggestion.
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

Maybe you are looking for