|
-
Nov 9th, 2005, 02:28 PM
#1
Thread Starter
Member
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?
-
Nov 13th, 2005, 03:37 PM
#2
Addicted Member
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.
-
Nov 13th, 2005, 04:58 PM
#3
PowerPoster
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?
-
Nov 13th, 2005, 10:17 PM
#4
Hyperactive Member
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.
-
Nov 14th, 2005, 10:10 AM
#5
Thread Starter
Member
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...
-
Nov 21st, 2005, 09:48 AM
#6
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:
Dim sentence() As Byte
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|