Click here to Skip to main content
15,897,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Window maximize and Minimize Pin
002comp2-Jun-09 21:21
002comp2-Jun-09 21:21 
GeneralRe: Window maximize and Minimize Pin
002comp2-Jun-09 22:48
002comp2-Jun-09 22:48 
QuestionCDockablePane without Close button PinPopular
VCsamir2-Jun-09 18:23
VCsamir2-Jun-09 18:23 
AnswerRe: CDockablePane without Close button Pin
laiboy6-Feb-10 1:41
laiboy6-Feb-10 1:41 
GeneralRe: CDockablePane without Close button Pin
Alexandre GRANVAUD16-May-11 23:09
Alexandre GRANVAUD16-May-11 23:09 
QuestionHow to design a decoder in C++? Pin
kapardhi2-Jun-09 18:04
kapardhi2-Jun-09 18:04 
AnswerRe: How to design a decoder in C++? Pin
CPallini2-Jun-09 21:22
mveCPallini2-Jun-09 21:22 
AnswerRe: How to design a decoder in C++? Pin
Stuart Dootson2-Jun-09 22:55
professionalStuart Dootson2-Jun-09 22:55 
If I were you, I'd just try to port the Jasper JP2 decoder to your PocketPC platform. I suspect the code is mostly portable.

In fact looking at it (by just inserting the libjasper header and source files into a new PocketPC 2003 static library project under VS2008), the only significant issue is jas_stream.c - that uses Unix style I/O (like open, read, close), which PocketPC 2003 doesn't have. You'd need to develop a PocketPC replacement for that (which should be relatively trivial - it's just file I/O, FFS!).

Aside from that, the only changes I found were needed to compile the other source files were

  1. Tell the project not to use pre-compiled headers
  2. Add the jasper include folder to the project's include path
  3. Add the symbol JAS_WIN_MSVC_BUILD to the list of pre-processor defines
  4. Change jas_config2.h to contain the following:
    #ifndef JAS_CONFIG2_H
    #define	JAS_CONFIG2_H
    
    /*
     * Configuration for Microsoft Windows and Microsoft Visual C.
     *
     * We are not using a configure-based build.
     * Try to compensate for this here, by specifying the preprocessor symbols
     * normally defined by configure.
     */
    
    //#define	uchar		unsigned char
    // #define	ushort		unsigned short
    // #define	uint		unsigned int
    // #define	ulong		unsigned long
    // #define	longlong	long long
    // #define	ulonglong	unsigned long long
    /*#define	ssize_t		int*/
    
    //#define	HAVE_FCNTL_H		1
    #define	HAVE_LIMITS_H		1
    //#define	HAVE_IO_H		1
    #define	HAVE_WINDOWS_H		1
    //#define	HAVE_SYS_TYPES_H	1
    #define	HAVE_STDLIB_H		1
    #define	HAVE_STDDEF_H		1
    
    #define L_tmpnam MAX_PATH
    
    #endif


That means that the JP2 codec part of the code builds relatively easily.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: How to design a decoder in C++? Pin
kapardhi3-Jun-09 18:35
kapardhi3-Jun-09 18:35 
GeneralRe: How to design a decoder in C++? Pin
Stuart Dootson3-Jun-09 21:33
professionalStuart Dootson3-Jun-09 21:33 
GeneralRe: How to design a decoder in C++? Pin
kapardhi4-Jun-09 3:27
kapardhi4-Jun-09 3:27 
GeneralRe: How to design a decoder in C++? Pin
Stuart Dootson4-Jun-09 3:31
professionalStuart Dootson4-Jun-09 3:31 
GeneralRe: How to design a decoder in C++? [modified] Pin
kapardhi4-Jun-09 3:49
kapardhi4-Jun-09 3:49 
GeneralRe: How to design a decoder in C++? Pin
Stuart Dootson4-Jun-09 3:59
professionalStuart Dootson4-Jun-09 3:59 
GeneralRe: How to design a decoder in C++? Pin
kapardhi4-Jun-09 21:03
kapardhi4-Jun-09 21:03 
GeneralRe: How to design a decoder in C++? Pin
Stuart Dootson4-Jun-09 21:45
professionalStuart Dootson4-Jun-09 21:45 
GeneralRe: How to design a decoder in C++? Pin
kapardhi5-Jun-09 0:05
kapardhi5-Jun-09 0:05 
GeneralRe: How to design a decoder in C++? Pin
Stuart Dootson5-Jun-09 0:23
professionalStuart Dootson5-Jun-09 0:23 
QuestionUrgent! Smart house with SMS project Pin
ericyeoh2-Jun-09 16:33
ericyeoh2-Jun-09 16:33 
QuestionRe: Urgent! Smart house with SMS project Pin
CPallini2-Jun-09 21:39
mveCPallini2-Jun-09 21:39 
QuestionMFC Process Pin
duongcntt4b2-Jun-09 15:39
duongcntt4b2-Jun-09 15:39 
QuestionRe: MFC Process Pin
David Crow2-Jun-09 16:52
David Crow2-Jun-09 16:52 
AnswerRe: MFC Process Pin
Stephen Hewitt2-Jun-09 20:34
Stephen Hewitt2-Jun-09 20:34 
AnswerRe: MFC Process Pin
duongcntt4b2-Jun-09 21:26
duongcntt4b2-Jun-09 21:26 
GeneralRe: MFC Process Pin
David Crow3-Jun-09 2:34
David Crow3-Jun-09 2:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.