AHA!
I just knew this would come up sometime. I tried this earlier in
the vstudio.general newsgroup without any replies (so far).
Original post:
I was initially going to post this in the .vsa group, but there is very
little action there. If it would be better posted elsewhere please
let me know.
I've been looking into this the better part of a day, Googling and
the whole bit, but I can't seem to find a satisfactory answer.
When I "discovered" the vsa classes I got excited, as this looked
like a way to implement scripting from within an application. Alas,
as I attempted to use others' samples, I discovered that this did
not seem to work anywhere near what I had hoped, and not even
close to what I expected. I have added references to:
Microsoft.VisualBasic.Vsa
Microsoft.Vsa
as well as several other libraries that look like they might belong.
I tried something simple at first like this:
class Scripter
{
private IVsaEngine eng;
eng = new VsaEngine();
eng.InitNew();
.....
}
with the correct "using" statments and all. Intellisense is working
for everything up until I type in "eng.", then nothing. So, I tried a
build right quick and keep getting messages about a return value
required for VsaEngine, invalid tokens '(' and '=', just normal
compiler complaints, but they don't make sense in this context.
A lot of this is based on samples from others that I have seen, and
they do the same thing, declare the field as an IVsaEngine, then
assign it a VsaEngine() type, but I'm just stuck here. I've registered
the vsavb7rt.dll, closed and restarted VS, nothing seems to get me
past this point.
Hopefully that will answer most of the obvious questions, I'm just
wondering if there is something else that needs to be done. VSA
appears to be a wonderful thing, if it works. If not, why the hell is
it even there? Or am I just missing a very fundamental thing here?
"JPRoot" <jp****@hotmail.com> wrote in message
news:OX**************@TK2MSFTNGP09.phx.gbl...
Hi,
Is it possible to integrate VBA within a C# MDI application? If yes, is
there any exemples?
What I am trying to do is let the user of my app add any child windows he
would like to the MDI and customize their layout using VBA...
Any ideas?
Thanks
JPRoot