Annoyances.org
Home » Windows XP Discussion Forum » Message 1144431386 Search | Help | Home
  
Tip: Run a free scan for common Windows errors ad

re: How to make shortcut run correctly!
Friday, April 7, 2006 at 10:36 am
Windows XP Annoyances Discussion Forum
Posted by geek9pm (1438 messages posted)


I will try to tell you. It does work, but you do not understand how it works. The program, by itself, does do have all the features you want.
The enviroment provides a place for your porgram, when you put it into a different envikroment, there are things yhou do no know about.
The program will work inside the vidual studio enviroment.
It is NOT a qulified program to work in the Windows envikroment as a "stand alone". Visual Studio also creates many other parts of the code for you. In Windows, it is not enough to have a bit of code, the code must be jhave other components that will be joined with a library and then made into a file of type EXE.
If you do not follow the rules for making program, it does not work.
some code will look OK inside the envikroment, and it can be good code, but it is not complete..
In Windows XP there are strict requiements for a program to run freely without a helper or a "sheel".
The development enviroment of sisual studio is a enviroment seperate and inside the envikroment of Windows XP.
For example your program uses "conio". Well, inside Visual Studio it ddoes not really use "conio" as would a valid XP program would. Visual Studio provides a envikromnet the offers a substitute for conio.
You need to pay more attention to the documentation. And the results you get depend on version of C++ you are using, etc.

Geek9pm




On Friday, April 7, 2006 at 12:20 am, Thanhbinh wrote:
>Thank you very much!
>But I think I should tell my problem more clearly.Don't care about the app I have,
>only care about this:
>the prgram written in VC++(type Win 32 Console):
>mypro.cpp
>#include "stdafx.h"
>#include "conio.h"
>int main(int argc, char* argv[])
>{
> int n;
> printf("Hello World!\n");
> scanf("%d",&n);
> printf("%d",n);
> getch();
> return 0;
>}
>
>I make a shortcut to mypro.exe(in Debug)
>run the shortcut from cmd (run the .lnk from cmd)
>You will see the difference between run mypro.exe and run the shortcut, both from
>cmd.What's reason??????
>Why are they different.What make the difference.
>The problem I have when I write my application is maybe the same.If you can answer
>the question above, I can solve my problem.


Written in response to:
re: How to make shortcut run correctly! (Thanhbinh: Friday, April 7, 2006 at 12:20 am)

Responses to this message:
*re: How to make shortcut run correctly! (Thanhbinh: Friday, April 7, 2006 at 6:40 pm)

All messages in this thread [show all]
-How to make shortcut run correctly! (Thanhbinh: Wed, Apr 5, 2006, 7:17 pm)
-re: How to make shortcut run correctly! (geek9pm: Wed, Apr 5, 2006, 10:07 pm)
-re: How to make shortcut run correctly! (Thanhbinh: Thu, Apr 6, 2006, 1:33 am)
-re: How to make shortcut run correctly! (geek9pm: Thu, Apr 6, 2006, 4:29 am)
-re: How to make shortcut run correctly! (Thanhbinh: Thu, Apr 6, 2006, 5:27 am)
-re: How to make shortcut run correctly! (geek9pm: Thu, Apr 6, 2006, 8:02 am)
-re: How to make shortcut run correctly! (Thanhbinh: Thu, Apr 6, 2006, 7:19 pm)
-re: How to make shortcut run correctly! (geek9pm: Thu, Apr 6, 2006, 11:21 pm)
-re: How to make shortcut run correctly! (Thanhbinh: Fri, Apr 7, 2006, 12:20 am)
-re: How to make shortcut run correctly! (geek9pm: Fri, Apr 7, 2006, 10:36 am)
*re: How to make shortcut run correctly! (Thanhbinh: Fri, Apr 7, 2006, 6:40 pm)
Return to the Windows XP Discussion Forum


All content at Annoyances.org is Copyright © 1995-2009 Creative Elementtm All rights reserved.
Please do not plagiarize; redistributing these pages without permission is strictly prohibited.