hog Posted December 17, 2003 Posted December 17, 2003 Although I seem to b able to write some decent apps in VB.NET, well for work anyway and the odd one for fun I do think I'm missing some of the basic understanding of the language:( Can someone enlighten me on this one please? this line block of code; Imports Microsoft.DirectX Imports Microsoft.DirectX.Direct3D Imports Direct3D = Microsoft.DirectX.Direct3D 1. wouldn't the first line suffice? If Imports Microsoft.DirectX is imported then doesn't the project then have access to all namespaces within it? 2. I don't understand Imports Direct3D = Microsoft.DirectX.Direct3D at all? Thnx Quote My website
Administrators PlausiblyDamp Posted December 17, 2003 Administrators Posted December 17, 2003 Importing a namespace doesn't automatically import all the contained namespaces - each one needs to be done individually. the 3rd one imports Microsoft.DirectX.Direct3d and aliases it to Direct3D. You could use the namespace Direct3D instead of the fully qualified namespace of Microsoft.DirectX.Direct3D Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
hog Posted December 17, 2003 Author Posted December 17, 2003 beautifully explained:) ever thought of becoming a tutor:) thnx:):) Quote My website
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.