|
thank you for your response.
|
|
|
|
|
One more question. Is it more efficient to use UpdateData() and CString method GetLength() to determine length of the member variable OR to use GetDlgItemText()?
|
|
|
|
|
Dear all,
I'm having problem displaying mixture of chinese and english character in multibyte format on a dialog box.
If I have a char array like this:
char szText[18];
szText[0] = 0xa7;//first chinese character
szText[1] = 0x41;//first chinese character
szText[2] = 0xa6;//second chinese character
szText[3] = 0x6e;//second chinese character
szText[4] = 0x20;//the rest are single byte english character
szText[5] = 0x48;
szText[6] = 0x6f;
szText[7] = 0x77;
szText[8] = 0x20;
szText[9] = 0x61;
szText[10] = 0x72;
szText[11] = 0x65;
szText[12] = 0x20;
szText[13] = 0x79;
szText[14] = 0x6f;
szText[15] = 0x75;
szText[16] = 0x3f;
szText[17] = 0x00;
How do I convert them to a CString type and display on the dialog box.
I have tried to use MultiByteToWideChar() function but was unsuccessful .
Pls help and advise. Thank you.
|
|
|
|
|
Hi All,
I am currently developing software for a Windows CE PC which i currently
dont have the hardware, thus I am using the emulator for VS2003. The
software writes out Timesheet entries to file on the WIndows CE PC which
I have done but I require to get the files off the emulator to confirm
the are correct.
Is this possible with the Emulator or would I need the hardware for that?
Best Wishes
Stuart
|
|
|
|
|
Hi everybody,
I want to develop an application for PDA device in which I must open a web page that include mpg and waw files and I must open those filse too. So I need something like an web browser activeX control under win ce but I don't know where I can find one.
I someoane Know another solution for my problem please helpe me...
Thanks,
|
|
|
|
|
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....
|
|
|
|
|
you can run cab files through the WCELoad.exe app in the windows folder
<br />
CreateProcess( L"\\Windows\\WCELoad.exe", cmdParam, NULL, NULL, NULL, CREATE_NEW_CONSOLE, NULL, NULL, NULL, &pProcInfo );<br />
where cmdParam is the full path of the cab file... you can also put some extra parameters in the cmdParam, but I don^t know them all...
Greetings,
Davy
|
|
|
|
|
GDavy wrote:
you can run cab files through the WCELoad.exe app in the windows folder
CreateProcess( L"\\Windows\\WCELoad.exe", cmdParam, NULL, NULL, NULL, CREATE_NEW_CONSOLE, NULL, NULL, NULL, &pProcInfo );
where cmdParam is the full path of the cab file... you can also put some extra parameters in the cmdParam, but I don^t know them all...
Thank You very Much ! I will give this a try tonight, and post back with the results.. I appreciate the quick reply !
Regards
Joe.........
ZapMe1
|
|
|
|
|
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
|
|
|
|