|
-
Dec 20th, 2004, 07:48 AM
#1
Thread Starter
Fanatic Member
Creating dll
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
Last edited by vivek.shankar; Dec 21st, 2004 at 07:52 AM.
-
Dec 20th, 2004, 08:59 AM
#2
Re: Creating dll
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 ...
-
Dec 20th, 2004, 09:01 AM
#3
Thread Starter
Fanatic Member
Re: Creating dll
shud i jus copy my existing form and code into that?
will that work?
regards
vivek.s
-
Dec 20th, 2004, 09:02 AM
#4
Re: Creating dll
Yep, you replied after I edited my post ...
-
Dec 20th, 2004, 09:19 AM
#5
Thread Starter
Fanatic Member
Re: Creating dll
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
-
Dec 20th, 2004, 09:26 AM
#6
Banned
Re: Creating dll
goto Project > PROJECT_NAME Properties...
set project type to activex dll
-
Dec 20th, 2004, 09:30 AM
#7
Thread Starter
Fanatic Member
Re: Creating dll
under properties only name is displayed
regards
vivek.s
-
Dec 20th, 2004, 09:31 AM
#8
Banned
-
Dec 20th, 2004, 09:34 AM
#9
Banned
Re: Creating dll
whatever version you have.
Type=OleDll
in your project.vbp file
-
Dec 20th, 2004, 09:46 AM
#10
Thread Starter
Fanatic Member
Re: Creating dll
Hi,
i created a dll but it says no public compnent detected
how can i rectify this?
regards
vivek.s
-
Dec 20th, 2004, 09:48 AM
#11
Re: Creating dll
 Originally Posted by vivek.shankar
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
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.
-
Dec 20th, 2004, 09:51 AM
#12
Thread Starter
Fanatic Member
Re: Creating dll
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
-
Dec 20th, 2004, 10:47 AM
#13
Re: Creating dll
You must have at least one class which is multiuse and public so you can access your dll's methods, properties ...
-
Dec 20th, 2004, 11:53 AM
#14
Thread Starter
Fanatic Member
Re: Creating dll
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
-
Dec 20th, 2004, 02:13 PM
#15
Re: Creating dll
Open attachments to see very quick sample project (after unzipping dblclick on Test_Dll.vbg file).
-
Dec 21st, 2004, 07:40 AM
#16
Thread Starter
Fanatic Member
Re: Creating dll
Thanks a lot!!
That was of great help
regards
vivek.s
-
Dec 21st, 2004, 08:05 AM
#17
Thread Starter
Fanatic Member
Re: Creating dll
i have created a dll and i am getting sub main does not exist...what is the mistake i am doin?
regrads
vivek.s
-
Dec 21st, 2004, 06:09 PM
#18
Member
Re: Creating dll
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.
-
Dec 22nd, 2004, 04:09 AM
#19
Thread Starter
Fanatic Member
Re: Creating dll
well i wanted to understanmd bit about activex dll thats y i am jus trying to get familiarised with it...........
regards
vivek.s
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|