|
|
Hi at all!
I´m trying to recieve a signal from a normal Remote Controll with my Pocket PC. Seems, that the IrDA-Port only react on IrDA based devices. Is this right, or is there a way to get the signals that the remote control is sending to the pocked pc?
|
|
|
|
|
I am writing test cases for some utilities that use MultiByteToWideChar and WideCharToMultiByte.
I need a test case with multibyte string that has two bytes for a character. Does anyone know some sample test strings? Thanks.
|
|
|
|
|
Ask a chineese friend!
Acutaly that is the easiest way, I have even had them send me text in an email. You could also try copying them from Asian web sights.
You can code them youself using imbeded hexidecimal character values. Here is a hand coded one in Japaneese:
TCHAR* g_pJTestFind1 = _T("\xE4\xE5\xE9\x5C\xE4\xEB\xE5\xDF");
I beleive I just used random characters. Look up the code pages for Chineese, Japanes and Korean at Microsoft on the web.
For test purposes, you'll probably have to call: TCHAR* pLocale = _tsetlocale( LC_ALL, _T("Japanese") ); , in your code. You'll also need to add the launguage, you are testing, to your regional settings (Win2000 and above). You may need to, when the your test window/application pops up, go to the task bar and select the language you wish to use (for that app.).
INTP
Every thing is relative...
|
|
|
|
|
I want to Use NTGraph3D ATL/STL/OpenGL activeX control in Visual C++
to draw 3D Contour Plot.
from where i can get this ActiveX Control alognwith its documention.
I could not download its sample application becasue the error i got is server not respond.
if any body use it and has its evaluation copy plz guide me
regards,
|
|
|
|
|
Hi
i am tried to pass japnease string from desktop to pocktpc.for this i do following
1. In my unicode enabled desktop application i read japnese charcter from file, then convert it in multibyte string using WideCharToMultibyte & code page CP_UTF8
2. then on device side i read this multibyte string from file & tried to convert it back to japnese.i am trying Multibytetowidechar but problem is on device side there is no support for CP_UTF8 , then how can i parse the string back into japnese character?
Does any body help me? any other solution is welcomed.
Thanks in advance
Regards
Amit
|
|
|
|
|
I am using Visual C++ 6.0. How could I display the File Properties dialog box using this platform? For example, when I click Properties on File menu, it will display the File Properties dialog box where the user would be able to know the file size of the opened file. An example of this is MS WORD when you open an MS WORD document and click on File -> Properties, it will show the size of the file and other info.
|
|
|
|
|
SHELLEXECUTEINFO sei;
ZeroMemory(&sei,sizeof(sei));
sei.cbSize = sizeof(sei);
sei.lpFile = "myfile.txt";
sei.lpVerb = "properties";
sei.fMask = SEE_MASK_INVOKEIDLIST;
ShellExecuteEx(&sei);
I think this will help you.
In case of word dialog is custom dialog from application ,I guess.
|
|
|
|
|
I have trouble in doing large amount of convertion from CString to unsigned *char or char to unsigned char. Is there any fast method or standard function in doing this? Please help!
|
|
|
|
|
everthing is stored as char in memory, you just need a pointer to it.
W.r.t CString you have (LPCTSTR) and GetBuffer().
-prakash
|
|
|
|
|
But
LPCTSTR A 32-bit pointer to a constant character string that is portable for Unicode and DBCS.
I need unsigned char* type.
Could you explain more detail with example? Please!
|
|
|
|
|
CString str;<br />
str=_T("abc");<br />
<br />
unsigned char *s; s=(unsignedhar*)str.GetBuffer(str.GetLength()+1);<br />
::AfxMessageBox((LPTSTR)s);<br />
|
|
|
|
|
rather than doing C-type caste.
unsigned char *s=reinterpret_cast <unsigned char*> ( str.GetBuffer(str.GetLength()+1));
-- modified at 2:42 Friday 14th October, 2005
|
|
|
|
|
For example
If the content of str is 0x30 0x31 0x40 0x50,
the content of s will be 0x30 0x00 0x31 0x00 0x40 0x00 0x50.
How to solve it?
Please help!
|
|
|
|
|
the internal pointer of str and s both are pointing to same memory location
|
|
|
|
|
In fact that I need to put the unsigned char* into a byte array.
Is it the UNICODE problem?
Do you know any good method to put the data into unsigned char* and byte array?
Please help!
|
|
|
|
|
|
I have already used the CByteArray, but I have some data in CString format or char format. So I need to convert them into Byte Array.
|
|
|
|
|
is your project build under unicode?
if no
the return value returned by getbuffer can be considered as byte buffer.
unsigned char* p;
*p=' ';
or p[0] = 'A';
-prakash
|
|
|
|
|
Yes!
After I change back to MBCS, it work now.
Thank you very much!
|
|
|
|
|
Guys,
I have a VC++/MFC app that connects to a SQL Server database. My application needs to take some action when a particular table in the database is inserted with a new record.
The traditional method would be to continously check the table that I am interested in and pull the record out. Is there any other way by which my app can be notified when a particular table on the database is inserted with a new record.
Thanks a bunch in advance for reading through my issue,
Best,
Mustufa Taj
Software Developer
|
|
|
|
|
Just a thought, can you set up a trigger in the database?
A trigger that fires at an insert-command?
And then make that database trigger to fire an event that you can catch in your program?
If it's possible, it seems to me as the most effecient way to do it.
|
|
|
|
|
kakan wrote: Just a thought, can you set up a trigger in the database...it seems to me as the most effecient way to do it.
I agree.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
|
Hello, everyone!
When I run my program in debug mode, (use vc7), the
debugger say : can find xxx.dll, this dll is used in my
program, how can I let the debugger find the dll?
where should i add the dll path?
Please tell me , thank you!
|
|
|
|