1

this is a pretty n00b question, but i cant seem to find the 'right answer', and i have looked ALL over..

(vb6).. But i found a Custom User Control (.ctl & .ctx file Source) that wraps the MSComm control... (i also have a custom button control Source)

instead of compiling it as an .ocx and having to include it as a separate file... or as a .dll

can i just include the controls in my project and throw the control on my form and include it that way, without having to distribute a separate .ocx or .dll after i compile ??

i am asking because when i finish, will i have to distribute ANY other files or just .exe ??

Could someone please explain to me how this works ? i dont want to have to distribute any other files just my prog.exe

(and the user control for MSComm is a wrapper, i need it because, i cant seem to get around the MSComm 16 port limit, i need higher)

Thx...

4

1 回答 1

2

如果您的项目中有 .ctl 和 .ctx 文件,那么它们将像任何其他 .frm 或 .bas 一样内置到可执行文件中。如果他们引用外部文件(如 MSComm),那么该文件必须位于任何目标机器上(一种或另一种方式)。如果目标计算机没有 MSComm,那么您必须分发并注册它 ( http://support.microsoft.com/kb/146219 )

于 2013-03-05T10:52:31.853 回答