Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Basic C++
Message
 
À
06/07/2000 12:55:57
Information générale
Forum:
Visual C++
Catégorie:
Autre
Titre:
Divers
Thread ID:
00388938
Message ID:
00389004
Vues:
19
Thanks Bill < trying not to look at code just yet :-) >

You probably have guessed what I am trying to do, build a launcher for my VFP and VB exe's that at least has the possibility applying a Visual Studio service pack upgrade. We'll see how far I get. It might only end up being a simple launcher.

>Try this link for starters:-
>
>http://devcentral.iftech.com/learning/tutorials/subcpp.asp
>
>If you need help with the Visual C++ IDE then just shout, its a lot easier than you would think (honest!).
>
>To point you in the right direction then the code below was compiled with VC++ 6 SP4 (don't look if you want to do this yourself :-)).
>
>HTH
>Neil
>
>
>
>
>#include
>#include
>
>#include
>
>void main(void)
>{
> FILE *InStream;
> char Filename[_MAX_PATH];
>
> // This assumes sample.txt contains one line with a valid filename.
> if ((InStream = fopen("sample.txt", "r")) != NULL)
> {
> if (fgets(Filename, _MAX_PATH, InStream) == NULL)
> printf("Error trying to open sample.txt\n");
> else
> {
> // Lots of ways to do this bit.
> printf("Attempting to execute %s", Filename);
> WinExec(Filename, SW_SHOWNORMAL);
> }
>
> fclose(InStream);
> }
>}
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform