Doubleblitz lib not working here!
BlitzPlus Forums/BlitzPlus Programming/Doubleblitz lib not working here!
| ||
I was using the Blitzdouble dll (userlibs - http://www.blitzbasic.com/codearcs/codearcs.php?code=1905) and when i tried the example given it gave a error, something like expecting an 8 bit bank but having 0. But i checked the example and it's correct: "; Create some banks to store the double variables Local MyDouble_1 = CreateBank(8) Local MyDouble_2 = CreateBank(8) Local MyDouble_3 = CreateBank(8) Local MyDouble_4 = CreateBank(8) Local MyDouble_5 = CreateBank(8) Print "Assign from string" DoubleAssignFromString(MyDouble_5,"3.2361567664646")" It crashes here! What is wrong? |
| ||
Well off the bat I can see 1 problem.. you have a double quote on the end, should beDoubleAssignFromString(MyDouble_5,"3.2361567664646") |
| ||
The last " was to mean end quote... But your're right I'll use bbcode: ; Create some banks to store the double variables Local MyDouble_1 = CreateBank(8) Local MyDouble_2 = CreateBank(8) Local MyDouble_3 = CreateBank(8) Local MyDouble_4 = CreateBank(8) Local MyDouble_5 = CreateBank(8) Print "Assign from string" DoubleAssignFromString(MyDouble_5,"3.2361567664646") The debug window error i get reads: Blitz Double Bank Size Error Bank size is: 0 should be 8 Any suggestion on what might be wrong?? |
| ||
Local MyDouble_1 = CreateBank(8) Local MyDouble_2 = CreateBank(8) Local MyDouble_3 = CreateBank(8) Local MyDouble_4 = CreateBank(8) Local MyDouble_5 = CreateBank(8) Print "Assign from string" DoubleAssignFromString(MyDouble_5,"3.2361567664646") Print Double2String(MyDouble_5) ;= 3.2361567664646 Print Double2String(MyDouble_1) ;= 0 WaitKey() this works here get the lastdll from the thread !!! |
| ||
Yes i did get the last dll from the thread and still have the same problem! |
| ||
Are you sure you're spelling everything exactly correctly? Sometimes I spell things wrong and everything messes up and I can't figure out why until I look at how I spelled some things. Like this: Local MyDouble_5 = CreateBank(8) DoubleAssignFromString(MyDuoble_5,"3.2361567664646")This would produce an error. |