pinvoke - callback functions

  • Thread starter Thread starter Huseyin Altun
  • Start date Start date
H

Huseyin Altun

I am using VS.NET 2003 C#
I am using a DLL. it has a method "GetSalesItems" This method takes a
fuction pointer. and returns the Sales items via the callback function.

public static extern void GetSalesItems(SalesItemsCallback callback);
public static void GetSalesItem(SalesItem si){

//.....

}

I try to store returned Items in list/collection.. . the method GetSalesItem
must be static. So I dont know how to store and wehre to store returned
sales items.

thanks..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top