Re: copymemory basic question
- From: "Karl E. Peterson" <karl@xxxxxxxx>
- Date: Wed, 31 Aug 2005 10:51:44 -0700
J French wrote:
> Just for fun, it might be nice to have a SwapStr() routine using
> CopyMemory
Rhetorical? (That was the initial "answer" in the thread, of course.)
Private Sub SwapPtrs(s1 As String, s2 As String)
Static lpTmp As Long
lpTmp = StrPtr(s1)
Call CopyMemory(ByVal VarPtr(s1), ByVal VarPtr(s2), 4&)
Call CopyMemory(ByVal VarPtr(s2), lpTmp, 4&)
End Sub
--
Working Without a .NET?
http://classicvb.org/petition
.
- Follow-Ups:
- Re: copymemory basic question
- From: Donald Lessau
- Re: copymemory basic question
- Prev by Date: Re: copymemory basic question
- Next by Date: Re: copymemory basic question
- Previous by thread: Re: copymemory basic question
- Next by thread: Re: copymemory basic question
- Index(es):
Relevant Pages
|
Loading