|
|
Comments and Discussions
|
|
 |

|
"...the drawing speed is much faster than WinGDI" No evidence or prove provided, therefore everything in the article is plain bullsh*t.
|
|
|
|

|
hi
I tried to complile this for WinCE 4.0 and i got the following errors:
Linking...
Creating library emulatorDbg/CEGL.lib and object emulatorDbg/CEGL.exp
LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup
CEGraphics.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) struct GXKeyList __cdecl GXGetDefaultKeys(int)" (__imp_?GXGetDefaultKeys@@YA?AUGXKeyList@@H@Z) referenced in function "public: long __thiscall CCEGraphics::Create(stru
ct HWND__ *)" (?Create@CCEGraphics@@QAEJPAUHWND__@@@Z)
CEGraphics.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) struct GXDisplayProperties __cdecl GXGetDisplayProperties(void)" (__imp_?GXGetDisplayProperties@@YA?AUGXDisplayProperties@@XZ) referenced in function "public: long __t
hiscall CCEGraphics::Create(struct HWND__ *)" (?Create@CCEGraphics@@QAEJPAUHWND__@@@Z)
CEGraphics.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl GXOpenInput(void)" (__imp_?GXOpenInput@@YAHXZ) referenced in function "public: long __thiscall CCEGraphics::Create(struct HWND__ *)" (?Create@CCEGraphics@@
QAEJPAUHWND__@@@Z)
CEGraphics.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl GXOpenDisplay(struct HWND__ *,unsigned long)" (__imp_?GXOpenDisplay@@YAHPAUHWND__@@K@Z) referenced in function "public: long __thiscall CCEGraphics::Create
(struct HWND__ *)" (?Create@CCEGraphics@@QAEJPAUHWND__@@@Z)
CEGraphics.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl GXCloseDisplay(void)" (__imp_?GXCloseDisplay@@YAHXZ) referenced in function "public: long __thiscall CCEGraphics::Release(void)" (?Release@CCEGraphics@@QAE
JXZ)
CEGraphics.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl GXCloseInput(void)" (__imp_?GXCloseInput@@YAHXZ) referenced in function "public: long __thiscall CCEGraphics::Release(void)" (?Release@CCEGraphics@@QAEJXZ)
CEGraphics.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl GXEndDraw(void)" (__imp_?GXEndDraw@@YAHXZ) referenced in function "public: long __thiscall CCEGraphics::Flip(void)" (?Flip@CCEGraphics@@QAEJXZ)
CEGraphics.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void * __cdecl GXBeginDraw(void)" (__imp_?GXBeginDraw@@YAPAXXZ) referenced in function "public: long __thiscall CCEGraphics::Flip(void)" (?Flip@CCEGraphics@@QAEJXZ)
CEGraphics.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl GXSuspend(void)" (__imp_?GXSuspend@@YAHXZ) referenced in function "public: long __thiscall CCEGraphics::Suspend(void)" (?Suspend@CCEGraphics@@QAEJXZ)
CEGraphics.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl GXResume(void)" (__imp_?GXResume@@YAHXZ) referenced in function "public: long __thiscall CCEGraphics::Resume(void)" (?Resume@CCEGraphics@@QAEJXZ)
emulatorDbg/CEGL.dll : fatal error LNK1120: 11 unresolved externals
Error executing link.exe.
CEGL.dll - 12 error(s), 0 warning(s)
Please help me to resolve this issue
Thanks
Saurabh Goyal
|
|
|
|

|
Hello
I ve downloaded this lib. It works fine but I have a problem.
If I try to load any pic or just draw a text using this lib, I get a compiler error
that a required dll is missing ( unresolved extern symbol ).
I am using VC 2005 pro.
Maybe any one has an idea?
greeting doena
|
|
|
|

