dragon4spy Posted January 6, 2004 Posted January 6, 2004 Hi everyone! Does vb.net capable to use APIs just like vb6? Since, i am new to the .net game, i can't remember the whole namespaces yet. Good luck! Quote Don't judge a man by his look. Don't judge a book by its cover. :D
*Experts* Merrion Posted January 6, 2004 *Experts* Posted January 6, 2004 Yes - check out the DLLImport attribute for the way to do this...(or you can just use the old Declare statement as per VB6.) Quote Printer Monitor for .NET? - see Merrion Computing Ltd for details
*Experts* Bucky Posted January 6, 2004 *Experts* Posted January 6, 2004 If you have the API Guide, it lists .NET equivalents for many Windows API functions (in addition to being an immensly useful API reference). Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
dragon4spy Posted January 7, 2004 Author Posted January 7, 2004 Yes, I have an API Guide. By comparing the API and namespaces, I am attracted by the namespaces, since they are more friendly and easier to use than API, that why, i think i need to shift to vb.net, but it takes time to be familiar with namespaces. Besides, namespaces in API guide seems incompleted and lack of examples compare to its APIs. What do you think, is it good or not to use a API that existed as namespace in .net? Quote Don't judge a man by his look. Don't judge a book by its cover. :D
Administrators PlausiblyDamp Posted January 7, 2004 Administrators Posted January 7, 2004 If there is a class within the .Net framework that meets your requirements then it is usually better to go with the .Net class rather than the API. The .Net framework gives you a more more Object Orientated way of dealing with things and is the development platform MS are pushing at the moment. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
dragon4spy Posted January 7, 2004 Author Posted January 7, 2004 Thanks everyone! :D At least, i will try to use framework for existed api. :D Quote Don't judge a man by his look. Don't judge a book by its cover. :D
*Experts* Bucky Posted January 7, 2004 *Experts* Posted January 7, 2004 It's also worth mentioning that the Framework methods are platform-independent, which is one of the goals and strengths of the entire Framework. This is why the Framework has, in its short life so far, already been ported to Linux and Windows CE devices. So, try to stay safe and learn the new ways of the .NET. Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
dragon4spy Posted January 7, 2004 Author Posted January 7, 2004 already been ported to Linux How do you know? Where can i download the framework for linux? :D Quote Don't judge a man by his look. Don't judge a book by its cover. :D
AndreRyan Posted January 7, 2004 Posted January 7, 2004 The project is called Mono, it's avaliable here: http://www.go-mono.com/ Quote .Net allows software to be written for any version of Windows and not break like Unmanaged applications unless using Unmanaged procedures like APIs. If your program uses large amounts of memory but releases it when something else needs it, then what's the problem?
dragon4spy Posted January 7, 2004 Author Posted January 7, 2004 In that website, it says "for C#". Does it support vb.net? I'll give it try then. Thanks :) Quote Don't judge a man by his look. Don't judge a book by its cover. :D
Administrators PlausiblyDamp Posted January 7, 2004 Administrators Posted January 7, 2004 http://www.go-mono.com/mbas.html although if you are developing on a system with a vb compiler (e.g. windows) then the compiled code (MSIL) will run under the mono implementation as long as the required classes have been implemented in the mono project Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
dragon4spy Posted January 7, 2004 Author Posted January 7, 2004 Thanks everyone! I think my problem is now solved. Quote Don't judge a man by his look. Don't judge a book by its cover. :D
Recommended Posts