[aspectc-user] command line for Add-In for Visual Studio

Yan Mao maoyan at gmx.net
Sun Sep 3 16:33:26 CEST 2006

Hello Matthis,
I have some questions about using Visual Studio add-in:
1. how to write the command line, if i dont want to interactively use the Add-In but through a command line.
   what should i do if I only want to weave the code with aspects but dont link.(in my project, i have to use some other tool to link my source code)
2. Somewhere in the Mail List, i read that, the Add-In can generate a working puma.config file. How to generate the puma.config?
3. in the source code of third side APIs, i have a code like:
#define TRAINIT_ARG(xxx, Comment, Mode, Device, CanNotUsedLevel )   \   \
the compiler will report error as unknown token.
Could this be a bug, since it worked if i delete the last spaces and slash, like:
#define TRAINIT_ARG(xxx, Comment, Mode, Device, CanNotUsedLevel )   \

thanks for your answer,
Best Regards
Yan Mao

-------- Original-Nachricht --------
Datum: Wed, 16 Aug 2006 16:39:37 +0200
Von: Matthias Urban <matthias.urban at pure-systems.com>
An: Yan Mao <maoyan at gmx.net>
Betreff: Re: [aspectc-user] (no subject)

> Hi,
> > Yes, i have included windows.h and comutil.h, but still those errors.
> > I'd like to send u the example (maybe it's not so short, i hope u can
> understand my example).
> > thanks,
> ok, I've found one of the problems. LoadLibrary() expects an argument of 
> type unsigned short* and you call it with L"..", which has type const 
> wchar_t*. In ISO C++ wchar_t cannot be implicitely converted to short. I 
> don't know why this works with Visual C++ (seems to be another extension 
> to the standard C++ language). But wchar_t is compatible to int, so if 
> you change the type of your String typedef (in IDictionary.h) to 
> unsigned int* it should work.
> Best regards,
> Matthias
> -- 
> Matthias Urban                          Phone: +49-391-544569-32
> pure-systems GmbH                       Fax:   +49-391-544569-90


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

More information about the aspectc-user mailing list