11-26-2006 08:37 PM
11-27-2006 12:41 AM
Hi,
Pass the information via the arguments of the exe file.
eg
c:\MyAppPath\MyApp.exe SN Comcode would be the command line you would use to invoke the exe.
In your application, you would pickup SN and Comcode from the values in argv which is your second parameter to main()
therefore argv[0] = MyApp.exe, argv[1] = SN and argv[2] = Comcode.
The first parameter of main() is the number of element to argv, which for my example would be 3.
Hope this helps
Regards
Ray Farmer
11-27-2006 06:57 PM
Hi Farmer
Now I have no environment to implement your idea due to the running product line.
I have got your mean that I shoule transfer parameters as C entry point, main ( argv, argc), am I right?
In fact I do not validate the source code pass SN and ComCode as your mean, because it's the custom's, I do not have source code.
In other words, source code may be use "scanf" to accept the parameter and implement actions, maybe other more method.
Sorry for this is only my thought without no action.
I will execute1 your advice ASAP.
Thanks a lot.
Farmer