| |
|
|
Sebastian König | Hi,
as i me straight time something moreover with the to längerer Time angekündigten DLL-Tutorial for Profan2Cpp keep busy wished, is me one bow in the Header structs.ph noticed. The row for CREATESTRUCT sounds: CompileMarkSeparationCREATESTRUCT = lpCreateParams&, hInstance&, hMenu&, hwndParent&, cy%, cx%, y%, x%, style&, lpszName&, lpszClass&, dwExStyle&; > The problem are The attributes cy%, cx%, y% and x% - hierbei ought to it itself circa LongInts deal...
of course standing in the MSDN-Doku to structure just int, but this Datentyp is under 32bit-windows just as big like a LongInt, means 4 byte. %-attributes are but only 2 byte big, so the structure in this shape not correctly. use can.
Möglicherweise are yet further Structures concerned, where I me there not sure be. with WNDCLASS to that example are cbClsExtra and cbWndExtra correctly as LongInt declared, though too these attributes in the MSDN only as int stand.
MfG
Sebastian |
|
|
| Windows XP, XProfan/Profan² 4.5 bis 11 Profan2Cpp-Homepage: [...] Alte Profan²-Seite: [...] | 04/11/09 ▲ |
|
|
|
|
| How affects now this Error from?
mfg |
|
|
| |
|
|
|
RGH | thanks for Info!
i'll the in the next Version adjust.
Since I The STRUCTS.PH not yourself created have, separate of a (former) Profaner übernommen have, can I unfortunately not exclude, that further Error include are. who Error finds, ought to tappt im dunkeln here or me by Mail report, so tappt im dunkeln korrigiert and be/or a korrigierte (gladly too erweiterte) Version of STRUCTS.PH available to put.
Greeting Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 04/11/09 ▲ |
|
|
|
|
Sebastian König | Peter Bierbachh
How affects now this Error from?
to that example then, if you a Window-procedure self write and WM_CREATE behandeltst. Konkret I had me gewundert, that the manuelle Access to one CREATESTRUCT-Attribut over his Offset funktionierte, during The Using the structure fehlschlug. After kurzer Search pushed I then on the Error in the Definition.
MfG
Sebastian |
|
|
| Windows XP, XProfan/Profan² 4.5 bis 11 Profan2Cpp-Homepage: [...] Alte Profan²-Seite: [...] | 04/11/09 ▲ |
|
|
|