Click here to Skip to main content
15,892,537 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
AnswerRe: My code is showing syntax error in insert into statement can you please help me with a solution guys Pin
Richard MacCutchan31-Oct-18 6:54
mveRichard MacCutchan31-Oct-18 6:54 
Questionvisual zkteco Pin
Member 1402998229-Oct-18 11:38
Member 1402998229-Oct-18 11:38 
AnswerRe: visual zkteco Pin
Richard MacCutchan30-Oct-18 5:21
mveRichard MacCutchan30-Oct-18 5:21 
QuestionHow to create an custom error message box , that I can used for all my forms using vb.net Pin
Member 140121708-Oct-18 8:48
Member 140121708-Oct-18 8:48 
AnswerRe: How to create an custom error message box , that I can used for all my forms using vb.net Pin
Mycroft Holmes8-Oct-18 11:31
professionalMycroft Holmes8-Oct-18 11:31 
AnswerRe: How to create an custom error message box , that I can used for all my forms using vb.net Pin
JR21211-Oct-18 10:35
JR21211-Oct-18 10:35 
QuestionHow to add a contact in google contacts from vb 2010 Pin
_nixz_7-Oct-18 22:04
_nixz_7-Oct-18 22:04 
AnswerRe: How to add a contact in google contacts from vb 2010 Pin
Richard MacCutchan7-Oct-18 22:57
mveRichard MacCutchan7-Oct-18 22:57 
GeneralRe: How to add a contact in google contacts from vb 2010 Pin
_nixz_9-Oct-18 3:06
_nixz_9-Oct-18 3:06 
QuestionCreating random access file with visual basic.net Pin
Member 139824717-Oct-18 11:48
Member 139824717-Oct-18 11:48 
AnswerRe: Creating random access file with visual basic.net Pin
Richard MacCutchan7-Oct-18 21:57
mveRichard MacCutchan7-Oct-18 21:57 
QuestionProblem with System.Text.Encoding, Solved Pin
mo14923-Oct-18 11:58
mo14923-Oct-18 11:58 

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.