A form from a dll
-
Hi all, I was just wondering about the following problem. I often write device drivers for various hardware systems. Often I put all that code in a DLL which can be called by another program. Usually I'll need to put in a form somewhere to allow the user to change parameters and settings. Normally this form is in the program that accesses the dll which is all well and good. Thats all fine, but I got to wondering does anyone know how to put a windows form with buttons and stuff inside a dll? Could I use the forms editor like I would If I was producing an exe or would I have to hard code everything? Its just that I figured it would lead to a much more modular and potentially better design because all the configuration and control is in one place.
-
Hi all, I was just wondering about the following problem. I often write device drivers for various hardware systems. Often I put all that code in a DLL which can be called by another program. Usually I'll need to put in a form somewhere to allow the user to change parameters and settings. Normally this form is in the program that accesses the dll which is all well and good. Thats all fine, but I got to wondering does anyone know how to put a windows form with buttons and stuff inside a dll? Could I use the forms editor like I would If I was producing an exe or would I have to hard code everything? Its just that I figured it would lead to a much more modular and potentially better design because all the configuration and control is in one place.
-
That was quick! So literally it is just as simple as the process for writing a new exe file then. Thanks I'll have to try it.
-
That was quick! So literally it is just as simple as the process for writing a new exe file then. Thanks I'll have to try it.
Thanks I tried it and it works just fine. I needed to simply add a form to the dll class and add a method inside the dll that shows the form. Another program can simply call the method inside the dll to display to form. - Thats just great.