Click here to Skip to main content
15,922,894 members
Home / Discussions / C#
   

C#

 
GeneralWrong dimensions. Pin
6-Jul-04 21:26
suss6-Jul-04 21:26 
GeneralRe: Wrong dimensions. Pin
Hesham Amin6-Jul-04 22:55
Hesham Amin6-Jul-04 22:55 
GeneralRe: Wrong dimensions. Pin
Nick Z.6-Jul-04 23:28
Nick Z.6-Jul-04 23:28 
GeneralRe: Wrong dimensions. Pin
Heath Stewart7-Jul-04 5:27
protectorHeath Stewart7-Jul-04 5:27 
GeneralRe: Wrong dimensions. Pin
Nick Z.6-Jul-04 23:44
Nick Z.6-Jul-04 23:44 
GeneralMicrosoft wrote : filters property pages Pin
hpAng6-Jul-04 20:48
hpAng6-Jul-04 20:48 
GeneralRe: Microsoft wrote : filters property pages Pin
hpAng6-Jul-04 21:13
hpAng6-Jul-04 21:13 
GeneralRe: Microsoft wrote : filters property pages Pin
Heath Stewart7-Jul-04 5:23
protectorHeath Stewart7-Jul-04 5:23 
Welcome to the world of COM interop in .NET. You must declare the interfaces in managed code, using the same GUIDs (IIDs for interfaces, CLSIDs for classes) in the GuidAttribute, define the methods in the same order and/or with the same DISPIDs (using the DispIdAttribute),etc.

You must also P/Invoke APIs like OleCreatePropertyFrame that the same you linked (in the other post) uses.

Before just jumping into it, you really must read the .NET Framework SDK documentation covering these topics. Read Interoperating with Unmanaged Code[^] and the class documentation[^] for the System.Runtime.InteropServices namespace. For example, the Marshal class has static methods that can be very helpful in marshaling structs, alloc'ing and freeing memory, and more.

 

Microsoft MVP, Visual C#
My Articles
QuestionHow to Prevent decompile or dis-assembly c# project (.NET)? Pin
Anonymous6-Jul-04 20:07
Anonymous6-Jul-04 20:07 
AnswerRe: How to Prevent decompile or dis-assembly c# project (.NET)? Pin
Colin Angus Mackay7-Jul-04 0:24
Colin Angus Mackay7-Jul-04 0:24 
GeneralRe: How to Prevent decompile or dis-assembly c# project (.NET)? Pin
Heath Stewart7-Jul-04 5:17
protectorHeath Stewart7-Jul-04 5:17 
Answernot only you that face this problem :) Pin
Hesham Amin7-Jul-04 4:18
Hesham Amin7-Jul-04 4:18 
GeneralMemory usage of 1 form Pin
dev1t6-Jul-04 17:25
dev1t6-Jul-04 17:25 
GeneralRe: Memory usage of 1 form Pin
insurgentpyro6-Jul-04 18:57
insurgentpyro6-Jul-04 18:57 
GeneralRe: Memory usage of 1 form Pin
dev1t7-Jul-04 3:01
dev1t7-Jul-04 3:01 
GeneralRe: Memory usage of 1 form Pin
Peter Vertes7-Jul-04 3:48
Peter Vertes7-Jul-04 3:48 
GeneralRe: Memory usage of 1 form Pin
Dave Kreskowiak7-Jul-04 4:53
mveDave Kreskowiak7-Jul-04 4:53 
GeneralRe: Memory usage of 1 form Pin
Heath Stewart7-Jul-04 5:09
protectorHeath Stewart7-Jul-04 5:09 
QuestionHow to use the function directly Pin
luming11223344556-Jul-04 16:44
luming11223344556-Jul-04 16:44 
AnswerRe: How to use the function directly Pin
insurgentpyro6-Jul-04 18:56
insurgentpyro6-Jul-04 18:56 
AnswerRe: How to use the function directly Pin
Stefan Troschuetz6-Jul-04 20:33
Stefan Troschuetz6-Jul-04 20:33 
GeneralRe: How to use the function directly Pin
luming11223344556-Jul-04 21:46
luming11223344556-Jul-04 21:46 
Generalvga output from PPC using C# Pin
wilk00776-Jul-04 16:19
wilk00776-Jul-04 16:19 
GeneralSearch Command Pin
Anonymous6-Jul-04 15:19
Anonymous6-Jul-04 15:19 
GeneralRe: Search Command Pin
insurgentpyro6-Jul-04 18:54
insurgentpyro6-Jul-04 18:54 

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.