c#,赢取表格申请 [英] c#, win form application

查看:71
本文介绍了c#,赢取表格申请的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HELLO EVERY BODY我试过通过编写以下c#代码来处理链接精灵jpeg相机:------------- ------------ - 我的PROBELMS是:1-当我发送拍摄pic命令并想直接读取jpeg文件内容而不读取大小时,结果是一个大小为0的图片!!虽然读取jpeg文件内容命令不依赖于读取JPEG文件大小命令!! 2-如果我在发送读取JPEG文件大小命令后成功拍照..有时图片完整..有时图片不完整:( 3-我没有成功连续拍摄只有2张图片>>>我不知道如何克服这些问题...我需要帮助和建议......:\谢谢。

解决方案

请看我对这个问题的评论。



你真正需要什么?阅读本文:http://en.wikipedia.org/wiki/Anti-pattern#Programming [ ^ ]。



我给你链接到编程反模式,因为这是你的问题,我可以立即看到,但你也应该看看整篇文章。所以,你需要从识别你的代码中的反模式开始,并学习如何elim你会受到一大堆反模式的影响。



此外,你严重违反了这个基本原则:http://en.wikipedia.org/wiki/Don%27t_repeat_yourself [ ^ ]。



如果它分散注意力并不是太糟糕你解决与问题相关的问题。如果你继续以你刚才展示的风格进行开发,不仅这种经验对你没有帮助,也会损害你开始编程的机会。现在,它还不算太晚。



祝你好运,

-SA

HELLO EVERY BODY I''ve tried to deal with link sprite jpeg camera by writing the following c# code : ------------- ------------- MY PROBELMS ARE : 1- when I send take pic command and want to read the jpeg file contents directly without reading the size the result is a pic whith 0 size !! although " read jpeg file contents " command does not depend on " Read JPEG file size " command !! 2- If I success to take a picture after sending " Read JPEG file size " command .. sometimes the picture is complete .. sometimes the picture is not complete :( 3- I haven''t succeeded to take continuous shots only 2 pictures >>> I don''t know how to overcome these problems ... I need the help and advice ... :\ Thanks.

解决方案

Please see my comments to the question.

What do you really need? Read this: http://en.wikipedia.org/wiki/Anti-pattern#Programming[^].

I gave you the link to the "Programming" anti-patterns, because this is your problem I can see immediately, but you should also look at the whole article. So, you need to start with identification of the anti-patterns in your code and learning how to eliminate them. You suffer from a whole bunch of those anti-pattern.

In addition, you heavily violate this very basic principle: http://en.wikipedia.org/wiki/Don%27t_repeat_yourself[^].

It''s not too bad if it distract you from solving your problem related to your question. If you continue developing in the style you just demonstrating, not only this experience won''t help you, it would harm your chances to start programming. Right now, it''s not too late.

Good luck,
—SA


这篇关于c#,赢取表格申请的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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