|
To recieve different solutions;
I have built a mobile web application but it must be used only from certain PDAs.
|
|
|
|
|
I'm having a problem I can't explain. I'm trying to create a generic class that asynchronously loads objects in the background for later use. I'm using C#/VS.NET 2003 and programming for an IPAQ 5500 series.
The code is very simple, just a function which loads 3 forms into 3 objects, and releases a mutex after each one is loaded. Then it has 3 properties, one for each object, and in the get accessor it waits on the mutex and returns the object:
private workerThreadProc()
{
mutex1.WaitOne();
mutex2.WaitOne();
mutex3.WaitOne();
frmtest = new frmTesting();
mutex1.ReleaseMutex();
frmload = new frmLoading();
etc.
}
public frmTesting TestingForm
{
get
{
mutex1.WaitOne();
return frmtest;
}
}
Now if i take just that method and run in on a separate thread inside my form, it works. But if I create an instance of this class and the class runs the thread asynchronously in it's constructor, the method starts but then seems to sleep. Any call to the three properties will get to mutex?.WaitOne(); and then hang.
Anyone have any idea why this is? It doesn't happen on the desktop, and if I explicitly set the thread priority to Above Normal, it doesn't happen either, but then my form is unresponsive until it's finished and I may as well have loaded them synchronously.
Any ideas?
Nick
|
|
|
|
|
In embedded vc programming, is there any ActiveX control for Internet Explorer? Can i get any other custom control same as IE? Please help me....
Thanks in advance,
sruthi
|
|
|
|
|
Hi! I am facing problem in Interprocess
communication using message queues of wince (version 5.0). The project is MFC based and I am using Embedded visual c++ version 4.0. When I am runing the project it gets successfully executed and message queses also gets created successfully but I am unable to open message queue for reading or writing purpose. I am getting error in MQopenqueue(). When I checked the Errorcode it says "MQ_ERROR_SERVICE_NOT_AVAILABLE
Cannot connect to the Queue Manager"
The source code is as below.
QUEUEHANDLE g_hRecvQueue;
QUEUEHANDLE g_hSendQueue;
WCHAR g_szRecvFormat[MAX_SIZE];
PROPID aPropID[2];
PROPVARIANT aPropVar[2];
int iProps = 0;
aPropID[0] = PROPID_Q_PATHNAME;
aPropVar[0].vt = VT_LPWSTR;
aPropVar[0].pwszVal = szPath;
iProps++;
aPropID[1] = PROPID_Q_QUOTA;
aPropVar[1].vt = VT_UI4;
aPropVar[1].lVal = 1000000000;
iProps++;
qp.cProp = iProps;
qp.aPropID = aPropID;
qp.aPropVar = aPropVar;
qp.aStatus = NULL;
// Create
DWORD ccNeededSize = MAX_SIZE;
HRESULT hRes = MQCreateQueue (NULL, &qp, g_szRecvFormat, &ccNeededSize);
if (hRes != S_OK) {
AfxMessageBox(TEXT("Message Queue creation error"));
}
hRes = MQOpenQueue (g_szRecvFormat, MQ_RECEIVE_ACCESS, MQ_DENY_NONE, &g_hRecvQueue);
if (hRes != S_OK) {
AfxMessageBox(TEXT("Message Queue open error"));
}
Please suggest the possible solution.
With Regards
Indianstar
|
|
|
|
|
We use presice timing in our program for timestamping different events. We rely on processor frequency measurements to get high accuracy results. When we ported our program to laptop we had to deal with Power Measurement to guarantee that CPU runs at maximum frequency. We’ve created own power scheme that gets activated by the program and lasts for its lifetime.
This power scheme has the following settings (the same for AC and DC):
POWER_POLICY power_policy;<br />
<br />
power_policy.user.ForcedThrottleAc = 100;<br />
power_policy.user.FanThrottleToleranceAc = 100;<br />
<br />
power_policy.user.IdleTimeoutAc = 0;<br />
<br />
power_policy.user.IdleSensitivityAc = 1;<br />
<br />
power_policy.user.ThrottlePolicyAc = PO_THROTTLE_NONE;<br />
<br />
power_policy.user.OptimizeForPowerAc = TRUE;<br />
<br />
<br />
MACHINE_PROCESSOR_POWER_POLICY processor_power_policy;<br />
<br />
processor_power_policy.ProcessorPolicyAc.DynamicThrottle = PO_THROTTLE_NONE;<br />
This power scheme when activated keeps CPU at its maximum frequency.
That was the case until we started working with the newest laptops based on Pentium M 760. The settings in the power scheme above do not prevent the processor from throttling.
I’ve got a test that measures time between two external events and counts the number of processor clocks using RDTSC instruction.
If executing on a laptop based on Pentium M 755 (2GHz, 400 MHz FSB), the test shows that with the power scheme (see the settings above) activated the processor runs at top frequency all the time, no matter what CPU load is.
The same test running on a laptop based on Pentium M 760 (2GHz, 533 MHz FSB), or on Pentium M 770 (2.13GHz, 533 MHz FSB) shows that frequency goes up and down depending on CPU load.
Please, give me a hint on what I can do to keep CPU frequency at its maximum.
I’ve also checked BIOS settings, the only two options available are dynamic frequency switching and always low.
All laptops run Windows XP Pro SP2, we write the code in C++.
Any ideas are welcome.
Vitaly Kashkarov
|
|
|
|
|
Hello. I have a pocket PC and I need to draw one string (or add a label) on the incoming call bubble. So my question is this:
How do you draw a string on a dialog that is not yours using the coredll functions? I would definately settle for being able to add a "static" or label. How would I do that?
I used spy++ and found out that the incoming call dialog bubble window hierarchy goes like this:
"text": (class)
-"Phone - Incoming...": (Dialog)
-- "": (Working)
--- "": (DISPLAYsomething)
---- "": (Webview)
----- "Accept": (ATL::BUTTON)
----- "Ignore": (ATL::BUTTON)
I am able to set text on any of those, but unfortuately they did not use a label for anything on the form other than the buttons. So that means I cant just find the existing label and change the text.
Is there a way to hook the WM_PAINT event to call a c# function after doing the regular paint? If so will I be able to use TextOut or something similar to draw a string on the form? Which window should I draw on? The Webview one?
I have been fighting with this for a while. Thanks.
Ben
|
|
|
|
|
Hi everyone!
Is it somehow possible to load, scale AND save JPEGs in evc4?
It would be no problem with GDI+, but I must use unmanaged code, so I do not have the compact framework. (Someone told me there would be no saving for Image at all for embedded)
Are there other solutions than GDI+? Or can I include GDI+ just like for desktop windows also under native? I found some imaging.h and gdiplusimaging.h in the PPC2003 SDK, but no MSDN entry or whatever for it and also no way to make use of these (boring ) files.
Or does anybody know another easy way for my problem?
Thanks,
Roland
|
|
|
|
|
Try looking up info on the IJG Library. Right now that's actually the only free way to do it as the GDI+ isn't fully implemented in the compact framework. So unmanaged is pretty much your only option. IJG is the independent jpeg group and if you go to pocketpcdn.com they have a wrapper project that makes it easier. LEADTOOLS is easiest of course, but its 1000$.
Nick
|
|
|
|
|
At the first time when I set up my apllication and start it, merge replication is done ( 2 minutes). That's not the problem. I want avoid full cycles of replication after the first time. All the time I have to wait 2 minutes, but Merge Replication shoould only replicate changed items.
I am calling the Method ReinitializeSubscription(true) before call Synchronize(), for update reasons (If database passed the first replication already).
Is there a way to cut the replication time ?
|
|
|
|
|
Hi
Ive used AdrianStanley's Sortlistview classes (available here susccessfully on the emulator but upon deploying dll are not found (also evc++ wont work on my machine). Looking for a solution I tried using unicode geometric shapes - did not work got a plain square on supposedly unicode compliant Fonts.
Tried Alans Glacial list (available here) - wont work on CF.
Then I found Alex Yakhnin's CustomHeader Code (opencf), that worked, but separately from the nice compares and the very useful TAG property on the Stanley's SortLitView . Now I am trying to merge both without success can anyone point me in the right direction.
Thanks
Aixa
myCSharp.experience(less than 4 months);
|
|
|
|
|
Hi,
I have found some code for IrDA and in class declaration there are lines:
WCE_INS CAnyClass : public BaseClase_1
WCE_DEL CAnyClass : public BaseClass_2
I do not have any idea what that could be?
Can you help me, please!
D.J.
D.J.
|
|
|
|
|
Hi,
How do you upload a file to an IIS server using Pocket IE?
I know how to do this with IE using the
|
|
|
|
|
Hi!
Can someone tell me how to remove Pocket PC SDK 2002?
I installed it, it appears in VS.NET, but I cannot find it in the "Add/remove programs" list.
Thanks, Géza
|
|
|
|
|
hello dear ce coders,
im having some troubles with win ce .net 4.2 internet services.
mainly three problems occur again and again:
1) 'random' dhcp error when using wlan
2) wlan connection, sometimes dial-up gprs too is blocked after some
problem occured (broken transfer, suddenly out-of-reach access point...)
3) undefined or at least not transparent timeouts
any hints on how to
1) avoid the dhcp problem or at least avoid the corresponding dialog to be shown
2) do some kind of reset with wininet without actually performing a device-reset
3) set/change internal timeouts e.g. for ftp file transfers
are very welcome!
thank you in advance,
patrick
----
ragingbender@web.de
|
|
|
|
|
Hi..all
MFC for Windows CE does not support GetBitmapBits().
The method which gets a RAW data(RGB)in CBitmap????
Thanks..
Have a nice day!!!
|
|
|
|
|
in the Control panel of my devices I can adjust the available storage memory vs Program memory. The thing is that I would like to do that at run time in my application. (the users of the devices should not tinker with control panel settings .)
What function can I call to adjust this value?
Thanks to anyone that can help me out.
Greets,
Davy
|
|
|
|
|
|
Thx! Just what I needed...
|
|
|
|
|
hi
i want to know why the stream classes such as ifstream and ofstream are not workin in embeded vc4.0 (but given in help that they exist) and if there is any alternate to read from file in the embeded vc
ddd
|
|
|
|
|
yes
there is an alternate way. and should read the file through fopen(),fread()
by including the header file <stdio.h>.
ddd
|
|
|
|
|
|
I'm writing an application where i need to display Arabic characters to the screen, but have had no success so far. I don't want to use an Arabic locale i.e. arabic date formats etc. From what i can see I need to load a code page: can this be done during run-time or do i need to put it in the image, if so, how?
Any ideas/tips would be appreciated,
H.
|
|
|
|
|
Is there anyone out there interested in working on getting the Visual Component Framework[^] running on win CE devices using the eVC4 compiler? We could use the help.
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
Save an Orange - Use the VCF!
|
|
|
|
|
Is there a way, in C/C++ code, to (re-)assign a static ip address of a Windows CE.NET machine?
We are the all singing, all dancing crap of the world. - Tyler Durden
|
|
|
|
|
Hi all,
I'm developing a software on Pocket PC: HP iPAQ hx2400, Japanese OS. And I have a problem in IME management.
Some text box on my application only wish to get alpha characters, so I need to change the IME mode to alpha, not katakana or hiragana as default of Pocket PC.
I already tried to use "ImmSetConversionStatus", but this function only works properly on Emulator, but actual Pocket PC.
Any one help me?
|
|
|
|