By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,962 Members | 1,998 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,962 IT Pros & Developers. It's quick & easy.

a question about c#, vb and

P: n/a
I have a class defined in C#, which read the data into the memory

//c# code
public class ModelDataIO
public: Double [] m_data;

I have a c++ code which process the data
public __gc class Model
public: bool train(Double *pData, int nSize);

Then I call the code in vb
dim mod as Model
dim mio as ModelDataIO
'load the data in....
mod.train(mio.m_data(0), mio.m_data.Length)

It compiles ok, but incurs a run time error,
It is clear that passing mio.m_data(0), is not correct, but It will be
correct for an array declared in vb

eg: dim a(100) as Double
mod.tran(a(0),100) will be correct.

Can anyone tell me how to fix the problem?

Thanks in advance

Mar 22 '06 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Sorry, it is caused by other problem.

Mar 22 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.