- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
using the source code at the end i have problems with the line:
bSt=XPlaceBitmap(xDC1, xBmp1, 1,1,pBreiteDarstellung,pHoeheDarstellung)
as the result i am getting bSt == .false.
What is wrong with the source code? Everything else is working, from my point of view.
Thanks in advance
Frank
source code :
xDC1 = XMemoryDC(pBreiteDarstellung,pHoeheDarstellung)
CALL XSetViewport(xDC1, 1, 1, pBreiteDarstellung,pHoeheDarstellung)
bSt = XFillViewport(xDC1, X_BRUSH(BS_SOLID, XCOLOR_blue, 0))
bSt = XGetBitmap(xDC1, xBmp1,1, 1, pBreiteDarstellung,pHoeheDarstellung)
bSt = XSaveBitmap(xBmp1, "D: empTemp1.bmp" )
bSt = XDeleteBitmap(xBmp1)
bSt = XDeleteDC(xDC1)
xDC1 = XMemoryDC(pBreiteDarstellung,pHoeheDarstellung)
bSt = XFillViewport(xDC1, X_BRUSH(BS_SOLID, XCOLOR_yellow, 0))
CALL XSetViewport(xDC1, 1, 1, pBreiteDarstellung,pHoeheDarstellung)
bSt=XCreateBitmap(xBmp1, "D: empTemp1.bmp")
bSt = XSaveBitmap(xBmp1, "D: empTemp2.bmp")
bSt=XPlaceBitmap(xDC1, xBmp1, 1,1,pBreiteDarstellung,pHoeheDarstellung)
bSt = XDeleteBitmap(xBmp1)
bSt = XDeleteDC(xDC1)
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My system is based on:
Win XP Prof German SP 2
VS2005 standard German
IVF 9.1.033
XEffort 1.2.20
Thanks for help in advance
Frank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well, no reason to worry if it works
Out of curiosity, what does debugger say when you type bSt, x in the Watch or Quick Watch window? If it's non-zero, there's even less to worry.
The reason might be a "bug" in Xeffort, whereby I (ab)used VF free mixing of integer/logical types too liberally, so you might get false negatives for logical variables. So, erm, don't trust the return value TOO much. I'll probably fix it... some day.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry for being slighly incorrect with saying its works. All steps before are working.
XPlaceBitmap does not work. (its has worked on VS2003 German with IVF 9.0.025) No Bitmap is loaded.
At this place thanks for the tool XEffort. It has helpt me a lot.
Frank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
iSt=GetLastError() gives the result iSt=6
Frank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page