|
'don't yet have a clue how to convert the data to text form, never reached
'this point on execution
'Temp = StrConv(Buffer, vbUnicode)
'strFileName = Left$(Temp, InStr(Temp, Chr$(0)) - 1)
Would be somthing like:
Temp = ConvertToStringFromBytes(Buffer)
strFileName = Left(Temp, InStr(Temp, Chr(0)) - 1)
Return strFileName
here's the function :
Public Function ConvertToStringFromBytes(ByRef abData() As Byte) As String
Return System.Text.Encoding.Default.GetString(abData)
End Function
Hope that helps
|
|
|
|
|
Hey, guys I know how to diable taskmanager in windows xp/2000 but I didn't know how to trap alt+f4 in windows xp/2000 ,can i have to program low level keyboard hooking
|
|
|
|
|
See this[^] article by George Mamaladze. It's in C#, but is covertable to VB.NET.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hey dave can the code is in vb available and it should work in windows xp/2000/nt
|
|
|
|
|
Are you trying to do this in VB6 or VB.NET?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
|
Iam making a project for a school and until an d unless password is supplied the user supposed not to leave the form
|
|
|
|
|
So what's the question? What are you having a problem with?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi Dave:
I think the author has put the question in the subject itself. 'not to allow the mouse cursor to go out of Active Window Context'. Something like what you see in VirtualPC, without VirtualPC additions installed.
Deepak Kumar Vasudevan
Personal Web: http://vdeepakkumar.netfirms.com/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
The mouse cursor and the focus are two completely different things. The question still stands...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Can any one can tell me how can i know whic O.S. is running. ie,windows xp/2000/95/98/nt
|
|
|
|
|
system.environment.osversion class
it has platform and a version properties that you can use to determine which os and version.
-jim
|
|
|
|
|
|
|
how can i lock the file so that no one can delete it.
|
|
|
|
|
You set the permissions so that they do not have ownership of the file.
"People who never make mistakes, never do anything."
My blog
http://toddsnotsoamazinglife.blogspot.com/
|
|
|
|
|
I want to know to lock the file or using vb code
|
|
|
|
|
What are you getting at?
You want it so noone can delete the file, ever? Or just when you program is running?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
Open it with Exclusive access and leave it open for the duration of your application if you want. But, this is considered VERY BAD practice.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
How about folders and how opening file with exclusive excess
|
|
|
|
|
You can't lock a folder.
You've never specified what language your using, so I'm going to assume VB6. Open statement[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi
There is a form named "Form1" and a function for creating its object. the form name is passed to the function and creates an object
public function CreateObj(p_sformName as string) as object
dim obj as object
' create the object of a form. The form's name is passed from the calling place
set obj = new p_sformname
end sub
Is it possible
Thank you in advance
Panal prasad
|
|
|
|
|
panalprasad wrote:
set obj = new p_sformname
the syntax is incorrect. as you wrote it, you try to new an object which type is p_sformName.
replace it with obj = new String(p_sformname)
this will create a new string which content is identical to the parameter passed to the CreateObj() function.
now, if you want to create an object with another type than String, you must use a constructor that gets a String as parameter ; if it doesn't exist, you'll have to create it certainly...
but i cannot help you more as your post is a bit too vague for me to know what you're looking for exactly
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|