[C++] direct html bestand openen

Pagina: 1
Acties:

  • Tusk
  • Registratie: Juni 2001
  • Laatst online: 17-08 09:40

Tusk

Sticky Bomb likes you!

Topicstarter
het gaat om C++ borland 6

ik wil dus een html bestand openen (dient als help file)
dus klik op een button en explorer opent met voor gedefineerde html file

ik heb al gekeken met open diaglog en in de help staat ook niets wat me verder heeft geholpen.


*I asked for a shotgun, not an anti-aircraft!
- shotgun? that must be the guns that fire a shot....
*yes.. you must be the brains


  • BM
  • Registratie: September 2001
  • Laatst online: 23-08 09:25

BM

Admin Softe Goederen
code:
1
ShellExecute(Application.Handle,'open',PChar(OpenDialog1.FileName),nil,nil,SW_MAXIMIZE);


Dit is de manier die ik gebruik in Delphi, maar aangezien ShellExecute een Windows functie is, zal deze niet veel afwijken van de C++ manier.

Xbox
Even the dark has a silver lining


Verwijderd

misschien heb je hier wat aan:
http://www.ashzfall.com/p...n/browsercall_source.html

(zelfde oplossing als die van speedaddict)

  • Tusk
  • Registratie: Juni 2001
  • Laatst online: 17-08 09:40

Tusk

Sticky Bomb likes you!

Topicstarter
thx beide. ff wat proberen

edit: thx het werkt :)

ShellExecute(NULL,"open","www.google.com",NULL,NULL,SW_SHOWNORMAL);

[ Voor 66% gewijzigd door Tusk op 06-04-2003 16:35 ]


*I asked for a shotgun, not an anti-aircraft!
- shotgun? that must be the guns that fire a shot....
*yes.. you must be the brains