Hi, I have two Window CE applications running and I am trying to activate one from the other. I tried two different ways: grab the CWnd pointer of the other application and call BringWindowToTop (or SetWindowPos, or SetWindowActive); and the other attempt was to send the current app to the bottom of the z-order using SetWindowPos. None of these ideas seemed to work. The functions just seem to be ignored. I can cause the application forms to disappear or changes size, but the z-order I can't seem to change. Any Ideas? :confused: Paul Jahans
PaulJ
Posts
-
Application Window Position -
Saving Registry changes to Persistent memoryHi, I am writing an application using eMbedded VC++ 4.0 (SP2) for a device running Windows CE .NET 4.0. I am reading and writing to the Registry using GetProfileInt and SetProfileInt without any problems. However, these changes are only written to the Registry heap in RAM. How do I update the Registry to storage? I have tried RegFlushKey and RegCloseKeyEx and even tried using the CRegKey::Open and CRegKey::Close. But none of these work. I keep getting cryptic error messages that do not help me. Does anyone have a working example that shows how to do this? :confused: Paul Jahans
-
Auto-Run from Compact Flash CardIs there anyway to automatically run an application from a CF card when the CF card is inserted? I am writing an application using eMbedded VC++ 3.0 for WinCE 3.0. The processor I'm using ia a Pentium. :-D Paul Jahans
-
Datatype MisalignmentCan someone explain why I get a Datatype Misalignment error message when I use the ::GetDiskFreeSpaceEx function? I am getting the correct data returned but when I try to save any of the values to a variable I get this error. I've tried delcaring the variable as ULONGLONG or __ui64, but nothing works. What datatype should the variable be? and should I save the LowPart or QuadPart? I wont ever see more than 2GB of memory space. Does anyone have an example for eMbedded VC++?:confused: Paul Jahans
-
Creating a simple CSV fileI have spent almost 2 days trying to create a simple csv file that I can import into Excel. But I am having trouble with UNICODE. This is very simple to do in regular VC++ for desktop PC's, but how do you generate a CSV file using eMbedded VC++? Excel, on my desktop, does not like the CSV file generated from my Window CE computer.:confused: Paul Jahans
-
Time ComparisonsThis is very simple. I'll use this for now unless I find a more common way. Thanks for you help Chris.:-D Paul Jahans
-
Time ComparisonsHow do I compare times using CTime. When I retreive a CTime value from the registry and compare it to the current time (using CTime::GetCurrentTime(), it also compares the dates which are several days apart. I need to compare the time part. Is there a way to mask out the date part then check if the current time is > or < the time saved in the registry?:confused: :confused: Paul Jahans
-
Hexidecimal to decimal conversionHi, Has anyone out there have a routine that converts a Hexidecmal String to a DWORD? Paul Jahans
-
Pure Virtual FunctionsHow do I declare a pure virtual function that has an argument list? All the examples I've seen always seem to use the simple Shape function example. Paul Jahans
-
Using _beginthreadex in an MFC dllThe thread function is in the calling program and is declared like this: DWORD WINAPI CGUITermDoc::CommReader(void *pvData) From calling program, I call the DLL function: StartCommThread(LPTHREAD_START_ROUTINE CommProc, void *pvData) In this function, I try to pass CommProc to the _beginthreadex function, but this is where I get the compile error. Paul Jahans
-
Using _beginthreadex in an MFC dllHi, I'm trying to convert a line of code that calls the API CreateThread function to the _beginthreadex function, but I get the compile error: "cannot convert parameter 3 from 'unsigned long (__stdcall *)(void *)' to 'unsigned int (__stdcall *)(void *)" Parameter 3 is declared as type LPTHREAD_START_ROUTINE. What type should I use to avoid this compile error? Thanks Paul Jahans
-
Enumerating Catalogs using OLE DBThanks for your quick response. I'll try that. Paul Jahans
-
Enumerating Catalogs using OLE DBI can't seem to find any clear-cut example to enumerating the catalogs (databases) in my SQL server datasource using OLEDB. Does anyone have an example of this? Paul Jahans
-
How do I add a bitmap to a property sheetI am creating a wizard using VC++ MFC, but I'm having trouble adding a bitmap header to the property sheet. My bitmap gets clipped by the property pages. What is the standard procedure to accomplish this?:confused: Paul Jahans