Recent Posts

Pages: [1] 2 3 ... 10
1
Open Forum / The Dark Web
« Last post by Charles Pegge on October 20, 2019, 05:12:12 AM »

Jamie Bartlett - The Dark Net
https://www.youtube.com/watch?v=izOFfw12eDQ
5 Nov 2018
35 mins
2
Example Code / Re: New error message: unable to assign new address
« Last post by Charles Pegge on October 19, 2019, 06:20:31 AM »
Hi Roland,

Since you are explicitly passing addresses (which are sys variables), I would do it this way:

Code: [Select]
     
    '   CustomPaint(&pData, ps.hdc, &ps.rcPaint, ps.fErase)
    '   CustomPaint(&pData, wParam, &rc, true)
    sub CustomPaint(sys pDat, hDC, prcDirt, bool bErase)
    ====================================================
        RECT rcDirty at prcDirt
        CustomData pData at pDat
        int x, y
        RECT r
        sys hBrush
       
       
        ' Note we paint only the cells overlaping with the dirty rectangle.
        for y = (rcDirty.top / CELLSIZE) to (rcDirty.bottom / CELLSIZE)
            for x = (rcDirty.left / CELLSIZE) to (rcDirty.right / CELLSIZE)
                if mod((x+y),2)=0 then hBrush=pData.hbrLight else hBrush=pData.hbrDark
                SetRect(&r, x * CELLSIZE, y * CELLSIZE, (x+1) * CELLSIZE, (y+1) * CELLSIZE)
                FillRect(hDC, &r, hBrush)
            next x
        next y
    end sub
     
    '   CustomDoubleBuffer(&pData, &ps)
    sub CustomDoubleBuffer(sys pDat, pPaintStruc)
    =============================================   
        CustomData pData at pdat
        PAINTSTRUCT pPaintStruct at pPaintStruc
        ...
     
3
Example Code / New error message: unable to assign new address
« Last post by Arnold on October 19, 2019, 02:17:33 AM »
Hi Charles,

There is so much going on in the world and it is really hard to focus on Oxygenbasic.
I would like to refer to examples\WinGui\Doublebuff.o2bas. There is a new message with version 0.2.8 in line 142, 143: unable to assign new address.

If I modify line 142,143:
...
        CustomData *pData : &pData = &pDat
        PAINTSTRUCT *pPaintStruct : &pPaintStruct = &pPaintStruc
...

then the app will work fine. Oxygen is now more strict to apply the * pointer symbol? Are there some rules for using * and @ / & ? I guess there is some similarity to the C language but also some differences?

Roland
4
Example Code / Re: Small typo?
« Last post by Charles Pegge on October 15, 2019, 01:51:32 AM »
Each anomaly reported gets close scrutiny wherever possible. The problems are often concealed, and are best handled individually, as soon as they appear.
5
Example Code / Re: Small typo?
« Last post by Arnold on October 09, 2019, 12:13:22 AM »
I am a bit helpless. I found this example because I searched for the usage and difference of extends, of, from compared with the keyword has. The purpose was only to report a different behaviour of an app, not to ask about COM.

Perhaps there is a possibility to place a notification about bugs / error messages of some demos? It is a bit confusing to always add a new topic for a message that is only meant to report a different result when testing a new beta release. I would not even expect a reply, only if I am completely wrong.

6
Example Code / Re: Small typo?
« Last post by John on October 06, 2019, 09:56:02 AM »
Great to hear the COM talk here on the forum.
7
Example Code / Re: Small typo?
« Last post by Charles Pegge on October 06, 2019, 09:28:53 AM »
Thanks Roland,

The underlying problem is that void* derivatives translate to sys. LPUNKNOWN punkouter should be a pointer to the Iunknown class instead of being defined as a void pointer (inc\COM\comutil.inc).

In any case the line can be omitted since null is the initial value.
8
Example Code / Small typo?
« Last post by Arnold on October 05, 2019, 03:38:25 AM »
Hi Charles,

I think there is a typo in examples\COM\sapDemo1.o2bas? If I replace line 32 with:
pUnkouter=0
then the app works fine.

Roland
9
Bugs & Feature Requests / Re: Corrupted executable generated.
« Last post by Brian Alvarez on October 01, 2019, 03:24:13 PM »
 Thanks Charles, you are awesome. :)
10
Bugs & Feature Requests / Re: Corrupted executable generated.
« Last post by Charles Pegge on October 01, 2019, 04:14:31 AM »
Yes, that would be very helpful, Roland. I am also lookin for ways of deliberately creating this error.
Pages: [1] 2 3 ... 10