问题? [英] Problem?

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

问题描述




几天前我发布了这个,但似乎没有人回复任何帮助

赞赏。


我知道我必须序列化我的班级,


我怎样才能从offsetTextures中取出值并将其添加到

文件的开头,以获取纹理数据开头的偏移量。


typedef struct

{

float x0 ,y0,z0;

浮点数x1,y1,z1;

浮点数x2,y2,z2;

unsigned char r0,g0,b0 ;

}三角形;


typedef struct

{

char Id [4];

char Ver;

char header [90];

unsigned int offsetTextures;

TRIANGLE tri [];

} MyFile;


非常感谢。


Ady。

解决方案

这看起来像C ++,而不是C#,所以你可以在另一个

新闻组中找到更多帮助。


那就是说,你从哪个图书馆获得序列化课程?

MFC?


问候,


贾斯珀肯特


***通过开发人员指南 http:// www发送.developersdex.com ***

不要只是参加USENET ......获得奖励!


不,我正在尝试编写一个C#类,可以根据该文件结构处理数据中的加载,但无法找到解决方案来取出

的偏移量和将它添加到文件的开头。


谢谢


Ady。


"贾斯珀肯特" < JA ********* @ hotmail.com>在消息中写道

新闻:O1 ************* @ TK2MSFTNGP11.phx.gbl ...

这看起来像C ++,而不是C#,所以你可以在另一个
新闻组中找到更多的帮助。

那就是说,你从哪个图书馆获得序列化课程?
MFC?

Jasper Kent

***通过Developersdex发送 http://www.developersdex.com ***
不要只是参加USENET ......获得奖励!



你能用C#写出你的课程示例,以便更清楚地了解

问题。


谢谢,


Jasper Kent


***通过Developersdex发送 http://www.developersdex.com ***

不要只是参加USENET ......获得奖励!

Hi,

I posted this a few days ago but it seems no one has replied any help much
appreciated.

I know that i have to serialise my class,

How could I pull out the value off offsetTextures and add it on to the
beginning of the file to get the offset to the start of my texture data.

typedef struct
{
float x0, y0, z0;
float x1, y1, z1;
float x2, y2, z2;
unsigned char r0,g0,b0;
} TRIANGLE;

typedef struct
{
char Id[4];
char Ver;
char header[90];
unsigned int offsetTextures;
TRIANGLE tri[];
} MyFile;

an example would be much appreciated.

Ady.

解决方案

This looks like C++, not C#, so you may find more help in a different
newsgroup.

That said, what library are you getting your serialization class from?
MFC?

Regards,

Jasper Kent

*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!


No, i am trying to write a C# class that can handle loading in the data
based on that file structure, but cannot find a solution to pull out an
offset and add it onto the beggining of the file.

Thanks

Ady.

"Jasper Kent" <ja*********@hotmail.com> wrote in message
news:O1*************@TK2MSFTNGP11.phx.gbl...

This looks like C++, not C#, so you may find more help in a different
newsgroup.

That said, what library are you getting your serialization class from?
MFC?

Regards,

Jasper Kent

*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!



Can you write out your class examples in C#, to give a clearer idea of
the problem.

Thanks,

Jasper Kent

*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!


这篇关于问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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