PC Review


Reply
Thread Tools Rate Thread

Macro Reflection???

 
 
batwater
Guest
Posts: n/a
 
      24th Feb 2005
Based on a given text I would like to call that corresponding macro.
Is this something that is even possible in Managed C++ or .NET?
Ideally I would like to do this without using a gigantic conditional
statement. (Additional Info if needed: The macro that I would like to
call simply returns an integer. The macro is defined in a traditional
c++ (i.e. unmanaged c++) file.) I have searched the web and groups and
have been unable to find my solution. Any help would be greatly
appreciated.

 
Reply With Quote
 
 
 
 
Sean Hederman
Guest
Posts: n/a
 
      24th Feb 2005
Macros cannot be called via reflection since after compilation they do not
exist. As an example if you have the macro:
#define INCREMENT(x) x++
and then use it:
INCREMENT(myVar);

it has no independent existance. The code will be expanded to:
myVar++;

"batwater" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Based on a given text I would like to call that corresponding macro.
> Is this something that is even possible in Managed C++ or .NET?
> Ideally I would like to do this without using a gigantic conditional
> statement. (Additional Info if needed: The macro that I would like to
> call simply returns an integer. The macro is defined in a traditional
> c++ (i.e. unmanaged c++) file.) I have searched the web and groups and
> have been unable to find my solution. Any help would be greatly
> appreciated.
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Attachmate / WRQ Reflection Macro Errors John Microsoft Access Macros 0 12th Dec 2006 11:12 PM
Attachmate / WRQ Reflection Macro Errors John Microsoft Access 0 12th Dec 2006 11:12 PM
Reflection: Executing event code via reflection Shawn Hogan Microsoft VB .NET 0 13th May 2004 07:54 PM
Reflection: Executing event code via reflection Shawn Hogan Microsoft Dot NET Framework 0 12th May 2004 06:58 PM
Reflection Help: Copying data between objects using reflection Joe Bloggs Microsoft C# .NET 2 25th Mar 2004 10:58 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:00 PM.