I would like to create a command of this kind of "change" for an extension, for example ".html" in Win7. How to do?

I want to use an association in a C++ program to run the default program associated with the command "change" in a file.

Here is the code:

result = ShellExecute (NULL, / / HWND hwnd,)
sOperation, / / LPCTSTR lpOperation,.
sFile, / / LPCTSTR lpFile,.
NULL, / / LPCTSTR lpParameters.
'Tooltips', / / LPCTSTR lpDirectory,.
SW_SHOWNORMAL / / INT nShowCmd
);

with sOperation is equal to 'Edit' and sFile is equivalent to "cdlgdatalist_1013.html" in this example.

The result is "there no application associated with the given file name extension. This error will also be returned if you attempt to print a file that is not printable. "here, all simply because I do not know how to associate the command"modify"the extension of html.

I know it was easy to do up to Vista. In win7, I do not know how.

Hello

The question you posted would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums.
http://social.msdn.Microsoft.com/forums/en-us/categories

Hope this information helps.

Tags: Windows

Similar Questions

  • I would like to know what version of itunes I can download for windows vista 64 and how

    I am trying to download itunes but my computer is older. I have windows vista 64-bit. I would like to know what I can download the version and how to

    You need to install iTunes 12.1.3. Click here for the download links.

    (138703)

  • I would like to create an effect of Roy Lichtenstein (raster). I think that it should be possible, but how?

    I love the effects that Roy Lichtenstein created in his work. It resembles a large raster with rounded pixels. Is it possible to create this effect in Photoshop?

    If I had to convert a picture pop indeed art, I'd probably use the filter displays with a hand brushing to simplify, then the filter half-tone.  Here's a crude example of effect - halftone processing requires more working-

  • I would like to find where to go to reset higher capacity for example. 30% for restore points

    I had a person who does some maintenance on my computer and I complained that I didn't have enough of restore points even if you ask for more; He changed the ability to, I think 30% where I could go back probably a month to restore the computer to another... Can U tell me how to get to change this percentage?

    You will find support in the Sub-forum right here: http://answers.microsoft.com/en-us/windows/forum/performance

  • Hello guys, I would like to create a product for a website builder. Any help?

    I am a creator of display for oral care products, and I would like to create a product configurator, so that my clients can customize the model they want, and see how the model looks like with a reactive "modeling."

    So basically it should have different options:

    1. Choose the number of brushes they want on the view (1-9)
    2. Choose the model of brushes they want (12 different available)
    3. Choose the 'extra' part they want (small screen lcd, Panel information or refills showcase)
    4. Choose the position they want for each option (eg. 2 brushes (left) + screen lcd (just after the 2 brushes) + 1 brushes (at the end)

    To give you an idea here is a fast modeling that I did:

    Capture d’écran 2015-12-19 à 09.36.09.png

    The real problem I have is that I don't want to have to create all the possible arrangements

    1 and 2 the best way is to have all the variations in a database and query the database for the corresponding products.

    Then have drop-down lists so that a choice can be made

  • Hello, I am a student and I bought already cs6 (dvd) and would like to ask - is it possible to get an upgrade for cs6 premium and how much it costs and how are they managing?

    Hello

    I am a student and I bought already cs6 (dvd) and would like to ask - is it possible to get an upgrade for cs6 premium

    and how much it costs and how are they managing?

    http://www.Adobe.com/au/products/creativesuite/UpgradeInfo.html

  • Hi, I installed clean El capitan on my Mac and now I would like to create USB bootable, just in case. Should I re-download El Capitan installer from App store and move to applications. I try to write the line: sudo etc. but it works. Any id

    Hi, I installed clean El capitan on my Mac and now I would like to create USB bootable, just in case. Should I re-download El Capitan installer from App store and move to applications. I try to write the next line: "sudo/Applications/Install\ OS\ El\ Capitan.app/Contents/Resources/createinstallmedia--volume/Volumes/NameOfYourUSB--applicationpath/Applications/Install\ OS\ El\ Capitan .app X\ X\ - nointeraction", but it says: "command not found" no idea how to do it correctly. I think I'm missing what Installer applications...

    When you have completed the installation of El Capitan, the Setup program deletes itself. So if you have not copied somewhere else, you will have again the download on the App Store.

  • I would like to create a station that plays a variety

    I would like to create a station myself who plays from the old country, new country, 50s and 60s. I can do it in music Apple?

    There is no way to create a station by selecting several artists. When you first start you must select a type of artist or by genre. However, you can create a station by selecting an artist who best represents a good cut of the type of music you want to listen to. As the songs are played, you can select the star icon and then select "Play more like this" or "play less like this" or "never play in this. Over time your station will be "set" to play music that you really like.

    Also, don't forget that you can create a selection of a few hundreds of songs and perform the same basic function of as an established radio station.

  • I would like to create a reset button

    I would like to create a reset button resetting a counter on my vi. I tried several methods, as seen in the forums, but my only last resets to 0, but as soon as the button is released the number that was displayed when the button has been selected can be seen in the meter box.

    As you can tell I am a very new newbie.

    Any help would be greatly appreciated!

    You're so close.  Wire the output to select your indicator.  Also wire this output to the cable directly above.  Remove the "short circuit".

    The shift register to the left should only go to the Select function.  The result of the Select must go where you put the wire from the registry to offset (the on the right add function).

  • I would like to know the command line options that are available to mspaint. I in bulk of images, I want to open in paint and then save it in jpg format in the paint.

    Hello

    I would like to know the command line options that are available to mspaint.
    I in bulk of images, I want to open in paint and then save it in jpg format in the paint.
    I want a script batch for the above procedure. Can anyone suggest me the script to do the same.

    Thank you
    Bodin

    original title: ms paint command line options

    Neither Windows XP nor paint offers all these capabilities.

    "BinduS" wrote in the new message: * e-mail address is removed from the privacy * _xp...

    Hello

    I would like to know the command line options that are avaulable to mspaint.
    I in bulk of images, I want to open in paint and then save it in jpg format in the paint.
    I want a script batch for the above procedure. Can anyone suggest me the script to do the same.

    Thank you
    Bodin
    - http://answers.microsoft.com/message/04b8dfae-1fa5-42db-81c2-b042652ecfc8
    Meta tags: images; windows_xp

    Tuesday April 10, 2012 08:23:14 + 0000: CreateMessage BinduS

  • I would like to create an editable text field in a page?

    I would like to create an editable text field in a page?

    Check out my tutorial here:

    Fields in edge animate - Tutorial #9

  • Hello I would like to create a Muse site with homepage and a member area with access code to access the other page of the site is possible this? Thank you

    Hello I would like to create a Muse site with homepage and a member area with access code to access the other page of the site is possible this? Thank you

    No. you're looking completely in the wrong place. These things requires a dynamic system that is appropriate like Wordpress, Joomla and so on. That or a paid Business Catalyst Pro account.

    Mylenium

  • can someone help pls. I would like to create a rectangle with a sharp angle and have no idea how.

    can someone help pls. I would like to create a rectangle with a sharp angle and have no idea how. the brown box, is I want what he's watching.1.png

    Use the direct selection (white arrow) to select the right angle lower (or higher) and drag it where you want it to be.

  • I would like to create a plugin for adobe acrobat 9.0 pro...

    I would like to create a plugin for adobe acrobat 9.0 pro to compare pages, delete the same pages and pages of all brand first compared with new document and mark the second document compared to the original pages. I downloaded the adobe 9.0 SDK, but now I don't know how to continue? Visual Studio can I or can I use another program which is a freeware? What other program do you recommend?  How to open a .api file in order to see the code? I put the SDK software files in a specific location?

    1. you will need Visual Studio. Get your first plug-in compilation can be an event, be sure to use a sample project and work with it, exactly.

    2 API files are the work of other programmers. You can't look inside, and trying to do so is a violation of most software licenses.

    3 API files are installed in the Acrobat plug-ins folder.

    4. you won't find samples or code to copy/paste. You should be an experienced C/C++ programmer, you should be familiar with the basics of the PDF ISO 32000-1 file format, and you should be ready to read thousands of pages of documentation.

  • Hi, I have Adobe Acrobat Professional. And I would like to create web forms via Adobe for my site. What I have? or is it included in my Acrobat Professional software?

    Hi, I have Adobe Acrobat Professional. And I would like to create web forms via Adobe for my site. What I have? or is it included in my Acrobat Professional software?

    When you say that web forms, do you mean HTML forms or PDF forms? For web forms, Adobe has a number of products, you can use, including FormsCentral and Dreamweaver. For PDF forms, you can create them with Acrobat.

    If you want to create HTML forms with FormsCentral, which calls the web forms, you will need a subscription for the FormsCentral service. The FormsCentral application that comes with 11 Acrobat is used to create local PDF forms, but if you want to create web forms with him you will need a subscription. Note that there is a free subscription, but it is quite limited.

Maybe you are looking for

  • Intermittent video on Apple TV

    I have two ATV that is connected to the same A / V receiver.  In general, they work fine, except that each of them regularly produces a video signal that turns on and off every second or more.  The video signal, although intermittent, is clear (i.e.

  • Carpet * a DVD-RAM UJ-811 can't be used with some DVD-R

    I have a laptop Toshiba Satellite P10 554 with XP SP2 and a carpet * a DVD-RAM UJ-811. The problem is that a lot of DVD - R (or DVD - RW) discs cannot be used for burning. If I try such a DVD with Nero a get the error message "disc not initialize - d

  • Why is google chrome incomapible with my computer

    Chrome does not open when I run the compatibility that he told me that it is not

  • all my programs want to open iTunes

    I don't know exactly what happened, but all my programs come with a program open through this program and then when I try to open a program it just opens my iTunes, I tried to use system restore, but it used open... I'm not very computer savvy and I

  • access denied to previous default folders of the XP user

    I had a computer crash to do in a blackout during while I was repairing Windows XP.  From there I had to re install Windows XP on another drive.  The files and folders I want are present in the old installation of XP, but I can't get back them.  Acce