Click here to Skip to main content
15,887,267 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionmultipage problem in printpreview? Pin
JC.KaNNaN18-Jun-09 4:03
JC.KaNNaN18-Jun-09 4:03 
AnswerRe: multipage problem in printpreview? Pin
Luc Pattyn18-Jun-09 4:47
sitebuilderLuc Pattyn18-Jun-09 4:47 
GeneralRe: multipage problem in printpreview? Pin
JC.KaNNaN18-Jun-09 22:19
JC.KaNNaN18-Jun-09 22:19 
QuestionEtracting certain text from PDF document into a database Pin
kshincsk18-Jun-09 3:31
kshincsk18-Jun-09 3:31 
AnswerRe: Etracting certain text from PDF document into a database Pin
Dave Kreskowiak18-Jun-09 9:58
mveDave Kreskowiak18-Jun-09 9:58 
GeneralRe: Etracting certain text from PDF document into a database Pin
kshincsk19-Jun-09 0:58
kshincsk19-Jun-09 0:58 
GeneralRe: Etracting certain text from PDF document into a database Pin
Dave Kreskowiak19-Jun-09 4:27
mveDave Kreskowiak19-Jun-09 4:27 
QuestionCopyMemory in VB.Net Pin
Knight_Rider18-Jun-09 2:57
Knight_Rider18-Jun-09 2:57 
Hi,
i got a DSP function for a media player here. The problem is that it was made for VB 6 and uses "CopyMemory".
I read the article on "CopyMemory in .Net" here but the result i got isn't working :-S
This is the original code:

Public Sub SBVocalCut32(ByVal handle As Long, ByVal channel As Long, ByVal buffer As Long, ByVal length As Long, ByVal user As Long)<br />
Dim SBVocCut32Buf() As Single, SBVocCut32CSample As Long<br />
Dim SBVocCut32DM As Single<br />
ReDim SBVocCut32Buf(length / 2) As Single<br />
<br />
Call CopyMemory(SBVocCut32Buf(0), ByVal buffer, length)<br />
    <br />
    For SBVocCut32CSample = 0 To length / 2 - 1 Step 2<br />
        SBVocCut32DM = ((0 - SBVocCut32Buf(SBVocCut32CSample)) + SBVocCut32Buf(SBVocCut32CSample + 1)) / 2<br />
        SBVocCut32Buf(SBVocCut32CSample) = SBVocCut32DM<br />
        SBVocCut32Buf(SBVocCut32CSample + 1) = SBVocCut32DM<br />
    Next SBVocCut32CSample<br />
    <br />
<br />
Call CopyMemory(ByVal buffer, SBVocCut32Buf(0), length)<br />
End Sub


Could anyone be so kind and help me out with the copymemory lines in here?

Thx!
AnswerRe: CopyMemory in VB.Net Pin
Luc Pattyn18-Jun-09 3:34
sitebuilderLuc Pattyn18-Jun-09 3:34 
GeneralRe: CopyMemory in VB.Net Pin
Knight_Rider18-Jun-09 3:39
Knight_Rider18-Jun-09 3:39 
GeneralRe: CopyMemory in VB.Net Pin
Luc Pattyn18-Jun-09 3:43
sitebuilderLuc Pattyn18-Jun-09 3:43 
GeneralRe: CopyMemory in VB.Net Pin
Knight_Rider18-Jun-09 3:47
Knight_Rider18-Jun-09 3:47 
GeneralRe: CopyMemory in VB.Net Pin
Luc Pattyn18-Jun-09 3:51
sitebuilderLuc Pattyn18-Jun-09 3:51 
GeneralRe: CopyMemory in VB.Net Pin
Knight_Rider18-Jun-09 4:08
Knight_Rider18-Jun-09 4:08 
GeneralRe: CopyMemory in VB.Net Pin
Henry Minute18-Jun-09 5:27
Henry Minute18-Jun-09 5:27 
GeneralRe: CopyMemory in VB.Net Pin
Luc Pattyn18-Jun-09 5:30
sitebuilderLuc Pattyn18-Jun-09 5:30 
QuestionWork on Ctrl +C in PropertyGridSelectedItem Pin
VB 8.018-Jun-09 0:57
VB 8.018-Jun-09 0:57 
QuestionVisual Basic Pin
ibrahimsaa17-Jun-09 20:29
ibrahimsaa17-Jun-09 20:29 
AnswerRe: Visual Basic Pin
Rajesh Anuhya17-Jun-09 20:35
professionalRajesh Anuhya17-Jun-09 20:35 
AnswerRe: Visual Basic Pin
0x3c017-Jun-09 20:47
0x3c017-Jun-09 20:47 
GeneralRe: Visual Basic Pin
LCARS x3217-Jun-09 21:05
LCARS x3217-Jun-09 21:05 
GeneralRe: Visual Basic Pin
0x3c017-Jun-09 23:24
0x3c017-Jun-09 23:24 
GeneralRe: Visual Basic Pin
Netblue18-Jun-09 9:05
Netblue18-Jun-09 9:05 
GeneralRe: Visual Basic Pin
dan!sh 17-Jun-09 21:25
professional dan!sh 17-Jun-09 21:25 
GeneralRe: Visual Basic Pin
0x3c017-Jun-09 23:36
0x3c017-Jun-09 23:36 

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.