--- "Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
Jonas Larsson
Posts
-
Noneditable dropdown.. -
Good Old Professor Dawkins [modified]While it certainly is easy to react with a knee-jerk to Prof. Dawkins rhetoric, I think you're doing yourself a disservice by calling him an idiot. It would have been more interesting to hear you pick apart his text or his delivery of said text using reason. I do not understand what you mean by bringing “science” into disrepute. The scientific method is not a movement, and it most certainly does not have prophets or leaders that can tarnish the results and understandings of the universe it has brought us so far. Are you saying that people will start to distrust their microwave ovens or question the validity of the theory of gravity because of this advertisment? If you have the time, I suggest you watch the ‘Beyond Belief’ discussions on the science network[^], they are well worth the time. As a teaser, Prof. Dawkins gets called on for his ‘attacks’ on religion by both Prof. Lawrence Krauss and Prof. Scott Atran. You might enjoy that even though they both use reason in stead of name calling. Cheers!
--- "Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
-
Christmas rock album? -
String problemIn your example code you write
if( strcmp(str_1.data(),str_1.data()) == 0)
so I just went with the same comparison. std::string has the == operator, please refer to your documentation. If your implementation doesn't, consider updating to a proper implementation. You can also use str_1.compare(str_1) (or str_2 if it's just a type-o) /J--- "Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
-
String problemHello, If you refer to your STL implementation doc's, you should find that data(): "Returns a pointer to an array of characters, not necessarily null-terminated, representing the string's contents", so it's probably a bad idea to pass that to a function that expects 0-terminated 'strings'. You should use c_str() instead, if you want to use strcmp. A better way, if you're just testing for equality, would be to use std::string's operator ==(), as in
if (str_1 == str_1)
HTH Jonas--- "Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
-
RAPI soft-reset?I dont think its built in, but you can: * Write a dll/exe that implements this[^] * Detect what processortype is connected (CeGetSystemInfo), and transfer the correct version of your exe/dll to the pda (CeWriteFile) * Execute the soft reset with CeCreateProcess/CeRapiInvoke. HTH
--- "Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
-
Taking ScreenShottraapons wrote:
how or where to get the rapi related libraries/header files.
RAPI.dll is installed with together with activesync, lib & headers should be shipped with whatever SDK you plan to use for your pda development under [SDK-PATH]\support\ActiveSync\ Cheers Jonas --- "Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
-
Taking ScreenShottraapons wrote:
1. From Device
Write a gui-less exe to grab the screen, either using the "desktop" dc or from the video memory with GAPI. Save the resulting image in whatever format suits you. Assign a hardware button to start it.
traapons wrote:
2. From PC [ Which is connected via active sync]
Use the above mentioned exe or wrap the funtionality in a dll. Use RAPI (CeCreateProcess or CeRapiInvoke) to start the capture process. You can use CeReadFile to grab the resulting file or use IRapiStream to transfer the data directly. HTH --- "Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
-
Book RecommendationsJust to give you mixed messages, I'd read Hamilton before Banks. Banks is not bad, but I like Hamiltons "space-opera" better. Some of Banks work is (for me) hard to get into, while Hamilton writes thick books that you can read for a long time. I agree with Paul that the ending of Night's Dawn was somewhat thin, but the books are well worth the read. And to give you some more choices, I recommend David Brin's Uplift novels or if you prefer a darker future, Alastair Reynolds. ;) --- "Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot -- modified at 8:32 Wednesday 12th April, 2006 [Corrected the name of Brin's trilogy]
-
How do I get rid of the simulated keypad?1: I do not know how it works with the .Net dialog classes, but the MFC ones does not bring it down automatically then closed. 2: Use SHSipPreference(m_hWnd, SIP_FORCEDOWN) (or equiv) somewhere apropriate. --- "Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
-
Changing color of components and system."Interesting" approach by Intermec... Thanks for the info, I will save this incase I ever have to work with such a device. Jonas --- "Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
-
Changing color of components and system.Did you try RegFlushKey? --- "Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
-
Screen ShotThere should be one in your IDE if you're using evc4 (and maybe somewhere on your filesystem if you're using vs200x) called CEZoomIn. Otherwise there's lots of free ones out there, I use GetPDAScreen[^] (shameless plug) that I wrote when CEZoomIn stopped working for me. I haven't updated it for landscape mode or the new fancy high-res the kids run on their pda's today but maybe it will suffice... HTH --- "Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
-
"Run Program After Device Inactivity" (evc++)Look into CeSetUserNotification(Ex) or the older CeRunAppAtEvent/Time and GetIdleTime Im not sure you can get notifications tied to idle time, but you could write a gui-less application that gets started by the times events to check if the device has been idle for long enough, and then starts the program that should run. If your app is always running (or if you implement a service), you should get by with just GetIdleTime. HTH --- "Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
-
Disable ActiveSync with evc++ codeHi, I've used this registry key in the past, dont know if it's still valid: [HKEY_CURRENT_USER\ControlPanel\Comm] "AutoCnct"=dword:00000000 This will stop the decive from trying to start an activesync session when a cable is plugged into the rs232/usb hybrid, but I guess it wont terminate an active connection. Unsure if that is what you are after. HTH --- "Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
-
Can I Import "CreateEvent" into Windows CE.NET?Hi, 1: Probably yes, I use it all the time, although from C++ and on the PPC2000, 2002, WM2003 & 2005 platforms. It's highly unlikely that your OEM pulled that function from their build of Windows CE if you're using a custom build, but ofcourse possible. 3: You should get a helpfile (.chm) for the SDK if you're targeting PPC or WM. I'm still stuck with EVC3, so I cant help you with where it ends up when using VS2003. Last question: .Net is not my thing and its hard to know whats wrong without seeing some code, but perhaps you should try writing a testprogram using that class? ie a thread that does the .Net equivalent of:
DWORD WINAPI thread(void* lp)
{
while (true)
{
WaitForSingleObject(event, INFINITE);
MessageBox(0, L"event signaled", L"thread", 0);
}
return 0;
}And then you can add a button that sigals the event when pressed. --- "Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
-
"Running Programs" on Windows MobileJethro63 wrote:
Can anybody shed some light on this issue? Why do certain programs that run on the PDA APPEAR to close but remain running to some extent? How can I write MY simple application so that when it is closed, it actually CLOSES?
The little 'X' in the topright corner does not close the program, it only minimizes it. Dialog-based programs generally have a small 'ok' button up there, which maps to OnOK -> AppExit. You should be able to add the 'ok' button to your SDI based app with SHDoneButton(GetSafeHwnd(), SHDB_SHOW); when creating the CMainFrame class (or handle it via menus, etc). --- "Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
-
What to do in Sydney?Chris Maunder wrote:
Relax, kick back and soak up the atmosphere
Yes, thats the main plan, but I'm hoping to bring back something more than photos of me on the beach with various beverages in my hand. :) (or not, given the weather here in sweden atm)
10 fog 20 snow 30 hail 40 rain 50 slush 60 GOTO 10
--- "Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot -
What to do in Sydney?Both suggestions are on the top ten list, but I was looking for more specific things related to the Sydney area. :laugh: --- "Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
-
What to do in Sydney?Hi all, I'm going to pack my backpack and travel the ~21800 km to Sydney in a few weeks. I'm going to be in Australia for 24 days (mostly in the Sydney area, I guess) and I would greatly appreciate tips on what to do/not to do. I've got a few travel guides and I'm going to visit friends who live there, but eventually I'll probably grow bored with the tourist-thing or ogling the local women, so all kinds of suggestions are welcome. :) Btw, trying :vegemite: is already on my list of things to do. ;) --- "Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot