melkanzi Posted September 21, 2006 Posted September 21, 2006 Hello, I have a ready made C file and I would like to use this file's functions in my VB.net application im using VS2005. The C file is also available as dll... so what should i do?? Thanks Quote
Leaders snarfblam Posted September 21, 2006 Leaders Posted September 21, 2006 Off the top of my head, you can use the DllImport attribute or the Declare statement to access method from the DLL using VB. Quote [sIGPIC]e[/sIGPIC]
melkanzi Posted September 23, 2006 Author Posted September 23, 2006 Could anyone please post an example.... the dll file is called fmod and it has a number of functions inside of it.... Thanks Quote
Administrators PlausiblyDamp Posted September 23, 2006 Administrators Posted September 23, 2006 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemRuntimeInteropServicesDllImportAttributeClassTopic.asp is probably worth a look. Ultimately though how you use DllImport depends on the function you are importing.... Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts