|
Hi
thanks a lot. array size is fixed. if i use redim it is intializing every time. the code should be in such a way that when the timer fires
the msg to be sent should be appended to the list of previous msgs.
regards
|
|
|
|
|
...use ReDim Preserve and it will not reinitialze. Regards: Didi
|
|
|
|
|
ReDim Preserve is a painful solution, the memory usage is nasty as you need to have allocated both the old and new memory at the same time.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Yes, you are right, but we were talking about a dirty easy solution to save a presetation appointment tomorow. The guy is going to port the solution to .NET later. I never saied that this is good programming practice.
Regards: Didi
|
|
|
|
|
I've seen so much 'quick and dirty for a demo' go into production code that I avoid it like the plague.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
There are collections in VB6, try:
Option Explicit
Private queue As Collection
Private Sub Class_Initialize()
Set queue = New Collection
End Sub
Public Sub Enqueue(newItem As String)
queue.Add newItem
End Sub
Public Function Dequeue() As String
Dim ret As String
ret = queue.item(1)
queue.Remove 1
Dequeue = ret
End Function
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Zing!
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
Hello All,
I have a question about Antivirus. How the antivirus work. how the antivirus check this exe have these function which can effect on data.
Because Exe is created in Encoded form.
Thanks
If you can think then I Can.
|
|
|
|
|
eg_Anubhava wrote: Because Exe is created in Encoded form.
What ?
Seriously, I don't know why you ask this. If you want to write an antivirus, forget it, you don't appear to come close to knowing enough to do that.
If you want to write a virus, thankfully, that is plainly beyond you, also.
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
|
|
|
|
|
I want to Know about antivirus functionality ?
Can u discribe or not?
If you can think then I Can.
|
|
|
|
|
And what would this have to do with VB. I know you have the wrong forum I think you may even have the wrong site.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Is MFC VC++ is suitable for it? I am not trying to write code for Antivirus or Virus. My purpose is finding Logic for behind of ANTIVIRUS Functionality.
If you can think then I Can.
|
|
|
|
|
eg_Anubhava wrote: My purpose is finding Logic for behind of ANTIVIRUS Functionality
Then read some of the white papers available from the various vendors, that what they are for clickety[^]
Your question about the relevance of a language to the logic does not make sense.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
eg_Anubhava wrote: am not trying to write code for Antivirus or Virus
Then you're in the wrong place.
eg_Anubhava wrote: My purpose is finding Logic for behind of ANTIVIRUS Functionality.
If you're not writing an antivirus, I can only assume you're writing a virus.
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
|
|
|
|
|
I thin u have not answare of my question?
You are only wasting of my time.
If you can think then I Can.
|
|
|
|
|
...no you are wasting there time...
Regards: Didi
|
|
|
|
|
What is it? My question is Logically strong. So how can u say it.
If you can think then I Can.
|
|
|
|
|
You don't say, what you need your info for, so it looks like you are hiding something. Plus: if you realy work for the company, that the link on your resume is pointing at, you can ask your coleagues. By the way, you question is not a vb related question.
Regards: Didi
|
|
|
|
|
Yes u r right.It's not my official metter.
It's a question for finding Logics. Nothing to do anything.
OK
If you can think then I Can.
|
|
|
|
|
It has nothing to do with anything we discuss on this site. If you're not writing code, then your question does not belong here. Any question related to viruses and antivirus is treated with suspicion because of the plethora of morons trying to write viruses.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
It's reality i am not writing code for virus or antivirus. But a question is generate in my mind how the antivirus check files?
So i am trying to find out.
If you can think then I Can.
|
|
|
|
|
OK, well, if you're interested, then you should read the white papers you were linked to.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
No, you are wasting ours.
|
|
|
|
|
How can u says it. My question is Logically strong.
If you can think then I Can.
|
|
|
|
|
He's asked the same thing in the past (just last month) and has to do with using send keys and his .exe is getting tagged as a virus.
How about not using send keys? Then we can all move on in life and be happy!
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|