Hi,
i want to write an OCX using Visual C# 2005. I'm new to C# but i know well the C++.
I started a new project and choosen Window Control Library.
Ok i need to display data contained in a structure passed by a memeber function son in C++.
But i'm stucked on three problems.
1)how to import the DLL (of course i can't use the .h file for the methods)
2)how to pass a pointer to my structure which i can't know since i don't have the .h file
3)I need to get a pointer to another structure which is a dynamic one, so the i don't know the size. Should i reply all the code from the DLL to initialize this dynamic obj inside mi cs file?
I would post another question....
If i make this OCX or dll in C#, can i use it on another project written using Visual C 6?
any help would be very appreciated
thanks
D.
i want to write an OCX using Visual C# 2005. I'm new to C# but i know well the C++.
I started a new project and choosen Window Control Library.
Ok i need to display data contained in a structure passed by a memeber function son in C++.
But i'm stucked on three problems.
1)how to import the DLL (of course i can't use the .h file for the methods)
2)how to pass a pointer to my structure which i can't know since i don't have the .h file
3)I need to get a pointer to another structure which is a dynamic one, so the i don't know the size. Should i reply all the code from the DLL to initialize this dynamic obj inside mi cs file?
I would post another question....
If i make this OCX or dll in C#, can i use it on another project written using Visual C 6?
any help would be very appreciated
thanks
D.