Click here to Skip to main content
15,897,718 members
Home / Discussions / C#
   

C#

 
GeneralRe: Regarding security Pin
Henry Minute15-Jun-09 6:08
Henry Minute15-Jun-09 6:08 
QuestionPassing C# Equivalent of a C++ std::vector, to C++ function Pin
sree14-Jun-09 22:48
sree14-Jun-09 22:48 
AnswerRe: Passing C# Equivalent of a C++ std::vector, to C++ function Pin
Christian Graus14-Jun-09 23:17
protectorChristian Graus14-Jun-09 23:17 
AnswerRe: Passing C# Equivalent of a C++ std::vector, to C++ function Pin
N a v a n e e t h14-Jun-09 23:25
N a v a n e e t h14-Jun-09 23:25 
GeneralRe: Passing C# Equivalent of a C++ std::vector, to C++ function Pin
sree15-Jun-09 1:18
sree15-Jun-09 1:18 
GeneralRe: Passing C# Equivalent of a C++ std::vector, to C++ function Pin
N a v a n e e t h15-Jun-09 1:56
N a v a n e e t h15-Jun-09 1:56 
GeneralRe: Passing C# Equivalent of a C++ std::vector, to C++ function Pin
sree15-Jun-09 3:23
sree15-Jun-09 3:23 
GeneralRe: Passing C# Equivalent of a C++ std::vector, to C++ function Pin
N a v a n e e t h15-Jun-09 15:52
N a v a n e e t h15-Jun-09 15:52 
sree wrote:
I want to pass the vector from c# program using DllImport.


Well, I think you haven't got what I said so far. To reiterate, you can't pass a vector from C# using DllImport. For doing that you have to use C++/CLI to create a proxy class between your C# and C++ application. Follow the below steps.

1 - Create a C++/CLI library project. Add reference to the native DLL here
2 - Write a function that takes List(T)
3 - Iterate over the elements in this list, create a vector and push each item to it.
4 - Now call the native C++ method by passing this vector.

Since List(T) is a managed type and C++/CLI produces mixed mode assembly, you will be able to access it from C# easily. Just refer the C++/CLI dll, create a List(T) from C# project and pass to the method.

*T will the type of the object which you want to pass.


Questionpls. help me it's urgent, drop video frames during start/stop button click Pin
kunal.tawde14-Jun-09 21:01
kunal.tawde14-Jun-09 21:01 
AnswerRe: pls. help me it's urgent, drop video frames during start/stop button click Pin
molesworth14-Jun-09 22:10
molesworth14-Jun-09 22:10 
GeneralRe: pls. help me it's urgent, drop video frames during start/stop button click Pin
kunal.tawde12-Jul-09 23:39
kunal.tawde12-Jul-09 23:39 
AnswerRe: pls. help me it's urgent, drop video frames during start/stop button click Pin
Nagy Vilmos14-Jun-09 22:11
professionalNagy Vilmos14-Jun-09 22:11 
QuestionAdding Scrolling effect On Windows application. Pin
deepseeindeepsy14-Jun-09 20:38
deepseeindeepsy14-Jun-09 20:38 
AnswerRe: Adding Scrolling effect On Windows application. Pin
Mycroft Holmes14-Jun-09 21:06
professionalMycroft Holmes14-Jun-09 21:06 
QuestionGrid View Event.. Pin
Rahul DSG14-Jun-09 19:55
Rahul DSG14-Jun-09 19:55 
AnswerRe: Grid View Event.. Pin
Mycroft Holmes14-Jun-09 21:03
professionalMycroft Holmes14-Jun-09 21:03 
GeneralRe: Grid View Event.. Pin
Rahul DSG14-Jun-09 21:31
Rahul DSG14-Jun-09 21:31 
AnswerRe: Grid View Event.. Pin
deepseeindeepsy14-Jun-09 21:49
deepseeindeepsy14-Jun-09 21:49 
GeneralRe: Grid View Event.. Pin
Rahul DSG14-Jun-09 21:56
Rahul DSG14-Jun-09 21:56 
GeneralRe: Grid View Event.. Pin
Mycroft Holmes14-Jun-09 22:00
professionalMycroft Holmes14-Jun-09 22:00 
GeneralRe: Grid View Event.. Pin
deepseeindeepsy14-Jun-09 22:02
deepseeindeepsy14-Jun-09 22:02 
AnswerRe: Grid View Event.. Pin
Henry Minute15-Jun-09 0:14
Henry Minute15-Jun-09 0:14 
AnswerRe: Grid View Event.. Pin
Kaushal Arora15-Jun-09 2:53
Kaushal Arora15-Jun-09 2:53 
QuestionWhy I can't get the WM_CREATE msg in the PreFilterMessage method Pin
hwswin14-Jun-09 19:49
hwswin14-Jun-09 19:49 
AnswerRe: Why I can't get the WM_CREATE msg in the PreFilterMessage method Pin
N a v a n e e t h14-Jun-09 20:58
N a v a n e e t h14-Jun-09 20:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.