|
Strange! I don't understand why I can't get it to work.. I setup the "CreateProcess" just as you have above, and included the full path to the cab! The new app compiles and downloads to the device without error, but will not run !!!!
Any Ideas ??
ZapMe1
|
|
|
|
|
Ok, This is how I run the cab files programmatically:
<br />
PROCESS_INFORMATION pProcInfo;<br />
<br />
WCHAR cmdPara[256] = L"/noaskdest /delete 1 ";<br />
wcscat( cmdPara, FileName );<br />
<br />
return CreateProcess( L"\\Windows\\WCELoad.exe", cmdPara, NULL, NULL, NULL, CREATE_NEW_CONSOLE, NULL, NULL, NULL, &pProcInfo );<br />
Hope this helps you... Maybe it was the missing parameters that failed to make it work for you...
This should give some info about params you can pass in the cmdPara:
WCELoad info[^]
Greetings,
Davy
|
|
|
|
|
Thank You again Sir!!!
I will be able to give it a try on Friday morning, and again will post back here...
Regards
Joe.........
ZapMe1
|
|
|
|
|
To create a simple app in EVC4.0 to run another .exe, I would simply use the "CreateProcess" command!
This, however will not run a CAB file...
Can someone tell me how I can do this ??? Please....
|
|
|
|
|
Hi there,
May I ask a question?
I wanna write a program about Call Logs.
However, when researching the information about Call Logs in MSDN, It's not enough to understand for me...
Would you please supply me any simple sample about Call Logs?
Thank you very much.
|
|
|
|
|
What do you want to do exactly ?? And what do you mean by call Logs ?
Try to be more precise because it is difficult to guess what you are trying to do.
|
|
|
|
|
Thanks your reply.
Call Logs is "Received", "Dialed", "Missed", and "Call Timers".
(Maybe this is Dialed history??)
I want to get those message on my smartphone and do not use the incoming telephone number record on the cell phone device.
Are those the same??(Call Logs = Dialed history....)
I reference form....
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/APISP/html/sp_phone_calllogaccessfunctions.asp[^]
May you help and tell where have error??
case WM_PAINT:
{
HDC hdc;
PAINTSTRUCT ps;
RECT rect;
DWORD sizset;
HANDLE h;
HRESULT result;
HANDLE hPhoneOpenCallLog;
HANDLE *ph;
PCALLLOGENTRY pcallLogentry;
hdc = BeginPaint(hwnd, &ps);
GetClientRect(hwnd, &rect);
sizset = sizeof(CALLLOGENTRY);
pcallLogentry->cbSize = sizset;
pcallLogentry->fOutgoing = 1;
result = PhoneOpenCallLog(ph);
PhoneGetCallLogEntry(ph,pcallLogentry);
MessageBox(NULL,(const unsigned short *)pCallLogEntry->fOutgoing,NULL,1);
PhoneCloseCallLog (ph);
EndPaint (hwnd, &ps);
}
I have include phone.h and add phone.lib already.
But...error follow me always...
|
|
|
|
|
It would be really helpfull if you could describe the errors ! What errors do you have ? Is it compilation errors, crash of your program, ...
Be as complete as possible (give the error message and everything). Otherwise, it is difficult to help you.
-- modified at 5:30 Wednesday 31st August, 2005
And why do you put this code in the WM_PAINT message ???
Do you know that whenever something is displayed before your application (a messagebox for example), a WM_PAINT message is sent to your application ? Thus your code will run a kind of endless-loop: painting the app, showing the message box then the app needs repainting thus WM_PAINT message is sent, thus you call a message box, thus ... (ok, you got it I suppose)
|
|
|
|
|
yeah~~I got it~
Thank you~
I try a lot of ways.
At last,I get phonenumber~~~(\^^/ YA~~)
But...I want to get all phonenumber of "missed".
I don't know how to use "IOM", "fOutgoing"...
Would you please tell and help me how do I use this structure- " CALLLOGENTRY ".
I had modify original code.
void calllogs()
{
HRESULT result;
HANDLE ph;
TCHAR buffer[256];
result = PhoneOpenCallLog(&ph);
DWORD count=0;
PhoneSeekCallLog(ph, CALLLOGSEEK_BEGINNING, CALLLOGSEEK_END, &count);
CALLLOGENTRY CallLogEntry;
CallLogEntry.cbSize=sizeof(CALLLOGENTRY);
CallLogEntry.iom=IOM_MISSED;
CallLogEntry.fOutgoing = 1;
result = PhoneGetCallLogEntry(ph,&CallLogEntry);
MessageBox(g_hwnd,CallLogEntry.pszNumber,TEXT("Call Logs"),MB_OK);
PhoneCloseCallLog (&ph);
}
Thank you~
-- modified at 2:26 Friday 2nd September, 2005
|
|
|
|
|
Sorry, but I never used these things so I cannot help you a lot. I can only help if you have some compile errors or things like that.
|
|
|
|
|
Thank you~~
If I have some compile errors,I will consult with you.
|
|
|
|
|
This is terrible code - NEVER have a messagebox in a Paint handler, what if it invalidates the form ? Your Paint handler should just draw data that's already in your app, not go off and build it.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thank you~
This is my carelessness.
I finished showing "missed" of Call Logs.
I found it in "IOM".
Thank you reply.
|
|
|
|
|
Hello All,
Does anybody know how to find out interfaces exposed by a driver (.sys file)?
Thanks in advance
|
|
|
|
|
Hello All,
Does anybody know how to find out interfaces exposed by a driver (.sys file)?
Thanks in advance
|
|
|
|
|
Hi ! I am looking for an example (sample code) about how to write a PC104 (ISA bus with new hardware form factor for embedded system) for Windows OS. Any windows can do the work. Windows XP Embedded, Windows CE or Windows 98.
I am new in driver design. I understand the WDM model but I saw that we cannot (or is very difficult) to design a driver (based on WDM) for ISA bus (or PC104) because it is not PNP. Some site suggest NT4 kernel mode driver.
What to do ??? Another thing, I know that writting driver for WinCE is different than other Windows Driver.
Thanks a lot.
Danny Gilbert
Montréal, Canada
|
|
|
|
|
Hi!
Well this is coming from an Operating System developer - i have experience programming, but only in linux and os-independent environments. Please keep that in mind if my questions sound completely idiotic Thanks!
Now moving on ...
OK! so i got myself a new toy ... an iPaq hx4705 running windows mobile 2003 ... obviousely, there isn't anything TO a computer if you can't program it so i want to learn how.
I've already downloaded and installed MS Embedded VC++, a couple SDK's and the WM2003 toolkit ... got the stuff to compile and successfully run all the sample applications.
Where do i go to learn the wm2003 api? (no former windows experience)
Thanks! Any and all help is GREATLY appreciated!
Sincerely,
Jakykong
|
|
|
|
|
How to read memory sections in S-Record file?
|
|
|
|
|
I am currently starting to work on a small project containing a module which can copy files to the PocketPC. I found the RAPI and wrote a small program which does what I want to do: copy files to the PDA. But now I think it would be better to have a dialog with 2 directory trees (left desktop, right PDA) where the user can select a file on a desktop and select the new directory on the PDA. Does anyone has an idea if such a dialog already exists (I want a guild in solution and don't want to use ActiveSync)?
Using Google did not help...
|
|
|
|
|
I am using the following:
Pocket PC 2003
SQL Server CE 2.0 (Including sp3 Update)
Microsoft VB.Net Compact Framework 1.1 (sp3)
SQL Server 2000 (sp3a)
Active Sync 3.8
I am trying to use RDA Pull to transfer a table from SQL Server on my desktop PC (through IIS also on my desktop pc using sscesa20.dll). I am getting the following error message:
Error Code: 80004005
Message: The version of the Microsoft OLE DB Provider for SQL Server is not correct [,,,Version,,]
Minor Err: 29022
Source: Microsoft SQL Server 2000 Windows CE Edition.
I would be grateful if anyone has any ideas as trawling the net as provided some hints but no solution.
|
|
|
|
|
Did someone know about the source code (in C/C++ or Java) to create a bilingual dictionary for mobile phone?
Hope to receive your positive answer
|
|
|
|
|
Hell everybody,
I'm looking for a way to fill a polygon with a hatched (partly transparent) colored brush. The reason is I want to display a bitmap in the background and mark some areas ( e.g in red color ). But these areas have to remain visible. I am able to create a hatched brush (black and white) but I'm not able to draw the polygon and the border line in the correct color.
Some hints or pointers???
Thank you very much
\SOLMAN
|
|
|
|
|
how to communicate with the micro controller using USB port?
|
|
|
|
|
If somebody knows how to solve this problem, please, help.
This problem is really odd: i'm creating the application for the Pocket PC and debugging it on the Pocket PC emulator built in Visual Studio 2003. The code works fine unitl try to test my application on the Pocket PC 2003 Device Emulator (downloaded from the microsoft site) this line of the code always falls . The same issue happens on a real device. I'm asking for help again.
Kirill
|
|
|
|
|
I have found a solution. The problem is in the following: Activator.CreateInstance (Type) method, can't create an instance of the class that is described in another DLL. This is the ISSUE that we need to address to Microsoft!!!
Peace!
I said that
|
|
|
|