Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / January 2004

Tip: Looking for answers? Try searching our database.

A final question (I hope) on C# compilation....

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alan Seunarayan - 20 Jan 2004 14:02 GMT
Hello all,

   Picture this....

I have a DLL that only has an interface in it (Alan.IMyInterface), I also
have a number of DLLs that contain tlbimp generated DLLs and they are
imported as Embedded Resources.  These DLLs contain embedded dlls from
Word97, Word2000, etc.
Now in my generating app I have an embedded resource file which is actually
a C# code file.  Within that code file there is a class which implements
'Alan.IMyInterface' and also my pre-determined namespace for the Word DLLs.
Here is the tricky bit.....

...I can load and check my resource DLLs and upon success I can then extract
and load my Word DLLs from that, the problem arises when I try to compile
the embedded C# code.  It cannot find reference 'MSWordX' (which was the
forced namespace during tblimp).  Can anyone please help?

Regards,

Alan
"Shawn Farkas" - 22 Jan 2004 20:28 GMT
Hi Alan,

    I assume you decided to go with CodeDOM to do this compilation.  When you call CompileAssembly, you'll have to setup references to
your COM Interop assemblies.  In order for the compiler to find and use these assemblies though, you'll have to first write them out to disk.  You
should have no problem doing that from the resource streams you have, then invoking the compiler.

-Shawn
http://blogs.msdn.com/shawnfa

Signature

This posting is provided "AS IS" with no warranties, and confers no rights.
Note:  For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they
originated.  
--------------------

>From: "Alan Seunarayan" <w@xyz.com>
>Subject: A final question (I hope) on C# compilation....
[quoted text clipped - 32 lines]
>
>Alan
Alan Seunarayan - 22 Jan 2004 20:40 GMT
Thanks for that, I actually ended up doing that.  By the way, do you know of
any books that have indepth details about assemblies, appdomains and (of
cource) the CodeDom and related namespaces?

many thanks!

> Hi Alan,
>
[quoted text clipped - 17 lines]
> >NNTP-Posting-Host: host213-123-219-40.in-addr.btopenworld.com 213.123.219.40
> >Path: cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!cpmsftngxa09.phx.gbl!TK2MSFTNGP08.
phx.gbl!TK2MSFTNGP12.phx.gbl
> >Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.sdk:8566
> >X-Tomcat-NG: microsoft.public.dotnet.framework.sdk
[quoted text clipped - 20 lines]
> >
> >Alan
"Shawn Farkas" - 27 Jan 2004 00:12 GMT
I'm glad that worked.  Unfortunately I don't know of any CodeDOM books, but that doesn't mean they're not out there.  Maybe someone else in this
newsgroup can be of more assistance helping you find one.

-Shawn
http://blogs.msdn.com/shawnfa

Signature

This posting is provided "AS IS" with no warranties, and confers no rights.
Note:  For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they
originated.  
--------------------

>From: "Alan Seunarayan" <soonaz@ntlworld.com>
>References: <uH4BJ113DHA.1672@TK2MSFTNGP12.phx.gbl> <W4MhKZS4DHA.1992@cpmsftngxa07.phx.gbl>
[quoted text clipped - 77 lines]
>> >
>> >Alan

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.