Skip to content

Mobile

General Discussions on Mobile related development. For Android specific development please see the Android forum

This category can be followed from the open social web via the handle mobile@forum.codeproject.com

3.8k Topics 8.1k Posts
  • Creating a simple CSV file

    c++ hardware question
    3
    0 Votes
    3 Posts
    9 Views
    U
    Make the first two characters of the CSV file you generate FF FE. This is how a Unicode text file is identified. FE FF is used on some OSes with the other byte ordering. You'll see this if you look at the raw file contents that RegEdit generates when you do a registry export on Windows 2K.
  • Multiple property sheet with a global toolbar

    design help tutorial question learning
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • How to show the SIP automaticly at startup?

    question c++ tutorial
    3
    0 Votes
    3 Posts
    9 Views
    D
    Thanks :)! It works fine! Daniel ;) --------------------------- Never change a running system!
  • Datatype Misalignment

    c++ hardware performance help tutorial
    2
    0 Votes
    2 Posts
    7 Views
    J
    Hi, did a quick check on my system and it works fine. Since you didn't post any code, I have no idea why you got a datatype misalignment. TCHAR buff[200]; ULARGE_INTEGER lFreeCaller, lTotBytes , lTotFreeBytes ; ::GetDiskFreeSpaceEx (NULL, &lFreeCaller, &lTotBytes, &lTotFreeBytes); swprintf(buff, _T("%u mb free for caller, %u total mbytes, %u total free mbytes"), lFreeCaller.QuadPart >> 20 , lTotBytes.QuadPart >> 20, lTotFreeBytes.QuadPart>> 20 ); MessageBox(0, buff, _T("Info"), 0); unsigned __int64 test1 = lFreeCaller.QuadPart; unsigned __int64 test2 = lTotBytes.QuadPart; unsigned __int64 test3 = lTotFreeBytes.QuadPart; int mb1 = (test1 >> 20); int mb2 = (test2 >> 20); int mb3 = (test3 >> 20); swprintf(buff, _T("%u mb free for caller, %u total mbytes, %u total free mbytes"), mb1, mb2, mb3); MessageBox(0, buff, _T("Info"), 0); Not sure why the first messagebox reports 0 MB and the second shows 15 MB for Total number of bytes, but Im sure you can investigate that further if you're interested in that value. HTH “Our solar system is Jupiter and a bunch of junk” - Charley Lineweaver 2002
  • 0 Votes
    5 Posts
    13 Views
    J
    Well, I think my recent post might actually be a good starting point. You see, MFC does redefine operator new in afxmem.cpp. Looking at the code you can see that there are special provisions for when you are using MFC in a shared DLL. As a matter of fact, operator new is implemented in the MFC DLL (if you are using it at all). So this might be the source of your problems: your app is using one operator new and your DLL is using another... :eek:
  • Date Time Picket in a PropertyPage...

    com question learning
    3
    0 Votes
    3 Posts
    7 Views
    J
    I had a feeling you would probably be the one to answer. ;-) Joshua Guy Sonork ID: 100.9944 ICQ: 519642 Hotmail: JoshuaJGuy@hotmail.com
  • List Control with Check box option

    help
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Menus

    question learning help
    24
    0 Votes
    24 Posts
    90 Views
    J
    Amit Dey wrote: I think this should work with PPC2002 too This might be the problem, Amit. Both me and John experienced the same problem on the PPC 2002, and this led me to write an article on the subject. Have a look at it here: Disabling top-level popup menus in the PocketPC 2002 [^]
  • SHNotificationUpdate...

    com question announcement
    3
    0 Votes
    3 Posts
    6 Views
    J
    Thanks. I figured out another way. In the control panel under sounds and notification you can enabled and disable sound for notification that are listed. I added to the registry an entry for my app based on it GUID and did not add the key for the name. I also set the key that tells it to play the sound to 0. Since there is no name it does not show up in the sound notification options giving the user the ability to enabled the sounds. I think this is the preferred approach because there are actually several OS notification that are in there but don't have names so they don't show up in the control panel. Also it won't interrupt an background audio playing. It's worked great for me. Joshua Guy Sonork ID: 100.9944 ICQ: 519642 Hotmail: JoshuaJGuy@hotmail.com
  • CompareItem

    tutorial
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Display objects of the same type

    2
    0 Votes
    2 Posts
    6 Views
    J
    Can you show the code? There should be no problem achieving that.
  • CWindow over CView

    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • html control as an output window

    help html com question announcement
    5
    0 Votes
    5 Posts
    15 Views
    B
    Yeah, I think that's what I'm going to have to do. There's an option to jump to a specific anchor, so I'll just write my buffer, followed by an anchor line to the control each time, then jump to that -- Help me! I'm turning into a grapefruit!
  • Changing font size in evc++

    csharp c++ help
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Programming for Symbian OS

    tools question
    2
    0 Votes
    2 Posts
    8 Views
    J
    Download latest SDK (C++/Java/OPL/VB) from Symbian developer website. You will find many sample programs that can get you started quickly. I have used C++ SDK. It is highly object oriented and expected development style took sometime initially. HTH, Junkie "* Code till death *" http://www.askarya.com
  • opening more than one serial port

    4
    0 Votes
    4 Posts
    10 Views
    J
    Two questions: Frank S. wrote: HANDLE hCommPort Shouldn't this be HANDLE& hCommPort ? Are you correctly spelling the COM ports like COM1: and COM2:? You are using the same code for CreateFile as I did. The only difference is that I opened only one port... Other than these, I have no immediate clues. :(
  • Detecting directional button

    c++ question
    4
    0 Votes
    4 Posts
    11 Views
    F
    Well, if you have a CListCtrl, you can use that function: void CList::OnKeydownList(NMHDR* pNMHDR, LRESULT* pResult) { LV_KEYDOWN* pLVKeyDow = (LV_KEYDOWN*)pNMHDR; // TODO: Add your control notification handler code here if(GetAsyncKeyState(VK_UP)) { ...... } Hope that helps :) Frank _____ easySMS for pocket PC _____ www.Siedler-Net.de/WinCE/easySMS/
  • Urgent! FileI/O Problem

    c++ help question hardware
    8
    0 Votes
    8 Posts
    20 Views
    J
    I'm not sure of what might be happening, but some of the functions might be expecting TCHAR* instead of char*, although the compiler should complain about this. Is there anything wrong in the file itself? Why not use MFC's CFile?
  • Read text file ??

    question
    4
    0 Votes
    4 Posts
    26 Views
    D
    If you have the following 3 characters abc in the file "abc.txt", try this: #include <atlbase.h> // need for A2CT macro CFile f; CFileException e; if (f.Open(_T("abc.txt"),CFile::modeRead,&e)) { USES_CONVERSION; // need for A2CT macro char szChar\[255\] = { 0 }; UINT nRead = f.Read(szChar,3); // Read the 3 characters 'abc' szChar\[nRead\] = '\\0'; // Add the NULL terminator CString strMsg; strMsg.Format(\_T("Read text: %s"), A2CT(szChar)); // Ansi --> UNICODE AfxMessageBox(strMsg); } Daniel ;) --------------------------- Never change a running system!
  • Creating a user mode process from kernel mode driver

    question
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied