Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OCX in Visual C#

Status
Not open for further replies.

ceodav

Programmer
Feb 21, 2003
106
IT
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top