buzz forums

forums of the buzz
It is currently Wed Sep 19, 2018 3:42 pm

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Compilation of patternXP
PostPosted: Tue Apr 22, 2014 4:12 pm 
User avatar

Joined: Sun Nov 27, 2011 5:19 pm
Posts: 198
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.


Top
 Profile  
 
PostPosted: Tue Apr 22, 2014 4:45 pm 
Site Admin

Joined: Mon Nov 21, 2011 2:04 pm
Posts: 275
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.


Top
 Profile  
 
PostPosted: Tue Apr 22, 2014 7:09 pm 
User avatar

Joined: Sun Nov 27, 2011 5:19 pm
Posts: 198
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.


Top
 Profile  
 
PostPosted: Thu Apr 24, 2014 3:54 pm 
User avatar

Joined: Sun Nov 27, 2011 5:19 pm
Posts: 198
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.


Top
 Profile  
 
PostPosted: Fri Apr 25, 2014 7:26 am 
Site Admin

Joined: Mon Nov 21, 2011 2:04 pm
Posts: 275
I don't know, maybe the mfc dlls are missing? Check it with depends.exe.


Top
 Profile  
 
PostPosted: Fri Apr 25, 2014 8:15 pm 
User avatar

Joined: Sun Nov 27, 2011 5:19 pm
Posts: 198
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.


Top
 Profile  
 
PostPosted: Sun May 04, 2014 9:18 am 
User avatar

Joined: Sun Nov 27, 2011 5:19 pm
Posts: 198
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 ... :-)


Top
 Profile  
 
PostPosted: Tue May 06, 2014 3:30 pm 

Joined: Fri Nov 25, 2011 10:22 am
Posts: 28
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.


Top
 Profile  
 
PostPosted: Wed May 07, 2014 11:20 am 
User avatar

Joined: Sun Nov 27, 2011 5:19 pm
Posts: 198
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group