Click here to Skip to main content
15,923,557 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionVb.net and Crystal Report Pin
Bj Molo15-Nov-18 1:38
Bj Molo15-Nov-18 1:38 
AnswerRe: Vb.net and Crystal Report Pin
Eddy Vluggen15-Nov-18 1:45
professionalEddy Vluggen15-Nov-18 1:45 
GeneralRe: Vb.net and Crystal Report Pin
Bj Molo15-Nov-18 1:52
Bj Molo15-Nov-18 1:52 
GeneralRe: Vb.net and Crystal Report Pin
Eddy Vluggen15-Nov-18 2:05
professionalEddy Vluggen15-Nov-18 2:05 
QuestionHow can we acheive using Datagridview in dotnet Pin
Member 476123413-Nov-18 19:28
Member 476123413-Nov-18 19:28 
AnswerRe: How can we acheive using Datagridview in dotnet Pin
Eddy Vluggen14-Nov-18 0:36
professionalEddy Vluggen14-Nov-18 0:36 
QuestionSorting rows as specific template Pin
User 1367511413-Nov-18 4:02
User 1367511413-Nov-18 4:02 
AnswerRe: Sorting rows as specific template Pin
Richard MacCutchan13-Nov-18 5:11
mveRichard MacCutchan13-Nov-18 5:11 
QuestionVB6 AND LIST SQLSERVER Pin
sal2112-Nov-18 20:53
sal2112-Nov-18 20:53 
AnswerRe: VB6 AND LIST SQLSERVER Pin
Eddy Vluggen14-Nov-18 0:32
professionalEddy Vluggen14-Nov-18 0:32 
QuestionProblem with Xml Path Pin
mo149211-Nov-18 13:48
mo149211-Nov-18 13:48 
QuestionRe: Problem with Xml Path Pin
Richard MacCutchan11-Nov-18 22:08
mveRichard MacCutchan11-Nov-18 22:08 
AnswerRe: Problem with Xml Path; Closed here Pin
mo149211-Nov-18 23:46
mo149211-Nov-18 23:46 
QuestionAutoincrement with strings Pin
allukasan7-Nov-18 22:08
allukasan7-Nov-18 22:08 
AnswerRe: Autoincrement with strings Pin
Richard MacCutchan7-Nov-18 22:22
mveRichard MacCutchan7-Nov-18 22:22 
AnswerRe: Autoincrement with strings Pin
Eddy Vluggen8-Nov-18 1:41
professionalEddy Vluggen8-Nov-18 1:41 
QuestionMidi Pin
lucadacomo5-Nov-18 0:32
lucadacomo5-Nov-18 0:32 
AnswerRe: Midi Pin
Dave Kreskowiak5-Nov-18 2:18
mveDave Kreskowiak5-Nov-18 2:18 
AnswerRe: Midi Pin
Richard MacCutchan5-Nov-18 2:39
mveRichard MacCutchan5-Nov-18 2:39 
QuestionData conversion error of the array. Pin
Member 136558671-Nov-18 2:06
Member 136558671-Nov-18 2:06 
Hello all.

I am using the FMOD libraries to perform a spectrum analyzer, the results of the call to the library store in the array 'Spectrum ()' type 'Single', later these are passed to the array 'InSpect ()' type 'Integer '

The problem I have in the conversion of 'Single to Integer' gives overflow error, once I examine the data in the array 'InSpect ()' I have nothing are empty, while in the array 'Spectrum ()' are all the data, I have not yet found such an error or failure.

Let's see if you can help me, Thanks.

The code is following (summarized):


VB
Dim Spectrum(1023) As Single
Dim InSpect(1023) As Integer
​Dim i as Long
Dim DetSpectro As Long


  Call FMOD_System_GetSpectrum(system, Spectrum(0), 512, count, FMOD_DSP_FFT_WINDOW_TRIANGLE)
  DetSpectro = system
  CopyMemory = Spectrum(0), ByVal DetSpectro , 1024 * 4   'convert long into integer.
   
    For i = 1 To 1023 Step 1
          InSpect(i) = Spectrum(i)     'convert Single to Integer    overflow error
    Next



THX.
AnswerRe: Data conversion error of the array. Pin
Richard MacCutchan1-Nov-18 2:27
mveRichard MacCutchan1-Nov-18 2:27 
GeneralRe: Data conversion error of the array. Pin
Member 136558671-Nov-18 8:25
Member 136558671-Nov-18 8:25 
GeneralRe: Data conversion error of the array. Pin
Richard MacCutchan1-Nov-18 8:51
mveRichard MacCutchan1-Nov-18 8:51 
QuestionMy code is showing syntax error in insert into statement can you please help me with a solution guys Pin
Member 1403944131-Oct-18 4:48
Member 1403944131-Oct-18 4:48 
AnswerRe: My code is showing syntax error in insert into statement can you please help me with a solution guys Pin
Richard Deeming31-Oct-18 5:05
mveRichard Deeming31-Oct-18 5:05 

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.