RPCGEN的新功能:main()如何成为服务器存根的一部分? [英] New to RPCGEN: How main() is a part of server stub?

查看:71
本文介绍了RPCGEN的新功能:main()如何成为服务器存根的一部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部,



我是RPC新手。我正在经历一个旧服务器,并希望修改它的参数方式。如果我在服务器中搜索main(),它将在文件调用foo_svc.c中定义。并且它表示不会修改从RPCGen生成的文件。如果我查看foo.x文件,我会看到foo_svc.c中的许多函数的规范,但是foo.x没有main()的概念。 main()如何出现在foo_svc.c中以及如何修改它。



谢谢RS

解决方案

< blockquote> foo_svc.c seem由MIDL编译器生成,所以不要碰它!!!

而不是你可以改变项目的idl文件。要保证你总是有适当的备份。



你最好在几个小时后阅读有关MIDL的信息:



IDL文件的基础知识 [ ^ ]



http://msdn.microsoft .com / zh-CN / library / windows / desktop / aa379010%28v = vs.85%29.aspx [ ^ ]



在遇到麻烦之前,最好花时间学习这些东西; - )


All,

I am new to RPC. I was going through an old server and wanted to modified the way it takes arguments. If I search for main() in the server, it is defined inside a file call foo_svc.c. And it says not to modify the file as it is generated from RPCGen. If I look into foo.x file, I see specifications for many functions which are there in foo_svc.c as well but foo.x has no notion of main(). How is main() present in foo_svc.c and how can I modify it.

Thanks R S

解决方案

foo_svc.c seesm to be generated by the MIDL-compiler so dont touch it!!!
Instead of that you can change the idl files of your project. Be shure that you always a proper backup.

You better read at first some hours about the MIDL:

Basics of an IDL file[^]

http://msdn.microsoft.com/en-us/library/windows/desktop/aa379010%28v=vs.85%29.aspx[^]

Better invest time in learning that stuff, BEFORE you run into trouble ;-)


这篇关于RPCGEN的新功能:main()如何成为服务器存根的一部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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