Results 1 to 8 of 8

Thread: Vc++ Dll?

  1. #1

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Vc++ Dll?

    would it be faster to use a VC++ DLL then a visual basic class module?

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Vc++ Dll?

    To do WHAT ???

  3. #3

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Re: Vc++ Dll?

    carry the data of maps, basicly its about an object wich contains array and map info

  4. #4
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Vc++ Dll?

    I'm thinking of byte arrays in vb directly could be even faster.

  5. #5

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Re: Vc++ Dll?

    also to calculate isometric position. and just map stuff

  6. #6

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Re: Vc++ Dll?

    Quote Originally Posted by RhinoBull
    I'm thinking of byte arrays in vb directly could be even faster.
    i heard long's are faster because they match cpu or something

    and it shold be long because byte to small..
    Last edited by nareth; Jan 18th, 2005 at 02:56 PM.

  7. #7
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Vc++ Dll?

    Yes, long integers are very fast but since I don't know (I couldn't possibly ...) how you store or generate your maps (it could be some algorithm that is based on vectors, etc ... or they are simply bmp, metafiles, etc ...) that is why I suggested to use byte array ...

  8. #8
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Vc++ Dll?

    Quote Originally Posted by nareth
    would it be faster to use a VC++ DLL then a visual basic class module?
    This is a question that is impossible to answer. C++ is normally faster then VB however this all depends on how the code looks and how processor intense it is. VB has very slow (but powerfull) string handling routines and very slow generic graphic functions. But besides that compiling a private class into an EXE is normally faster then calling a COM object in a DLL (I don't know if you're talking about a COM object or not but I imagined that you did since you compared it with a VB class), since you don't have to go through all COM interfaces to reach the class implementation.

    Saying that C++ is always faster is a big lie. Bad written C++ code is generally much slower then good written VB code.

    If you only want to keep some map data and do some simple isometric positioning calculation I wouldn't go through the trouble of writing that in C++. But I generally never cross the river just to get to the water, but that's just me

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width