|
-
December 13th, 2009, 11:17 PM
#1
dynamic array of delegate void methods
hi im new to c++ and i done a few project's in c# java VB etc and im trying to work out how to get an dynamic array of delegate void methods i have some code in c# to explain what im trying to do and some how convert it to unmanaged c++.
public delegate void Action(List<int> internalcmd, List<byte> initialdata);
public List<Action> commandarray = new List<Action>();
commandarray.Add(hello(internalcmd, initialdata));
iv done a little research and you can use vectors instead of list array. but im not too sure about how to use a delegate or function pointer.
i dont know what would be suit me. i know c++/clr has delegates but wouldnt it best suit me to use native c++ code.
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|