
Moderátor: Moderátoři Živě.cz
#include <iostream>
#include <string>
#include <windows.h>
#include <shellapi.h>
int main()
{
ShellExecute(NULL, "open", "http://www.neco.nic/", NULL, NULL, SW_SHOWNORMAL);
system("pause");
return 0;
}
// Sekce01b.cpp : implementation file
//
#include "stdafx.h"
#include "MyProgram.h"
#include "Sekce01b.h"
#include "afxdialogex.h"
// Sekce01b dialog
IMPLEMENT_DYNAMIC(Sekce01b, CDialog)
Sekce01b::Sekce01b(CWnd* pParent /*=NULL*/)
: CDialog(Sekce01b::IDD, pParent)
{
EnableAutomation();
}
Sekce01b::~Sekce01b()
{
}
void Sekce01b::OnFinalRelease()
{
// When the last reference for an automation object is released
// OnFinalRelease is called. The base class will automatically
// deletes the object. Add additional cleanup required for your
// object before calling the base class.
CDialog::OnFinalRelease();
}
void Sekce01b::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(Sekce01b, CDialog)
ON_BN_CLICKED(IDC_MFCBUTTON1, &Sekce01b::OnBnClickedMfcbutton1)
END_MESSAGE_MAP()
BEGIN_DISPATCH_MAP(Sekce01b, CDialog)
END_DISPATCH_MAP()
// Note: we add support for IID_ISekce01b to support typesafe binding
// from VBA. This IID must match the GUID that is attached to the
// dispinterface in the .IDL file.
// {CC0DC276-F26A-4171-ABB4-541CE5661EBA}
static const IID IID_ISekce01b =
{ 0xCC0DC276, 0xF26A, 0x4171, { 0xAB, 0xB4, 0x54, 0x1C, 0xE5, 0x66, 0x1E, 0xBA } };
BEGIN_INTERFACE_MAP(Sekce01b, CDialog)
INTERFACE_PART(Sekce01b, IID_ISekce01b, Dispatch)
END_INTERFACE_MAP()
// Sekce01b message handlers
void Sekce01b::OnBnClickedMfcbutton1()
{
// TODO: Add your control notification handler code here
}
Uživatelé procházející toto fórum: Žádní registrovaní uživatelé a 0 návštevníků