# SDL in VB 6

**URL:** <https://discourse.libsdl.org/t/sdl-in-vb-6/14716>\
**Category:** SDL Development\
**Created:** [July 18, 2007, 4:05am UTC](https://discourse.libsdl.org/t/sdl-in-vb-6/14716 "2007-07-18T04:05:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthew\_Johnson](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/m/3bc359/32.png) [@Matthew\_Johnson](https://discourse.libsdl.org/u/Matthew_Johnson)\
**Post date:** [July 18, 2007, 4:05am UTC](https://discourse.libsdl.org/t/sdl-in-vb-6/14716/1 "2007-07-18T04:05:09Z")

</div>

I’m just curious, has anyone ever made a library for VB to use SDL?

If not does anyone know a good place to start researching a way to do  
so? I love VB so much I don’t want to learn C++ just to use this  
wonderful library.

---

<div class="post-metadata">

**Author:** ![matt4](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/m/46a35a/32.png) [@matt4](https://discourse.libsdl.org/u/matt4)\
**Post date:** [July 18, 2007, 4:16am UTC](https://discourse.libsdl.org/t/sdl-in-vb-6/14716/2 "2007-07-18T04:16:15Z")

</div>

> I’m just curious, has anyone ever made a library for VB to use SDL?
> 
> If not does anyone know a good place to start researching a way to do  
> so? I love VB so much I don’t want to learn C++ just to use this  
> wonderful library.

uhhh, i would suggest learning c/c++ so your apps will work with out  
the microsoft dependency. sorry i can not answer your question as i do  
not know.

i was going to suggest using qt as thats a nice cross platform api i  
c++, but not sure how well it works with sdl. i would like to know  
myself since ill be there soon as i am done with my game core.

errr, sorry if it seems like i high jacked the post ☹

mattOn Tue, 17 Jul 2007 23:05:09 -0500 “Matthew Johnson” wrote:

---

<div class="post-metadata">

**Author:** ![Matthew\_Johnson](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/m/3bc359/32.png) [@Matthew\_Johnson](https://discourse.libsdl.org/u/Matthew_Johnson)\
**Post date:** [July 18, 2007, 11:32am UTC](https://discourse.libsdl.org/t/sdl-in-vb-6/14716/3 "2007-07-18T11:32:27Z")

</div>

Hahah, at least you answered. Yeah I know I should learn C++. I was  
just curious. Oh well. Thanks for answering.On 7/17/07, matt wrote:

> On Tue, 17 Jul 2007 23:05:09 -0500 “Matthew Johnson” \<@Matthew\_Johnson\> wrote:
> 
> > I’m just curious, has anyone ever made a library for VB to use SDL?
> > 
> > If not does anyone know a good place to start researching a way to do  
> > so? I love VB so much I don’t want to learn C++ just to use this  
> > wonderful library.
> 
> uhhh, i would suggest learning c/c++ so your apps will work with out  
> the microsoft dependency. sorry i can not answer your question as i do  
> not know.
> 
> i was going to suggest using qt as thats a nice cross platform api i  
> c++, but not sure how well it works with sdl. i would like to know  
> myself since ill be there soon as i am done with my game core.
> 
> errr, sorry if it seems like i high jacked the post ☹
> 
> matt
> 
> * * *
> 
> SDL mailing list  
> SDL at [lists.libsdl.org](http://lists.libsdl.org)  
> [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)

---

<div class="post-metadata">

**Author:** ![Torsten\_Giebl](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/torsten_giebl/32/2804_2.png) [@Torsten\_Giebl](https://discourse.libsdl.org/u/Torsten_Giebl)\
**Post date:** [July 18, 2007, 12:11pm UTC](https://discourse.libsdl.org/t/sdl-in-vb-6/14716/4 "2007-07-18T12:11:42Z")

</div>

Hello !

> Hahah, at least you answered. Yeah I know I should learn C++. I was  
> just curious. Oh well. Thanks for answering.

Using SDL with VB is possible, as SDL uses stdcall  
and only C functions.

To use it with SDL you have to  
write some kind of import header file or what that  
is called in VB.

I don’t think you can use QT with VB, as it uses classes  
and VB 6 is a really old version of VB. With the newer ones  
like VB 2005 it should be possible.

But doing all this is harder than learning C/C++

CU

---

<div class="post-metadata">

**Author:** ![Simon\_Roby](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ed655f/32.png) [@Simon\_Roby](https://discourse.libsdl.org/u/Simon_Roby)\
**Post date:** [July 24, 2007, 10:57pm UTC](https://discourse.libsdl.org/t/sdl-in-vb-6/14716/5 "2007-07-24T22:57:54Z")

</div>

Or at least switch to [VB.NET](http://VB.NET). VB6 has been deprecated by Microsoft a  
good while ago. You’ll need .NET wrappers though, as SDL is purely a C  
library.On 7/18/07, Matthew Johnson wrote:

> Hahah, at least you answered. Yeah I know I should learn C++. I was  
> just curious. Oh well. Thanks for answering.

–

- SR

---

<div class="post-metadata">

**Author:** ![matt4](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/m/46a35a/32.png) [@matt4](https://discourse.libsdl.org/u/matt4)\
**Post date:** [July 25, 2007, 3:50am UTC](https://discourse.libsdl.org/t/sdl-in-vb-6/14716/6 "2007-07-25T03:50:44Z")

</div>

dot net is still MS only (for the most part, i dont mess with mono)On Tue, 24 Jul 2007 18:57:54 -0400 “Simon Roby” \<simon.roby at [gmail.com](http://gmail.com)\> wrote:

> On 7/18/07, Matthew Johnson wrote:
> 
> > Hahah, at least you answered. Yeah I know I should learn C++. I  
> > was just curious. Oh well. Thanks for answering.
> 
> Or at least switch to [VB.NET](http://VB.NET). VB6 has been deprecated by Microsoft a  
> good while ago. You’ll need .NET wrappers though, as SDL is purely a C  
> library.

---

<div class="post-metadata">

**Author:** ![Jeff\_Post](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@Jeff\_Post](https://discourse.libsdl.org/u/Jeff_Post)\
**Post date:** [July 25, 2007, 3:59am UTC](https://discourse.libsdl.org/t/sdl-in-vb-6/14716/7 "2007-07-25T03:59:56Z")

</div>

Try [http://www.dotgnu.org](http://www.dotgnu.org)

JeffOn Tue July 24 2007 20:50, matt wrote:

> dot net is still MS only (for the most part, i dont mess with mono)

---

<div class="post-metadata">

**Author:** ![Matthew\_Johnson](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/m/3bc359/32.png) [@Matthew\_Johnson](https://discourse.libsdl.org/u/Matthew_Johnson)\
**Post date:** [July 25, 2007, 7:08pm UTC](https://discourse.libsdl.org/t/sdl-in-vb-6/14716/8 "2007-07-25T19:08:22Z")

</div>

I thank you for the advice. However switching to .NET seems doubly  
irksome as I’m aware there are a few changes in the syntax and design.  
And I’ve never heard of .NET wrappers. So that’s only going to make  
it harder. I might actually be better off learning C++, at least SDL  
already has a setup for Dev-C++ IDE. But then again I’ve been using  
VB for years as a simple way of making programs that I need. I  
personally think Microsoft made a mistake forcing .NET on us. But  
that’s me.

And I’ve never heard of dotngu before, is it better than SharpDevelop?  
I originally downloaded it to learn [VB.NET](http://VB.NET) and hated it as I couldn’t  
find a decent tutorial and can’t afford the books at the moment.

But again thank you, I’ll either give up on SDL or suck it up and  
learn a new language. Thanks again.On 7/24/07, Jeff \<j\_post at [pacbell.net](http://pacbell.net)\> wrote:

> On Tue July 24 2007 20:50, matt wrote:
> 
> > dot net is still MS only (for the most part, i dont mess with mono)
> 
> Try [http://www.dotgnu.org](http://www.dotgnu.org)
> 
> Jeff
> 
> * * *
> 
> SDL mailing list  
> SDL at [lists.libsdl.org](http://lists.libsdl.org)  
> [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)

---

<div class="post-metadata">

**Author:** ![xmaxmex](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/xmaxmex/32/4088_2.png) [@xmaxmex](https://discourse.libsdl.org/u/xmaxmex)\
**Post date:** [October 18, 2020, 5:24pm UTC](https://discourse.libsdl.org/t/sdl-in-vb-6/14716/9 "2020-10-18T17:24:01Z")

</div>

Hi guys,

Just take a look on:

[https://github.com/xmaxmex/XSDL2](https://github.com/xmaxmex/XSDL2)

And, Thanks in advance.
