|
Hello,
All of you guys who had developed ActiveX controls for Embedded platforms to please look at the thread Windowless ActiveX Control at the VC++ ATL / WTL / STL discussion board. Thank you guys.
Raphael Amorim Dantas Leite
VC++, VB, Java, .NET and eMbedded Programmer
|
|
|
|
|
Hi,
does anybody now, how to change background color of a treeview?
I'm working on WinCe 3.0, so I cannot use TreeView_SetBkColor Macro....
|
|
|
|
|
Did you try to use the custom draw service? This envolves handling the NM_CUSTOMDRAW message. It will allow you to customize the drawing of the tree in a number of ways.
|
|
|
|
|
Yes, I tried it, but I can just set the TextColor and TextBkColor, not the Background Color of entire window. SetBkColor function and selecting a brush to device context doesn't work. The best result I've archived is to fill entrire window's rectangle using FillRect(). It works fine, but there still remain white areas nearby icons and nodes. I may be able to paint them using SetPixel, but that's
pretty dirty technique, in my opinion. Is there any other chance?
Ortie
|
|
|
|
|
Maybe all you need to do is intercept WM_ERASEBKGND and use your own brush.
|
|
|
|
|
Unfortunately, this doesn't work too.
The white areas are painted after the background paint. And they are always
white, even if you set different color for window background for entire Windows (in Control Panel ->Display Settings)
Anyway, thanks for effort.
Ortie
|
|
|
|
|
Can you use WTL for CE programming? if so, can you point me to some resources?
TIA
R.Bischoff | C++
.NET, Kommst du mit?
|
|
|
|
|
|
Thanks for the links. A couple more questions if you don't mind,
1. Do you recommend WTL or MFC for CE dev (not work related, just hobby)?
2. Do you have links to good docs on WTL CE development ?
Thanks in Advance
R.Bischoff | C++
.NET, Kommst du mit?
|
|
|
|
|
|
Hello All,
I'd never thought about that before . I want to distribute an ActiveX control for Pocket PC, nevertheless I will also distribute three versions of that component: Emulator Release, Desktop and Device Release, ok till here?
The developer will use those versions to build his application on my component, but where in the name of Jesus Christ he'll put my Emulator Release to start testing ? Inside the respective Emulation directory under Windows CE Tools folder...I don't think so!!!
Try to test this...start your emulator and create a simple doc file and save it, and seach for it in your computer. File not found, isn't it ? So what?
There's a huge *.bin file in the emulation folder, is everything within?
Raphael Amorim Dantas Leite
VC++, VB, Java, .NET and eMbedded Programmer
|
|
|
|
|
How about eVC>Tools>Remote File Viewer?
That allows you to import and extract files between (emulation) device and desktop. Once there, you can use regsvrce on the device to register the component as normal.
--
Ian Darling
|
|
|
|
|
Can i add an Ocx control or a dll in a EVC++ project?.
These Ocxs and dlls works in a computer(x86) with Winnt/2000, but i have a lot of problems to include them in an EVC++.
Can you help me?
|
|
|
|
|
Hello all,
I'm facing this problem: I got some COM components (not OCX's) that I
want to protect against copying and the whole process is based on three
machine configs. :
a physical, a logical and a random configuration. Basically they're:
Processor ID, HD volume signature and a Cryptographic key pair respectively). There's a *.lic license file that is signed by me, and got all this configs and the serial number. The COM component (Emulation) must check out this file to verify if was signed by be(ownership) and if corresponds to the developing machine. The COM component (device) checks only the ownership. but my problem is: How to get those machine informations from the Emulator component? I also thought about set the Emulation registry with those machine informations from the Desktop machine, but I really don't know how to perform it!!
Thanks for any help,
Raphael Amorim
Security Analist
Media System
Raphael Amorim Dantas Leite
VC++, VB, Java, .NET and eMbedded Programmer
|
|
|
|
|
Hi, Recently I have been working on this server-client side application, using single doc with Doc/View. In fact, I am using the sample eVC++ application called chatter.
I only added this code below->
void CVoiceRecorder::OnVoiceRecorder()
{
// TODO: Add your command handler code here
CM_VOICE_RECORDER cmvr;
memset( &(cmvr), 0, sizeof(cmvr));
cmvr.cb = sizeof (CM_VOICE_RECORDER);
cmvr.dwStyle = VRS_NO_MOVE;
cmvr.xPos = -1; //-1 means control is drawn centered to Parent window hwndMain
cmvr.yPos = -1;
cmvr.hwndParent = m_hWnd;
cmvr.id = NULL;
cmvr.lpszRecordFileName = TEXT("\\My Documents\\TestRec.wav");
DeleteFile(L"\\My Docuemnts\\TestRec.wav");
DeleteFile(L"\\My Documents\\~Rec_0.wav");
HWND hwndVoice = VoiceRecorder_Create (&cmvr);
::ShowWindow(hwndVoice, WS_VISIBLE);
::UpdateWindow(hwndVoice);
}
I am trying to display the voice recorder control, but Embedded VC++ gave me this error->
"CVoiceRecorder.obj : error LNK2019: unresolved external symbol _VoiceRecorder_Create referenced in function "protected: void __thiscall CVoiceRecorder::OnVoiceRecorder(void)" (?OnVoiceRecorder@CVoiceRecorder@@IAEXXZ)"
What might it be? Thanks.
|
|
|
|
|
BUG: LNK2019 When Building For Pocket PC Emulation
SYMPTOMS
When building an application for Pocket PC emulation that uses the Windows CE operating system functions, errors similar to the following may be encountered:
<filename>.obj : error LNK2019: unresolved external symbol _CeDeleteDatabase referenced in function <function>
CAUSE
These operating system functions use the _stdcall calling convention, but the compiler is declaring them as _cdecl. This problem occurs with the Windows CE Platform SDK for Pocket PC because the functions are incorrectly declared in the Windbase.h file without a linkage type.
RESOLUTION
Use one of the following workarounds:
BOOL WINAPI CeDeleteDatabase (CEOID oid);
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
Raphael Amorim Dantas Leite
VC++, VB, Java, .NET and eMbedded Programmer
|
|
|
|
|
Hi all,
I got the source code of windows CE version's WINPCAP from http://winpcap.polito.it. But when I try to build it, it gives the following errors:
afxwce.lib(dllmodul.obj) : error LNK2005: DllMain already defined in corelibc.lib(dllmain.obj)
uafxwce.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in coredll.lib(COREDLL.dll)
uafxwce.lib(dllmodul.obj) : warning LNK4006: DllMain already defined in corelibc.lib(dllmain.obj); second definition ignored
uafxwce.lib(afxmem.obj) : warning LNK4006: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in coredll.lib(COREDLL.dll); second definition ignored
Creating library ..\ARMRel/PktDrv.lib and object ..\ARMRel/PktDrv.exp
..\ARMRel/PktDrv.dll : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.
Does anyone know how to debug? Please kindly help!!
Also, if I want to add an option to "linker command line option", where should I add?
Many thanks!!!
William
|
|
|
|
|
IF i want to refresh the page for every 15 seconds
i give
<http meta-equil="" refresh="15"> like that i give in HTML
How to do like this in mobile
|
|
|
|
|
If you are using the PocketPC HTML control, you can set up a timer in the containing window, and have the timer handler send a navigate message to the control. Make sure that 15 seconds is enough to read in the full page.
|
|
|
|
|
Hi, i need to change menu caption while the app is running. There's no problem with popup subitems like
IDM_EXIT, IDM_ABOUT. I can change these with SetMenuItemInfo.
But this method doesn't work with main menu item, like FILE, EDIT, HELP, coz
it has not ID. In Win32 I can use SetMenuItemInfo with fByPosition member of
MENUITEMINFO structure set to TRUE and use 0 as identifier of first main menu(FILE), 1 as second (EDIT) etc. But this technique doesn't work on Windows CE.
Does anybody know how can I change main menu caption?
Thanx, Ortie
|
|
|
|
|
Hi,
I keep getting this msg when I try to use the PPC 2002 emulator.
Can someone tell me what I should do?
"The Intel 80486 CPU does not support configuration ClassName - Win32(WCE ARM)Debug!
Executable will not run on device.Continue?"
Thanks.
|
|
|
|
|
You've mis-configured your build settings. On the "WCE Configuration" toolbar in EVC++, you should be using "Win32 (WCE x86) Debug" (or Release)
--
Ian Darling
|
|
|
|
|
I knew quite good about VC++ and MFC. But now, I must write an application on PocketPC. But I don't know anything about it.
Can you answer me:
What is differences between programming with MFC/VC++ and with PocketPC ?
Thanks
I'm a Vietnamese student
|
|
|
|
|
You'll need to download Embedded Visual C++ (EVC++) from Microsoft's website (or find the MSDN CD's with it on).
You can use the CE version of MFC to write Pocket PC applications from within EVC++ (there's a Pocket PC MFC Appwizard to help get you started too).
There are some differences between the CE and Desktop versions of MFC, but nothing too major for most applications.
--
Ian Darling
|
|
|
|
|
Hi,
In My application i have to read settings
from some "xx.INI" file.
I am using WCEApplication.
please help me how can i read .INI file.
for this I searched for "GetProfileString" and "SetProfileString"
but i didn't get any help related to me.
(most material available on CWinApp::GetProfileString etc)
but i need these functionality in Win32.
Thank You.
anju
|
|
|
|