Shoutbox

Newbie-question: How to make a dll in VB? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: Newbie-question: How to make a dll in VB? (/showthread.php?tid=12565)

Newbie-question: How to make a dll in VB? by math on 07-08-2003 at 01:47 PM

How do you make a dll in Visual Basic 6.0?
When I start a new project, I get a window in which I can choose a type of program, for example Exe-file. I guess I should choose a special type here?


RE: Newbie-question: How to make a dll in VB? by Bamboe on 07-08-2003 at 01:48 PM

just open the sample project from patchou and moddify it (works for c)


RE: Newbie-question: How to make a dll in VB? by surfichris on 07-08-2003 at 02:11 PM

You chose Active X DLL


RE: Newbie-question: How to make a dll in VB? by math on 07-09-2003 at 02:10 PM

Bamboe, I prefer using VB and not C. I could start learning C for this pupose, but I'm afraid there will raise lots more questions by me.

Thanks Chris, but when I do this, I get the following alerts:

The project file 'C:\program files\microsoft visual studio\vb98\template\projects\activex document dll.vbp' contains invalid 'Type' key value.
OK

Display more load alerts
Yes No

The project file 'C:\program files\microsoft visual studio\vb98\template\projects\activex document dll.vbp' contains invalid 'Type' key value.
OK

Display more load alerts
Yes No

The project file 'C:\program files\microsoft visual studio\vb98\template\projects\activex document dll.vbp' contains invalid 'ThreadingModel' key value.
OK

Display more load alerts
Yes No

User Documents are not allowed in Standard EXE and UserControl project types. Item(s) not loaded.
OK

Does anybody know how to solve this?


RE: Newbie-question: How to make a dll in VB? by math on 07-10-2003 at 07:38 AM

When I do this, I get these alerts: Why?

The project file 'C:\windows\profiles\matthijs\mijn documenten\prog\plus\VB\MPPluginVB.vbp' contains invalid 'Type' key value.
OK

Display more load alerts
Yes No

'MPPlugindef can not be public in this type of project. The item has been changed to public.

The project file 'C:\windows\profiles\matthijs\mijn documenten\prog\plus\VB\MPPluginVB.vbp' contains invalid 'Type' key value.
OK

Display more load alerts
Yes No

The project file 'C:\windows\profiles\matthijs\mijn documenten\prog\plus\VB\MPPluginVB.vbp' contains invalid 'ThreadingModel' key value.
OK

Display more load alerts
Yes No


And how to make a dll? When I run the program, it says:
Must have Startup form of Sub main().
OK

Out of memory
OK Help

I can't believe there is really to little memory.


RE: Newbie-question: How to make a dll in VB? by AzNiNsEcT on 07-10-2003 at 07:54 AM

can u put ur compiled code for the class module uve made?


RE: Newbie-question: How to make a dll in VB? by math on 07-10-2003 at 08:45 AM

I can't because I can't run or compile the program.
The uncompiled (does that word exist?) code is the default code of Patchou.


RE: Newbie-question: How to make a dll in VB? by AzNiNsEcT on 07-10-2003 at 08:51 AM

...um...i was asking for what u have there, the code that your using
compile is a fancy word for 'create' so to speak :P


RE: Newbie-question: How to make a dll in VB? by math on 07-10-2003 at 08:52 AM

I told you, the example of Patchou. I haven't changed anything in it yet.


RE: Newbie-question: How to make a dll in VB? by AzNiNsEcT on 07-10-2003 at 08:55 AM

so essentially...unless im mistaken...is that you cant even load the modules into whatever compiler ur using...am i right?


RE: Newbie-question: How to make a dll in VB? by math on 07-10-2003 at 09:24 AM

That's indeed my problem.
I am using Visual Basic 6.0.


RE: Newbie-question: How to make a dll in VB? by AzNiNsEcT on 07-10-2003 at 09:27 AM

ok well im stuffed for answers, havent been using vb 6 for that long :S


RE: Newbie-question: How to make a dll in VB? by math on 07-11-2003 at 12:06 PM

Dows someone else have an answer?