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.
|
All messages in this thread [show all]
 |  |  |  |  |  |  |  |  |  | re: How to make shortcut run correctly! (geek9pm: Fri, Apr 7, 2006, 10:36 am) |
| |
| |
Return to the Windows XP Discussion Forum
|
|