Click here to Skip to main content
14,699,719 members
Home » Discussions » C#
   

C#

 
GeneralRe: Regarding security Pin
Henry Minute15-Jun-09 7:08
MemberHenry Minute15-Jun-09 7:08 
QuestionPassing C# Equivalent of a C++ std::vector, to C++ function Pin
sree14-Jun-09 23:48
Membersree14-Jun-09 23:48 
AnswerRe: Passing C# Equivalent of a C++ std::vector, to C++ function Pin
Christian Graus15-Jun-09 0:17
mveChristian Graus15-Jun-09 0:17 
AnswerRe: Passing C# Equivalent of a C++ std::vector, to C++ function Pin
N a v a n e e t h15-Jun-09 0:25
MemberN a v a n e e t h15-Jun-09 0:25 
GeneralRe: Passing C# Equivalent of a C++ std::vector, to C++ function Pin
sree15-Jun-09 2:18
Membersree15-Jun-09 2: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 2:56
MemberN a v a n e e t h15-Jun-09 2:56 
GeneralRe: Passing C# Equivalent of a C++ std::vector, to C++ function Pin
sree15-Jun-09 4:23
Membersree15-Jun-09 4: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 16:52
MemberN a v a n e e t h15-Jun-09 16: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 22:01
Memberkunal.tawde14-Jun-09 22:01 
AnswerRe: pls. help me it's urgent, drop video frames during start/stop button click Pin
molesworth14-Jun-09 23:10
Membermolesworth14-Jun-09 23:10 
GeneralRe: pls. help me it's urgent, drop video frames during start/stop button click Pin
kunal.tawde13-Jul-09 0:39
Memberkunal.tawde13-Jul-09 0:39 
AnswerRe: pls. help me it's urgent, drop video frames during start/stop button click Pin
Nagy Vilmos14-Jun-09 23:11
professionalNagy Vilmos14-Jun-09 23:11 
QuestionAdding Scrolling effect On Windows application. Pin
deepseeindeepsy14-Jun-09 21:38
Memberdeepseeindeepsy14-Jun-09 21:38 
AnswerRe: Adding Scrolling effect On Windows application. Pin
Mycroft Holmes14-Jun-09 22:06
professionalMycroft Holmes14-Jun-09 22:06 
QuestionGrid View Event.. Pin
Rahul DSG14-Jun-09 20:55
MemberRahul DSG14-Jun-09 20:55 
AnswerRe: Grid View Event.. Pin
Mycroft Holmes14-Jun-09 22:03
professionalMycroft Holmes14-Jun-09 22:03 
GeneralRe: Grid View Event.. Pin
Rahul DSG14-Jun-09 22:31
MemberRahul DSG14-Jun-09 22:31 
AnswerRe: Grid View Event.. Pin
deepseeindeepsy14-Jun-09 22:49
Memberdeepseeindeepsy14-Jun-09 22:49 
GeneralRe: Grid View Event.. Pin
Rahul DSG14-Jun-09 22:56
MemberRahul DSG14-Jun-09 22:56 
GeneralRe: Grid View Event.. Pin
Mycroft Holmes14-Jun-09 23:00
professionalMycroft Holmes14-Jun-09 23:00 
GeneralRe: Grid View Event.. Pin
deepseeindeepsy14-Jun-09 23:02
Memberdeepseeindeepsy14-Jun-09 23:02 
AnswerRe: Grid View Event.. Pin
Henry Minute15-Jun-09 1:14
MemberHenry Minute15-Jun-09 1:14 
AnswerRe: Grid View Event.. Pin
Kaushal Arora15-Jun-09 3:53
MemberKaushal Arora15-Jun-09 3:53 
QuestionWhy I can't get the WM_CREATE msg in the PreFilterMessage method Pin
hwswin14-Jun-09 20:49
Memberhwswin14-Jun-09 20: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 21:58
MemberN a v a n e e t h14-Jun-09 21: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.