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.
Compilation of patternXP
Re: Compilation of patternXP
BEGINBUFFEREDPAINT was added in vista so you need headers from windows sdk that is new enough.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.
Re: Compilation of patternXP
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.
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.
Re: Compilation of patternXP
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.
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.
Re: Compilation of patternXP
I don't know, maybe the mfc dlls are missing? Check it with depends.exe.
Re: Compilation of patternXP
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.
Now it loads fine with the release version.
Re: Compilation of patternXP
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 ...
But I don't understand where you create the existing menu and how I can add something to it.
Help, I need somebody. Help ...
Re: Compilation of patternXP
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.
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.
Re: Compilation of patternXP
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.
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.