|
Hi,
I am getting these linking errors, when i try to build the project after setting all the include and lib directories.
--------------------Configuration: CEGL - Win32 (WCE SH3) Debug--------------------
Linking...
Creating library SH3Dbg/CEGL.lib and object SH3Dbg/CEGL.exp
CEGraphics.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) struct GXKeyList __cdecl GXGetDefaultKeys(int)" (__imp_?GXGetDefaultKeys@@YA?AUGXKeyList@@H@Z) referenced in function "public: long __cdecl CCEGraphics::Create(struct
HWND__ *)" (?Create@CCEGraphics@@QAAJPAUHWND__@@@Z)
CEGraphics.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) struct GXDisplayProperties __cdecl GXGetDisplayProperties(void)" (__imp_?GXGetDisplayProperties@@YA?AUGXDisplayProperties@@XZ) referenced in function "public: long __c
decl CCEGraphics::Create(struct HWND__ *)" (?Create@CCEGraphics@@QAAJPAUHWND__@@@Z)
CEGraphics.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl GXOpenInput(void)" (__imp_?GXOpenInput@@YAHXZ) referenced in function "public: long __cdecl CCEGraphics::Create(struct HWND__ *)" (?Create@CCEGraphics@@QAA
JPAUHWND__@@@Z)
CEGraphics.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl GXOpenDisplay(struct HWND__ *,unsigned long)" (__imp_?GXOpenDisplay@@YAHPAUHWND__@@K@Z) referenced in function "public: long __cdecl CCEGraphics::Create(st
ruct HWND__ *)" (?Create@CCEGraphics@@QAAJPAUHWND__@@@Z)
CEGraphics.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl GXCloseDisplay(void)" (__imp_?GXCloseDisplay@@YAHXZ) referenced in function "public: long __cdecl CCEGraphics::Release(void)" (?Release@CCEGraphics@@QAAJXZ
)
CEGraphics.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl GXCloseInput(void)" (__imp_?GXCloseInput@@YAHXZ) referenced in function "public: long __cdecl CCEGraphics::Release(void)" (?Release@CCEGraphics@@QAAJXZ)
CEGraphics.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl GXEndDraw(void)" (__imp_?GXEndDraw@@YAHXZ) referenced in function "public: long __cdecl CCEGraphics::Flip(void)" (?Flip@CCEGraphics@@QAAJXZ)
CEGraphics.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void * __cdecl GXBeginDraw(void)" (__imp_?GXBeginDraw@@YAPAXXZ) referenced in function "public: long __cdecl CCEGraphics::Flip(void)" (?Flip@CCEGraphics@@QAAJXZ)
CEGraphics.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl GXSuspend(void)" (__imp_?GXSuspend@@YAHXZ) referenced in function "public: long __cdecl CCEGraphics::Suspend(void)" (?Suspend@CCEGraphics@@QAAJXZ)
CEGraphics.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl GXResume(void)" (__imp_?GXResume@@YAHXZ) referenced in function "public: long __cdecl CCEGraphics::Resume(void)" (?Resume@CCEGraphics@@QAAJXZ)
SH3Dbg/CEGL.dll : fatal error LNK1120: 10 unresolved externals
Error executing link.exe.
SDKSample.exe - 11 error(s), 0 warning(s)
Kindly help! Thankyou.
Priya Sundar
|
|
|
|

|
I'm porting some codw to windows mobile and filled ellipse is
dog slow. Anyone have any GAPI code for this?
|
|
|
|

|
How(Where) can I "add library CEGL.lib" to the Project?
When I try to compile, Studio gives me MANY "Unresolved links in SDKSample.obj"..
Help, please..
|
|
|
|

|
Open Solution Properties. In the Linker section, go to Input.
Add the lib file to "Additional dependencies"
-or-
use pragma in the source like this:
#pragma comment(lib, "cegl.lib")
|
|
|
|

|
Hello
How can i change the font size?
thank you!
Jean
|
|
|
|

|
does GAPI work on WinCE 5.0??
thx~~
|
|
|
|

|
and does it can work on WinCE 4.2 or 5.0 ?
Thanks
|
|
|
|

|
Please, send the Program for how to convert a .jpg file to a .bmp file using VC++.
Thanks
Kiruba
|
|
|
|

|
Hi Jie:
does any update for this project for ppc 2003 to download???
Thanks
Best Regards
|
|
|
|

|
Has anyone gotten this thing to run with eVC under emulation? I went through a few steps with the SDKSample project included in the download:
1. Created a default configuration for the project (emulator debug)
2. Added include directory
3. Added lib directory
4. Commented out #include "GAPI_Emu.h", which didn't exist
5. Compiled an executable
6. Copied gx.dll and cegl.dll to my emulator Windows dir
7. Tried to run the exe: windows complains with a "SDKSample is not a valid Windows CE application."
Any ideas?
|
|
|
|

|
How do I only draw within the hWnd that I pass CEDraw?
I know the library writes directly to the buffer.
Do I have to modify the source and recompile the library?
If so, how would I do that?
Is CEDraw only made for full screen applications?
Should I be looking for another graphics library?
What I am experiencing:
I have made a window smaller than the whole screen. But I can draw anywhere on the screen, which is fine, and when I click out of the area of my graph it takes me to the window that is behind the CEDraw window. The area that is outside of the portion that I draw on is black, and does not show the window behind it.
ccarr
|
|
|
|

