Compilation of patternXP

Post Reply
User avatar
chahur
Posts: 218
Joined: Sun Nov 27, 2011 5:19 pm

Compilation of patternXP

Post by chahur »

Hello

I try to compile the patternXP project with Visual C++ 2010 express, but I have several problems.
First one is in XmemDC.cpp :
Line 3 : BEGINBUFFEREDPAINT and Line 4 : ENDBUFFEREDPAINT
are not known.

Idem with CCriticalSection in RecQueue.h Line 51.

I suspect also that the version of MFC42 is not exactly the same (I use the one from winDDK 7600.16385.1), I have several modifications to do in stdafx.h to make it compile.

Any help would be appreciated.
oskari
Site Admin
Posts: 298
Joined: Mon Nov 21, 2011 2:04 pm

Re: Compilation of patternXP

Post by oskari »

chahur wrote:Hello

I try to compile the patternXP project with Visual C++ 2010 express, but I have several problems.
First one is in XmemDC.cpp :
Line 3 : BEGINBUFFEREDPAINT and Line 4 : ENDBUFFEREDPAINT
are not known.

Idem with CCriticalSection in RecQueue.h Line 51.

I suspect also that the version of MFC42 is not exactly the same (I use the one from winDDK 7600.16385.1), I have several modifications to do in stdafx.h to make it compile.

Any help would be appreciated.
BEGINBUFFEREDPAINT was added in vista so you need headers from windows sdk that is new enough.
User avatar
chahur
Posts: 218
Joined: Sun Nov 27, 2011 5:19 pm

Re: Compilation of patternXP

Post by chahur »

I use Windows Driver Kit version 7.1.0, supporting Windows 7
and Microsoft Visual C++ 2010.
So my windows sdk should be new enough.
I suppose that I'm doing something wrong.
I will investigate.

Thank you.
User avatar
chahur
Posts: 218
Joined: Sun Nov 27, 2011 5:19 pm

Re: Compilation of patternXP

Post by chahur »

So, now, I can compile patternXP after making some changes (my afx... files are probably not exactly the same as yours).
But I can't load the resulting dll in Buzz :
00:02 [MM] LoadLibrary failed 'C:\Program Files\Jeskola\Buzz\Gear\Generators\Jeskola Pattern XP.dll'
The message is : The specified module could not be found (in french "Le module spécifié est introuvable").
I didn't change anything in the project except the destination dir (it was h:...).
I used the Debug configuration.

So, master of the code, any advice to what I've done wrong ?
Many thanks.
oskari
Site Admin
Posts: 298
Joined: Mon Nov 21, 2011 2:04 pm

Re: Compilation of patternXP

Post by oskari »

I don't know, maybe the mfc dlls are missing? Check it with depends.exe.
User avatar
chahur
Posts: 218
Joined: Sun Nov 27, 2011 5:19 pm

Re: Compilation of patternXP

Post by chahur »

Thanks, you were right, I was compiling the debug version, but I don't have the dll of the mfc42 debug version.
Now it loads fine with the release version.
User avatar
chahur
Posts: 218
Joined: Sun Nov 27, 2011 5:19 pm

Re: Compilation of patternXP

Post by chahur »

I would like to add a menuitem to the popup menu of the pattern editor.
But I don't understand where you create the existing menu and how I can add something to it.
Help, I need somebody. Help ... :-)
pac
Posts: 30
Joined: Fri Nov 25, 2011 10:22 am

Re: Compilation of patternXP

Post by pac »

That context menu is not defined by the pattern editor, it's part of the buzz core. (You can see it's the same for all the machines with custom pattern editors.)

But you can add stuff to PatternXP's toolbar and keyboard shortcuts, all of these can be found in the PatternXP source.

There is also the new "ctrl-Q" pattern editor which is in development but source is not available (yet?). From what it can tell it will be approximately 1000x better.
User avatar
chahur
Posts: 218
Joined: Sun Nov 27, 2011 5:19 pm

Re: Compilation of patternXP

Post by chahur »

Thanks, that's what I've done, toolbar and shortcuts.
I'm adding some small modifications that I miss in my way of using the pattern editor.
That's also a way to know better the programming of machines.
Post Reply