Skocz do zawartości

Zablokowane Linki :DD


Rekomendowane odpowiedzi

Opublikowano

shell execute

Opublikowano

A nie wystarczy

ShellExecute(NULL, "open","http://adres-strony",NULL,NULL,SW_SHOWNORMAL);

?

 

edit: chociaż ta wersja wyżej od Makarego jest pewniejsza w sumie, jak tak poczytałem na sieci o problemach z działaniem tej funkcji :P

Opublikowano

To do C++ jest dokumentacja ??

A propo, twój kod niedziała albo coś źle robie :/

 

Może niemam jakiś bibjotek ??

 

1>------ Build started: Project: Dark Orbit Quick Start, Configuration: Debug Win32 ------
1>  Dark Orbit Quick Start.cpp
1>c:\documents and settings\fg\moje dokumenty\visual studio 2010\projects\dark orbit quick start\dark orbit quick start\Form1.h(84): error C2065: 'NULL' : undeclared identifier
1>c:\documents and settings\fg\moje dokumenty\visual studio 2010\projects\dark orbit quick start\dark orbit quick start\Form1.h(84): error C2065: 'NULL' : undeclared identifier
1>c:\documents and settings\fg\moje dokumenty\visual studio 2010\projects\dark orbit quick start\dark orbit quick start\Form1.h(84): error C2065: 'NULL' : undeclared identifier
1>c:\documents and settings\fg\moje dokumenty\visual studio 2010\projects\dark orbit quick start\dark orbit quick start\Form1.h(84): error C2065: 'SW_SHOWNORMAL' : undeclared identifier
1>c:\documents and settings\fg\moje dokumenty\visual studio 2010\projects\dark orbit quick start\dark orbit quick start\Form1.h(84): error C3861: 'ShellExecute': identifier not found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Opublikowano

To po dożuceniu mam:

\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'

'Dark Orbit Quick Start.exe' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'

'Dark Orbit Quick Start.exe' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'

The program '[3924] Dark Orbit Quick Start.exe: Managed (v4.0.30319)' has exited with code 0 (0x0).

 

1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(83): error C2086: 'int EXTERN_C' : redefinition
1>          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(59) : see declaration of 'EXTERN_C'
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(83): error C2146: syntax error : missing ';' before identifier 'HINSTANCE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(83): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(83): error C2086: 'int DECLSPEC_IMPORT' : redefinition
1>          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(59) : see declaration of 'DECLSPEC_IMPORT'
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(83): error C2146: syntax error : missing ';' before identifier 'STDAPICALLTYPE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(83): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(83): error C2086: 'int HINSTANCE' : redefinition
1>          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(71) : see declaration of 'HINSTANCE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(83): error C2146: syntax error : missing ';' before identifier 'FindExecutableW'
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(83): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(83): error C2086: 'int STDAPICALLTYPE' : redefinition
1>          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(59) : see declaration of 'STDAPICALLTYPE'
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(83): error C2065: 'LPCWSTR' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(83): error C2146: syntax error : missing ')' before identifier 'lpFile'
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(83): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(83): error C2059: syntax error : ')'
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(89): error C2146: syntax error : missing ';' before identifier 'DECLSPEC_IMPORT'
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(89): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(89): error C2086: 'int EXTERN_C' : redefinition
1>          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(59) : see declaration of 'EXTERN_C'
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(89): error C2146: syntax error : missing ';' before identifier 'LPWSTR'
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(89): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(89): error C2086: 'int DECLSPEC_IMPORT' : redefinition
1>          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(59) : see declaration of 'DECLSPEC_IMPORT'
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(89): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(89): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(89): error C2146: syntax error : missing ';' before identifier 'CommandLineToArgvW'
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(89): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(89): error C2040: 'STDAPICALLTYPE' : 'int *' differs in levels of indirection from 'int'
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(89): error C2065: 'LPCWSTR' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(89): error C2146: syntax error : missing ')' before identifier 'lpCmdLine'
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\shellapi.h(89): fatal error C1003: error count exceeds 100; stopping compilation
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

Pracuje w Widow form aplication

Opublikowano

to jak pracujesz w .NET, to używaj tychże jego assembly windowsowych.

 

http://www.pcreview.co.uk/forums/equivalen...t-t3047033.html

Opublikowano

nie. poszukaj sobie. to nie jest trudne.

Opublikowano

Tylko czemu nikt mi niepotrafi dobrze powiedzieć, żaden z waszych przykładów niedziała... Co za problem zrobić przykład skoro to takie proste ??

 

PS:: MI TO JEST BARDZO PILNIE POTRZEBNE !!!

Opublikowano

Tobie nie da się pomóc. Zabierasz się za coś o czym nie masz zielonego pojęcia i oczekujesz porządnej lektury od ludzi do których dzieli Cię przepaść poziomów. Mierz zamiary na możliwości.

Opublikowano

Ludzie, czy odsyłacze to tak dużo, chce zrobić buttony z odsyłaczami pierwsze umiem odsyłaczy nie, czy to takie trudne dać tut ??

 

A po za tym nie wyglądasz mi za osobnika mądrzejszego...

Opublikowano

Widać dla Ciebie to dużo skoro nie jesteś w stanie tego zrobić.

 

Odpowiedź już padła. Jeśli nie jesteś w stanie z niej skorzystać to zajmij się czymś innym.

Opublikowano
A po za tym nie wyglądasz mi za osobnika mądrzejszego...

A ty tym bardziej...

 

Poszukaj jak tworzyć buttom, a następnie dodaj do niego akcję(otwieranie strony)(kod wyżej), wszystko jest na google.

Opublikowano

Cytując wielkiego uczonego: <Cytat>

 

Czy ktoś do holery umie to zrobić czy wszyscy tylko udają, bo nikt niepotrafi mi pomuc, czy to takie trudne??

 

Gnysek, liczę na cb :D

Tylko ty w VC++ potrafisz coś mądrze wytłumaczyć :/

Bo na innych nie ma co...

EDIT niezauważyłem postu 2xwyrzej

Edit2: Button i akcję kliknięcia umiem, aż tak głupi niejestem

Opublikowano
Edit2: Button i akcję kliknięcia umiem, aż tak głupi niejestem

To co za problem podstawić pod event to co ci wyżej podałem?

LONG r = ShellExecute(NULL, "open", "http://www.microsoft.com", NULL, NULL, SW_SHOWNORMAL);

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...