Click here to Skip to main content
15,919,434 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How can I insert a new column in database table at the desired place? Pin
Dave Kreskowiak2-Jun-04 2:56
mveDave Kreskowiak2-Jun-04 2:56 
GeneralRe: How can I insert a new column in database table at the desired place? Pin
ATC2-Jun-04 5:15
ATC2-Jun-04 5:15 
AnswerRe: How can I insert a new column in database table at the desired place? Pin
^eleK2-Jun-04 9:23
^eleK2-Jun-04 9:23 
QuestionHow to catch all that is doing on a computer Pin
marclenoir20051-Jun-04 11:22
marclenoir20051-Jun-04 11:22 
AnswerRe: How to catch all that is doing on a computer Pin
Dave Kreskowiak2-Jun-04 2:37
mveDave Kreskowiak2-Jun-04 2:37 
GeneralLet's make it more simple. Pin
Anonymous2-Jun-04 10:31
Anonymous2-Jun-04 10:31 
GeneralRe: Let's make it more simple. Pin
Dave Kreskowiak2-Jun-04 12:06
mveDave Kreskowiak2-Jun-04 12:06 
GeneralMimic rtlMoveMemory for Speed Pin
Pugman8121-Jun-04 9:42
Pugman8121-Jun-04 9:42 
I have replaced most of the for loops with Array.Copy to mimic the functions of the dll call. But this did not have the speed increase that i was looking for. still same processor time at 100 for 3 seconds. I have also tried a few things like encrypting a 1.4 meg file with the 6.0 version of the blowfish program and it takes seconds. I try with the .Net conversion and it take around 10 minutes to do the same thing. Throughout the conversion of this 6.0 project i have had to make many sub procedures to mimic the function of this dll. I believe the extensive use of this procedures are what is slowing me down.

The function is pretty cool if i work in .net. I need an outside call to do some of the work for me because my app is straining a little to hard. I need something that does the same thing that the rtlMoveMemory does when you send it something like this
<br />
Public Declare Sub CopyMem Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)<br />

<br />
Dim LongValue as Long = 1415936116<br />
Dim BB() as Byte<br />
CopyMemory( BB(0), LongValue , 4)<br />

and what this does is turn this number into binary
looks like this BB(0) = 116 : BB(1) = 120 : BB(2) = 101 : BB(3) = 84 in the byte array. I also need a function that does this process in reverse. I had to mimic this with extensive for loops to check each bit. If i could find an outside call to do this same thing. I also found out if the value is greater than 2147483648 which is 2 ^ 31 and is also the highest value bit in a 32 bit number. the function causes the value to go negative and subtract any other amount that the bits equal preceding that last bit.

If there is any outside funtion can be used that would speed up my code. I really need to know because with the .net conversion that i am using now. If i didnt have a 6000 RPM Fan i would cook my P4 2.8 GHZ Processor. Oh yes a article on application throttling would be great too if anyone knows where i could read one.
GeneralRe: Mimic rtlMoveMemory for Speed Pin
Dave Kreskowiak1-Jun-04 15:22
mveDave Kreskowiak1-Jun-04 15:22 
Generalwinsock error Pin
GaryKoh1-Jun-04 4:24
GaryKoh1-Jun-04 4:24 
GeneralRe: winsock error Pin
Dave Kreskowiak1-Jun-04 4:31
mveDave Kreskowiak1-Jun-04 4:31 
GeneralRe: winsock error Pin
GaryKoh1-Jun-04 5:24
GaryKoh1-Jun-04 5:24 
GeneralRe: winsock error Pin
Dave Kreskowiak1-Jun-04 5:53
mveDave Kreskowiak1-Jun-04 5:53 
GeneralRe: winsock error Pin
GaryKoh1-Jun-04 7:32
GaryKoh1-Jun-04 7:32 
GeneralRe: winsock error Pin
Dave Kreskowiak1-Jun-04 14:58
mveDave Kreskowiak1-Jun-04 14:58 
GeneralRe: winsock error Pin
GaryKoh1-Jun-04 20:45
GaryKoh1-Jun-04 20:45 
GeneralRe: winsock error Pin
Dave Kreskowiak2-Jun-04 0:30
mveDave Kreskowiak2-Jun-04 0:30 
GeneralRe: winsock error Pin
GaryKoh2-Jun-04 14:48
GaryKoh2-Jun-04 14:48 
GeneralRe: winsock error Pin
Dave Kreskowiak3-Jun-04 12:11
mveDave Kreskowiak3-Jun-04 12:11 
GeneralRe: winsock error Pin
Dave Kreskowiak4-Jun-04 0:13
mveDave Kreskowiak4-Jun-04 0:13 
GeneralRe: winsock error Pin
GaryKoh6-Jun-04 18:00
GaryKoh6-Jun-04 18:00 
GeneralRe: winsock error Pin
Dave Kreskowiak7-Jun-04 0:02
mveDave Kreskowiak7-Jun-04 0:02 
GeneralRe: winsock error Pin
GaryKoh7-Jun-04 2:13
GaryKoh7-Jun-04 2:13 
QuestionHow do I receive an external file name from within an application? Pin
Alan Hallett1-Jun-04 4:06
Alan Hallett1-Jun-04 4:06 
AnswerRe: How do I receive an external file name from within an application? Pin
Dave Kreskowiak1-Jun-04 4:20
mveDave Kreskowiak1-Jun-04 4:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.