Hi,
i have got a VB application . how can i convert it to dll...........i ahve no basic knowledge about creating dll..........can someone guide me.?
Regards
Vivek.S
Printable View
Hi,
i have got a VB application . how can i convert it to dll...........i ahve no basic knowledge about creating dll..........can someone guide me.?
Regards
Vivek.S
When you open VB select AcitveX DLL project type ...
You may add some ot all of the objects (forms, classes, modules, etc) from your original and save as new copy each and every one of them.
This would give a start ...
shud i jus copy my existing form and code into that?
will that work?
regards
vivek.s
;)
Yep, you replied after I edited my post ...
srry i didnt see ur reply.maybe we were doin it at the same time!
how can i add forms from existing project.....it doesnt seem to have form design page(i have never ever programmed dll)
regards
vivek.s
goto Project > PROJECT_NAME Properties...
set project type to activex dll
under properties only name is displayed:(
regards
vivek.s
what is your vb version
whatever version you have.
Type=OleDll
in your project.vbp file
:wave:
Hi,
i created a dll but it says no public compnent detected
how can i rectify this?
regards
vivek.s
The same way you can do in Standard project: right click on project explorer and select Add -> Add File ... But I recommend you to copy all files (frm, frx, cls, mod, ...) into a new folder and use that new folder as your work folder.Quote:
Originally Posted by vivek.shankar
yes rhinobull..........i did copy it to a different folder but i am getting error whichg mentioned in previous post when i did as i was told my nareth................
regards
vivek.s
You must have at least one class which is multiuse and public so you can access your dll's methods, properties ...
like............ can u give me an example?
i am having these function......like
excel_getdata
logion
manipulate etc.........
i also haveing controls on the form
so how shud i frame my program to use these?
'
regards
vivek.s
Open attachments to see very quick sample project (after unzipping dblclick on Test_Dll.vbg file).
Thanks a lot!!
That was of great help:)
regards
vivek.s
i have created a dll and i am getting sub main does not exist...what is the mistake i am doin?
regrads
vivek.s
You should learn a bit about ActiveX components so you understand how they work and especially how to design them. Then you need to design how your component needs to work. I doubt that it is possible to convert a exe project to a ActiveX component simply by copying the form.
VB programmers should avoid saying DLL since it can be confusing out of the context of VB. For VB, DLLs are never regular DLLs; for VB, a DLL is an ActiveX component or something like that. So it is more clear to say "ActiveX component" or something such as that, depending on what is relevant.
Also, I think it is possible to expose an ActiveX component from an exe project, but I don't know VB well enough to be sure. In other words, I think you can use your exe instead of converting to a DLL.
well i wanted to understanmd bit about activex dll thats y i am jus trying to get familiarised with it...........
regards
vivek.s