在给出示例的getpackagefullname msdn中有错误 [英] having error in getpackagefullname msdn given example

查看:126
本文介绍了在给出示例的getpackagefullname msdn中有错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果条件argc值为1,每当我进行调试但控制不进行循环条件时。



示例链接:

http://msdn.microsoft.com/en- us / library / windows / desktop / hh446605(v = vs.85).aspx [ ^ ]

In if condition argc value will be 1 whenever i do debug but control is not going for loop condition.

example link:
http://msdn.microsoft.com/en-us/library/windows/desktop/hh446605(v=vs.85).aspx[^]

推荐答案

你已经在面对Getpackagefullname API(MSDN)中的错误87 [ ^ ]。请不要重新发布,如果您有其他信息,请编辑原始问题。



你可以从提供我反复要求你的信息开始。
You already asked this question at Facing error 87 in Getpackagefullname API (MSDN)[^]. Please do not repost, if you have additional information then please edit your original question.

You could start by providing the information that I repeatedly asked you for.


我想你参考这部分内容示例代码:

I think you refer to this part of the example code:
if (argc <= 1)
    return ShowUsage();
for (int i=1; i<argc;>



如果你知道C主函数参数的含义,你就不会问这个问题。 argc 是在命令行上传递的参数数量,在 argv 中提供,其中第一个参数 argv [0] 是程序的名称(如果已知)或空字符串。所以 argc 将始终至少为1.



如果你希望 argc 大于1那么做什么 ShowUsage 打印出来:

传递一个或多个附加命令行参数(示例程序的PID编号)。


If you would know the meaning of the C main function arguments, you would not ask this question. argc is the number of arguments passed on the command line and provided in argv where the first argument argv[0] is the name of the program if known or an empty string. So argc will be always at least 1.

If you want argc to be greater than 1 do what ShowUsage prints out:
Pass one or more additional command line arguments (PID numbers for the example program).


这篇关于在给出示例的getpackagefullname msdn中有错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