|
CEDraw library cutout:************
HRESULT CCEGraphics::Create( HWND hWnd )
{
if( GXOpenDisplay( hWnd, GX_FULLSCREEN ) == 0 )
*******************
Windows CD API copy and paste***************
GXDLL_API int GXOpenDisplay (
HWND hWnd,
DWORD dwFlags
);
Parameters
hWnd
If requesting full screen mode, handle to the full screen window.
dwFlags
Specifies options for the screen mode. Value Description
GX_FULLSCREEN Use full screen mode.
***************
Yeah yeah, so I'm assuming I set the GX_FULLSCREEN to 0. But I can't seem to rebuild the dll and get the lib file as well. What is the deal? What should I be reading?
ccarr@6thdimensiondevices.com
|
|
|
|

|
Although the GAPI must have access to the full screen you only need to draw on part of it. The reson the rest of the screen was black was because the CCEGraphics::BeginDraw() method did not copy the current video buffer state into the buffer used to hold the changes to the display.
So just before the return statement of BeginDraw I added the following code:
...
//copys display memmory to the buffer used for drawing
m_pDisplayMemory = (unsigned char*)GXBeginDraw();
memcpy( m_pDoubleBuffer,
(m_pDisplayMemory + ( m_pDoubleBuffer - m_pVB ) ),
m_lMemorySize );
GXEndDraw();
...
ccarr@6thdimensiondevices.com
|
|
|
|
|

|
How to use it in MFC based WinCE program ?
who can tell me about this...
thanks for your help....
|
|
|
|

|
Yes, I want to know.Thank you
|
|
|
|

|
Yew, I want to know too.
Thank you ...
Email:xinaideren2002@126.com
☆·D·E·N·G
|
|
|
|
|

|
I'd like to do rotation - but how?
|
|
|
|

|
Hello
Is this only for ARM and PC emulator?? I cant find a way to run on SH3 Jornada 545, the compiler says: fatal error LNK1112: module machine type "ARM" conflicts with target machine type "SH3" .
Also when running on PC emulator (Evc++ 3.0) works fine but does not display any kind of text. I somebody can tell me why I would like to see it with a sample angle (scapment) example.
Best regards and thks for help!
|
|
|
|

|
Text: need font file in same folder as .exe file on PDA
ARM/SH3: Add the device to develop for to your project.
ccarr@6thdimensiondevices.com
|
|
|
|

|
Hello
This class works fine for me on the front screen of my application, but moving it into a Dialog, it does NOT show the image, here is the simple Dialog class with my code, any suggestions will be appreciated.
Thanks
Alex
CCEDraw m_ceDraw;
ShowImage::ShowImage(CWnd* pParent /*=NULL*/)
: CDialog(ShowImage::IDD, pParent)
{ //{{AFX_DATA_INIT(ShowImage)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void ShowImage::DoDataExchange(CDataExchange* pDX)
{ CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(ShowImage)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(ShowImage, CDialog)
//{{AFX_MSG_MAP(ShowImage)
// NOTE: the ClassWizard will add message map macros here
ON_WM_PAINT()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
BOOL ShowImage::OnInitDialog()
{
CDialog::OnInitDialog();
// I placed a static on the dialog, but even without it - NO SHOW
m_ceDraw.Create(GetDlgItem(IDC_EIMAGEHOLDER)->m_hWnd);
return TRUE;
}
void ShowImage::OnPaint()
{
m_ceDraw.Clear( (DWORD)255 ); // Clear screen use white color
CCEBitmap ceBmp2;
if(ceBmp2.LoadBitmap( &m_ceDraw, L"HS024.jpg"))
{
// Draw bitmap with alpha blend
ceBmp2.BitBlt( &m_ceDraw, 10, 10, 0,0 ,0,0, SRCALPHA, 0.8f );
m_ceDraw.Flip(); // Flip the back buffer to the video buffer
}
}
|
|
|
|

|
We're trying to use CEGL on a WinCE machine with a x86 (Pentium class). We use our own target machine (call it TEST), and we have an application running there. I'm getting a "bad executable format" if I compile my app using the x86Emu CEGL libs and dlls, so I decided to build CEGL libs using machine TEST, but at linking time I get same problem as niceguyeddie "EGraphics.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) struct GXKeyList __cdecl GXGetDefaultKeys ......... Seems a gx.lib problem, maybe because it is X86Emu compiled? Is there any version that runs on standard x86? Are the sources of GX available to compile? Or is the problem another thing I missed Thx Jordi Ros
|
|
|
|

|
Yes thats the problem, x86 ver is not the same as x86Em. I have not been able to find GAPI for x86... don't think its out there. Haven't seen source code either...
Jordi or anybody, do you know of any other graphics libraries that can be used to make doing some rather complex graphics an easier task?
......tried getting a Macromedia Flash ActiveX Control for CE, no dice
|
|
|
|

|
Maybe theres a CE guru that can help me out here::
I'm getting a "not valid Windows CE application" when I try and start the application. Followed the instructions to the tee and it won't work. Anyone else have this problem. Using CE 4.1, I used platform builder to make the SDK. Whats is not the valid application? The DLL or the APP? Anyone know how to diagnose from here?
So I thought , maybe CEGL.dll was no good so I'm also trying to compile that and having problems. I created my own project and inserted the files. Tried to compile linking with gx.lib. Compiled with no other errors other than:
EGraphics.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) struct GXKeyList __cdecl GXGetDefaultKeys .........
It seems like the lib file isn't telling the compiler what it wants to see. Is this lib file good for x86??? Has anyone successfully got this working with emulation... Thanks in advance
|
|
|
|

|
okay - guess you gotta choose your directories more wisely than the way I did. One of the default libary dir's had a gx.dll in there so it was getting to the compiler first.. made sure the right one was getting to the compiler.
|
|
|
|

|
did you finish by run your project?
i'm interested
fred
|
|
|
|

|
I'm not sure I understand your question. i did finish by running the compiled bin on the emulator, yes.
|
|
|
|

|
How to draw Line Thick???
|
|
|
|

|
Hi,
I had a big problem when, in the example program, I try to call the DrawText function which use CString (LPCTSTR). The result is often a sort of italic text ! The string "Hello CE Graph!" was correctly displayed whereas the string "Hello AA Graph!" wasn't!
It took me days (I thought I was getting crazy) since I remember it. The BMP structure must have padding at the end of each line : 4 bytes alignment.
For example if the bitmap is 35 pixels wide. A 24bpp line is 24*35/8 = 105 bytes long. But 105 can't be divided by 4 (105 modulo 4 = 1). So, 3 padding bytes are needed at the end of the line : 108 can be divided by 4 !
I think I’m not the only one to have this problem so here is my little contribution.
I suggest the following modification in the CCEDraw::DrawText function.
Compute the padding before looping for each pixel.
int iRealLineLength = ((BitmapInfo.bmiHeader.biWidth * 3)+3) & ~3;
And use this computed value in the GetBitmapPointColor call like this.
GetBitmapPointColor(
pBitmap + ( nX ) * 3 +
( BitmapInfo.bmiHeader.biHeight - nY ) *
iRealLineLength )
That's all I have to say
Thanks for the job, it's going to be very useful for me !
Nico.
|
|
|
|

|
Were you able to use the library with Win CE 4.1? I am having difficulties linking in 4.1.
Hoyt F.
|
|
|
|

|
Hello,
I have downloaded source . But DLLs are not present in DLL folder(gx.dll and cegl.dll).
Can you post code again??
|
|
|
|

|
Hello everybody !!
How can i fix the map size in Pocket PC,because the map's picture size is too large ~ 65MB (5200x4800x32),that mean i want to see the map in the fixed status.
Another,How can i get the Pocket coordinate system,because I must convert from PC system into Pocket PC coordinate.
Thank you.
|
|
|
|

|
What are you talking about ??
We don't understand what you're saying.
Are you insane or stupid ??
|
|
|
|

|
Jie,
Is the Graphics Library available for Windows CE 4.1 for the following processors:
- Emulator
- and X86 ?
Cheers
|
|
|
|

|
hi ,sorry to replay u so late.
I'm planning to update this project to pocketpc 2003 ,,,
maybe few days later ,i'll put the new project into this website.
Cheers,
James T.
|
|
|
|

|
Hi Jie,
is the updated project for ppc 2003 ready for download??
Regards,
Harish
|
|
|
|

|
Hello,
Can I implement this source code into a Win ce 4.0 standard emulator?
Thanks
|
|
|
|

|
Now, i'm planning to add new features and rewrite some part of code. If you are interesting in this project, write email to me! jiet@msn.com
|
|
|
|

|
And the same for win ce 3.0 emulator?
|
|
|
|

|
i'm interested for the code for win ce 3.0 emulator
|
|
|
|

|
Hello,
Can I implement this source code into a Pocket PC 2000
with a MIPS processor?
Thanks
|
|
|
|

|
I would also like to use this code or another graphics library on a MIPS device running Windows CE 2.11. Does anyone have any suggestions?
-Tim
|
|
|
|
 |
|
|
General News Suggestion Question Bug Answer Joke Rant Admin
|
CEDraw is a high speed graphics library for WinCE.
| Type | Article |
| Licence | CPOL |
| First Posted | 24 Jun 2002 |
| Views | 217,180 |
| Downloads | 1,429 |
| Bookmarked | 87 times |
|
|