quote:
Originally posted by Dauntless
Ow, sorry, ChooseColor isn't declared in user32.dll . But 'CreateDialog' IS, (http://msdn2.microsoft.com/en-us/library/ms645434.aspx) and I still get the 'failed to locate function' errror.
Umm, you need to fill all necessary parameters as described on the MSDN page for the function (
http://msdn2.microsoft.com/en-us/library/ms645434.aspx). This is done by placing extra parameters into the Interop.Call function:
code:
Interop.Call("user32.dll", "FunctionName", "Parameter1", "Parameter2", etc);
That being said, this function probably isn't the best starting place for a beginner as it requires a grasp of somewhat complex concepts. Make sure you understand exactly what the function does and what requirements it has (such as
parameters and the parameter
types) - all of which is usually contained on the appropriate MSDN page.