Results 1 to 6 of 6

Thread: C++ Dll

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2005
    Location
    Netherlands, The
    Posts
    41

    C++ Dll

    i heard many thinks like vb strings are slow. and that winsock control is slow.
    so i was thinking, is it wise to make a C++ dll with multithreaded sockets that handle the string and call a specified function to handle the packet?

  2. #2
    Addicted Member
    Join Date
    Sep 2005
    Posts
    146

    Re: C++ Dll

    they aint slow, i use them in a ONLINE text based game all the time
    Last edited by mrnew; Nov 15th, 2005 at 06:28 AM.

  3. #3
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    Re: C++ Dll

    Since when do we test performance by text-based games?

    Honestly, what killer-project would bring you to care about the string manipulation performance?

  4. #4
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    UK
    Posts
    417

    Re: C++ Dll

    You know you don;t have to use the inbuilt string functions. If you do not want to , You have two options. one Write all new ones your self, two Use the Windows API calls. both for dealing with strings and Winsock., unless you really do want to spend a few hours rewiteing them in C++

    anyway good luck.
    When your dreams come true.
    On error resume pulling hair out.

  5. #5

    Thread Starter
    Member
    Join Date
    Sep 2005
    Location
    Netherlands, The
    Posts
    41

    Re: C++ Dll

    i have another idea... what about adding ASM functions like inc() and decr() and string functions that would speed alot up.. but woulndt it be better to just move onto C++ haha...

  6. #6
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: C++ Dll

    Byte arrays are faster, and VB coerces to and from byte arrays and strings nicely so they are not hard to use.

    VB Code:
    1. Dim sentence() As Byte
    2. sentence = "Hello World, Waddup"

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