Hello SROD and RSTS
Excuse me for the long time for the answer, but i'm disturbed in my deskroom, and the man don't want to go out

The time is so long with him.....but i don't dare say to him, that i talk with my personal MASTER and i like do that all the day, and today it's a problem very important for me
Rsts wrote:Where's your PB code?
cheers
It is here
Code: Select all
ProcedureDLL AccessMemory(*BSTR)
MessageRequester("", Str(PeekL(*BSTR)))
EndProcedure
Is it not enough big ???
My master at me wrote:Here's the same code in PB :
i = 10
j = i
In fact the VB code create "allocatememory"
Put the number 10
Read the memory so 10
Open MsgBox with the adress of pointer memory and the value...
Apparently that's works like in PB :roll:
My big Master wrote:Okay you can use PB's memory commands if you really wish which allocate heap memory, but what exactly are you trying to achieve?
I'm always in my problem of pass array between VB/PB/DLL

Because since a month , i have always not found a solution who do all of that :
1/ Send an array string from VB to DLL PB , modify it, (DIM, REDIM, ADD line) and return to VB
2/ Send an array string from PB to DLL PB , modify it, (DIM, REDIM, ADD line) and return to PB
3/ And this two things with the same procedure in the DLL :roll:
I have try several of the thousand method that you have say to me, but they are always a problem somewhere
1/ I have try byref, but the pointers of the array DLL disappears because, like you have good explain to me the HEAP (Excuse me the last time i have say HEAD

) is different.
So it's difficult to manage pointers
2/ I have try by ARRAY, and the wonderfull code that you have give to me with PROTOTYPE
But that's not works with VB
3/ I have try the fantastic method of XOMBIE, i love ASM, but that's affraid me, because i don't understand anything
4/ I have try by string joined "procedurereturn Array(1) + Array(2)" but i found this method not nice, and it's limited by 32k by variable, and i surely manage a day big array of DATA
5/ Today i have try also by PIPE, with the great code of NICO and a code of VB.
Apparently that's works, but i don't all understand, and i have a new idea for bloc memory
6/ I have try also by bloc memory, with the help of CPLBATOR, but the sizeofarray and REDIM, DIM not match
7/ Then this is me for the Xe method

I try another time the block memory, but i try in first time VB, because it's him the real problem
VB can't do anything

Don't want this, or that...don't write like this, like that...
1/ So, i have found the above code, for create bloc memory
2/ I put inside, my array of string, in the VB code
3/ I read the bloc in PB DLL
4/ I modify the array (REdim, Dim, add line) in the DLL
5/ I recover my new array, all new and modified
The other day, you have say to me they are hundred method to do what i want...
But KCC don't want so much...just
ONE who works and do all what i have say above..it's all
It's the first time since i have begin PB, where i can't do what i want...and more i code...more i don't understand, and mix in my head, all this methods
I have at the least, 20 differents codes, it do each a thing, but have problem at the end

I don't know what i must do.....KCC is lost this time...i'm tired to try, try try have hope, and the day after cry because that's not do all i want .... i'm so sad
If you have a super big, great idea like you have always...pleeeeaaaasse !!!
Say to your floor clothe what is the more simple, and professionnal for that an EXE VB/PB and DLL can deal data between them :roll:
Thanks a lot MASTER
