HighTechTalks DotNet Forums  

CodeDom and P/Invoke

Dotnet Framework (CLR) microsoft.public.dotnet.framework.clr


Discuss CodeDom and P/Invoke in the Dotnet Framework (CLR) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Ram Shriram
 
Posts: n/a

Default CodeDom and P/Invoke - 10-05-2007 , 03:09 AM






Can I generate P/Invoke methods using CodeDom?

Thanks,
Ram Shriram



Reply With Quote
  #2  
Old   
Günter Prossliner
 
Posts: n/a

Default Re: CodeDom and P/Invoke - 10-05-2007 , 04:27 AM






Hello Ram!

Quote:
Can I generate P/Invoke methods using CodeDom?
Generating the "DllImport" Attribute is no problem, because it's a normal
Attribute for CodeDom.

But: Creating the "extern" Modifiers for a CodeMemberMethod is not supported
by CodeDom. You may render a special comment, which will be replaced by the
"extern" Keyword during a text-based post-processing step.


GP




Reply With Quote
  #3  
Old   
Ram Shriram
 
Posts: n/a

Default Re: CodeDom and P/Invoke - 10-05-2007 , 11:40 PM



That's a bummer - Thank you for the confirmation, GP!

Ram

"Günter Prossliner" <g.prossliner/gmx/at> wrote

Quote:
Hello Ram!

Can I generate P/Invoke methods using CodeDom?

Generating the "DllImport" Attribute is no problem, because it's a normal
Attribute for CodeDom.

But: Creating the "extern" Modifiers for a CodeMemberMethod is not
supported by CodeDom. You may render a special comment, which will be
replaced by the "extern" Keyword during a text-based post-processing step.


GP




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.