Hi Tejus!

Use #r and #I to access new DLLs dynamically, e.g.#I @"C:\WINDOWS\Microsoft.NET\Managed DirectX\v9.02.2904" ;;

#r
@"Microsoft.DirectX.dll";;

#r
@"Microsoft.DirectX.Direct3D.dll" ;;

#r
@"Microsoft.DirectX.Direct3Dx.dll" ;;

Then use "open" to access the contents of the namespaces and modules. System.Windows.Forms.dll is referenced by default. To get rid of the red squigglies either move to F# 1.1.11.12 (see the hub main page) or use

regsvr32 bin/FsPrj.dll

regsvr32 bin/FsLangService.dll

regsvr32 bin/babelpackage.dll

See [link:cs.hubfs.net]

By on 7/28/2006 11:13 AM ()

Don,

Thanks for the tip! I'll try that out today. Congratulations on a great product - I'm new to functional languages, but it's been real fun to use F#, bonus points for having the .NET framework and Visual Studio at hand.

best,
Tejus

By on 7/28/2006 7:35 PM ()

Great - it works - my mistake was that I was building an exe, not dll, but a quick change in the Build options sorted everything out... no squigglies anymore, and it's nice to see intellisense while opening modules.

thanks

By on 7/29/2006 3:10 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper