Scrollbars and CListCtrl
I am working with CListCtrl window which has only one column, but I
really need to suppress appearance of horizontal scroll bar. I tried
to modify window style to remove WS_HSCROLL, but seems that MFC
overrides me. For now I am suppressing it by loading data, getting
client rectangle and setting column width to client rectangle width.
Unfortunately this fails with PocketPC WinMobile 5. There
GetClientRect seems to return rectangle that includes scrollbar. This
adds a problem of now finding the width of vertical scrollbar,
solution to which is not obvious to me.
There must be a better way to suppress horizontal scrollbar in
CListCtrl. Can someone please point me at it, or at least tell me how
to programatically find scroll bar width in CListCtrl.
Thanks,
Henryk Birecki Tag: List of all installed application? Tag: 121700
DrawIcon API
Hi Masters :-)
Could anyone of you please translate the following into Visual Basic
2005 Code ?
I am new to this and tried every trick but failed to translate. Any
help would be highly
appreciated. I can't use Graphics.DrawIcon as I don't have a
IconFile , I am using
ExtractIcon to get a handle to the Icon. Here's the VB6 which I am
trying to Convert
- - -- >
Declare Function DrawIcon Lib "user32" (ByVal hDC As Long, ByVal x As
Long, ByVal Y As Long, ByVal hIcon As Long) As Long
Declare Function ExtractIcon Lib "shell32.dll" Alias
"ExtractIconA" (ByVal hInst As Long, ByVal lpszExeFileName As String,
ByVal nIconIndex As Long) As Long
Private Sub Form_Load()
Dim li_hicon As Long
li_hicon = ExtractIcon(li_my_hInst, "C:\WINNT\NOTEPAD.EXE", 0)
picAplIcon.AutoRedraw = -1
li_retcode1 = DrawIcon(picAplIcon.hDC, picAplIcon.ScaleLeft,
picAplIcon.ScaleTop, li_hicon)
picAplIcon.Refresh
End Sub
Thanks to you all in advance!!
Best Regards,
Sudhansu Tag: List of all installed application? Tag: 121681
VoIP Client based on SIP - WM 5.0/WM 6.0
I have develop a VoIP Client based on SIP with RTC Client API. Now, I have to
adapt to WM 5.0/WM 6.0, but it doesn´t support RTC Client API.
Is there any other API or something to develop VoIP Client based on SIP in
WM? What can I do? I am not professional and very new in VoIP development.
Thank you! Tag: List of all installed application? Tag: 121680
Disable "Establishing Connection" Pop-up
Is there a way to hide/eliminate this popup dialog when my device is
connecting?
Thanks,
Carlos Tag: List of all installed application? Tag: 121679
Unable to load service dll
Hello friends,
I have created a dll called as MYS.dll using the sample code
of SampleService.
I have deployed this dll through a .cab file which has registry settings
under services for this Dll.
After rebooting Pocket PC 2003 emulator MYS.dll is loaded,
But the same does not work for Windows Mobile 5.0 Pocket PC.
Is there any problem with Windows Mobile 5.0 Pocket PC.
If any solution do reply.
regards,
shraddha Tag: List of all installed application? Tag: 121668
Is avaliable Pocket PC emulator for PC to test Google Maps for mobile ?
Hi,
I would like to test Google Maps for mobile under Pocket PC emulator
for PC before making a decision
to get one.
Is any such PPC emulator for PC with network access feature already
avaliable ?
Darius Tag: List of all installed application? Tag: 121662
update APs
How often does the pocketpc update its wifi available network lists (APs)?
Can we change the frequency to update the APs lists? and How to change it?
thanks,
--
M.K. Tag: List of all installed application? Tag: 121660
problem related to CComboBox in VC++
I made the ComboBox on click of radio button
that created correctly
CComboBox MyComboBox;
object is declared in the .h file
& i add the string in the combobox in .cpp file
MyComboBox.AddString("I Am In Meeting");
MyComboBox.AddString("I Am Angry");
but it gives the error that
error C2664: 'AddString' : cannot convert parameter 1 from 'char [11]'
to 'const unsigned short *'
Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
plz solve my problem
thanks & regards preeti jain Tag: List of all installed application? Tag: 121657
IFormProviderEx Implementation Question
Please excuse me if I have selected the wrong group to post my question, I'm
happy to relocate somewhere more appropriate if necessary. I've searched
through the groups for other posts regarding my question and haven't found
the answer.
I'm attempting to customize some behavior of the Pocket Outlook (Inbox,
tmail.exe, what have you) by implementing IFormProviderEx. I'm specifically
interested in being able to provide custom icons for the messages in the
listview, which GetMsgStatusIconIndex would seem to allow for. I've followed
the sample code (<SDK>\Samples\CPP\Win32\Customform) and have it working in
my sandbox project. I can see that the CreateCompostForm and CreateReadForm
methods are being called at appropriate times, so I am confident my project
and registry settings are configured correctly. (I also see that my
FormFactoryEx function and my QueryInterface implementation method is being
called.)
The problem seems to be that GetMsgStatusIconIndex is not being called. No
icons are being displayed in the listview, which is reasonable given my
current progress. Any suggestions? =)
Also, once GetMsgStatusIconIndex is being called, I am a bit uncertain as to
where the icons need to be in order for my index result to be meaningful. I
haven't gotten to the point of attempting this, due to my first problem, but
my idea is to include my icons as resources in my DLL. If anyone has
information on this piece of the puzzle, I'd greatly appreciate that as well.
Thank you for your time, please let me know if I can provide further details.
Eric Tag: List of all installed application? Tag: 121641
MAPI folder enumeration
Does anyone have any sample code that enumerates through all of the folders
off of the root of a known message store? Tag: List of all installed application? Tag: 121639
Solution platforms in VS 2005
Does anyone know how to remove a configuration from the solution platforms
drop down list for a solution in Visual Studio 2005. I no longer need to
support Pocket PC 2003 and want to get rid of any reference to it. Tag: List of all installed application? Tag: 121638
How to detect incoming call
Hi All,
Is there a simple method for an application to detect an incoming phone call
on a WM device? I don't want to answer it, just know it is ringing.....
Thanks,
Freg Tag: List of all installed application? Tag: 121637
ActiveSync Service Provider for custom contacts
Hi All,
Thanks all in advance..
I am writing a plugin for POOM, adding a custom field in Contacts. This came
as a success and could able to do it. But while syncing this additional
custom filed is not syncing with the desktop. So I started wtiting an
ActiveSync Service for this custom filed. I thought it might be easy. But
when I dig further a lot many problems arise.
I'm getting the custom field data by calling GetIDsFromNames() and
GetItemFromOidEx(). the oid's I'm getting from poomobj->get_oid().
I'm not able to get the required information for populating the OBJTYPEINFO
in GetObjTypeInfo().
The CEOID I'm getting in the ObjectNotify is not at all matching with the
oid's. I'm stuck up totally and couldn't able to move further.
Like to get the information how to implement this feature. Is it possible to
do this in WM 5.0? Appreciate for the valid reply. Will be good if aby one
can refer somebody who already did this..
Thanking you.. Tag: List of all installed application? Tag: 121633
setsockopt with paramter TCP_NODELAY does not work with WM5 device
My program works in such a way that I would benefit from the TCP_NODELAY
option. I read and understand why a developer might not want to
enable/disable this setting.
This code works on Windows but not on CE. On CE, if I set the value to 1
and read it back, then the value is 8. When using a network analyzer, I can
see that this setting has no effect on CE whereas it works perfectly on
Windows.
Any ideas?
int on=944; // any value but 1 or 0
int len = sizeof( on );
getsockopt( Socket, IPPROTO_TCP, TCP_NODELAY, (char *)&on, &len );
// on equals 0
on = 1;
setsockopt( Socket, IPPROTO_TCP, TCP_NODELAY, (char *)&on,
sizeof(on) );
int len = sizeof( on );
getsockopt( Socket, IPPROTO_TCP, TCP_NODELAY, (char *)&on, &len );
// on equals 1 on Windows, but it equals 8 on CE Tag: List of all installed application? Tag: 121632
Catch DIALBUTTON on WindowsMobile 5
Hi all!
I'm programming in VS8 with C#.
How to change default application started on dialbutton press?
I like to start a my phone screen...
Thank you! Tag: List of all installed application? Tag: 121630
MFC Fonts question
I have an eVC app using MFC. To change fonts on objects, I use
CFontHolder.InitializeFont. This works fine for normal Western fonts
like Tahoma, Courier, etc. However, if I use a font like MS Song or
WebDings, the name of the font does not change.
I know these other fonts are installed properly: I can use them from
Word Mobile.
What could be the problem? Tag: List of all installed application? Tag: 121628
How to close a form which is opened using ShowDialog() option??
Hi
I am developing an application which opens the windows standard contact form
by using ShowDialog() option like
Contact ContactEntry = new Contact();
after filling this contact i call the following
ContactEntry .ShowDialog();
Now when i try to cloe this form it doesn't work,I think this function is
caled in a different thread and this is asynchronous call. It require user
input to close it.Please help to resolve this. Tag: List of all installed application? Tag: 121624
How the security policies work with pushmail
Hi All,
I have a couple of questions relating to the device security settings when
using Exchange Server pushmail.
Firstly, when are the security settings applied? Is it every time a sync is
done and a difference is found? If so what is the purpose of the refresh
settings time?
Secondly, what is the difference between the keys
HKLM\Comm\Security\Policy\LASSD\AE\{50C13377....
and
HKLM\Comm\Security\LASSD\AE\{50C13377....
As on my device the latter seems to be the one that defines the security
behaviour and they currently differ.
Thirdly, what AEFrequencyType value would allow me to have an inactivity
timeout, as well as lock the device on suspend?
Thanks in advance,
Freg Tag: List of all installed application? Tag: 121623
Unable to kill application
I am writiing an application in c# targeting window mobile 5.0. The project
consists of one application(lets call it main) which needs to start another
application. I do this using process class. this part works fine. Now when my
other application starts, i need to hide it. i do that using this.hide(). Now
I need to kill this applicatiion from my main application. which I am unable
to do. process.kill, process.close, process.closemainwindowhandle all fail.
Even the findwindow and destroywindow doesnt work, since findwindow cannot
find my window since its hidden. How can I kill my application from my main
application. Please suggest
Thanks and regars
Pulkit Sethi Tag: List of all installed application? Tag: 121622
How t o load our own service dll
I am working on Windows Mobile 5.0 for Pocket PC.
I have created own service dll as TestService.dll refering sample code of
SampleServiceMFC.zip .
Resgistry settings for it as follows
[RegKeys]
"HKLM","Services\MyService","Order","0x00010001","8"
"HKLM","Services\MyService","Discription","0x00000000","Test Service
demonstratig MFC usage"
"HKLM","Services\MyService","Context","0x00010001","0"
"HKLM","Services\MyService","Prefix","0x00000000","TSE"
"HKLM","Services\MyService","Keep","0x00010001","1"
"HKLM","Services\MyService","Index","0x00010001","0"
"HKLM","Services\MyService","Dll","0x00000000","TestService.dll"
"HKLM","Services\MyService","DisplayName","0x00000000","Sample MFC
Service"
My sevice is not loaded if soft reset done.
Can any body help me with this problem.
Is it that on emulator it doen't work. Tag: List of all installed application? Tag: 121621
Unable to kill a process
I am writiing an application in c# targeting window mobile 5.0. The project
consists of one application(lets call it main) which needs to start another
application. I do this using process class. this part works fine. Now when my
other application starts, i need to hide it. i do that using this.hide(). Now
I need to kill this applicatiion from my main application. which I am unable
to do. process.kill, process.close, process.closemainwindowhandle all fail.
Even the findwindow and destroywindow doesnt work, since findwindow cannot
find window handle since its hidden. Same is the case for SendMessage using
WM_CLOSE. How can I kill my application from my main application? Please
suggest. Tag: List of all installed application? Tag: 121619
Help: Question about TAPI and Modem.
Hi, everyone, have a nice day,
Sorry to bother you, but I have some question about the use of TAPI.
My work is to develop a CSD-trans app on PPC Phone Edition(WM 5
kernel), but actually the PDA is not bought yet: this is because my
project manager wanted to reduce the risk of our project and he told
me to develop an app using TAPI in windowsXP at first for testing, and
the test use TWO normal 56k modem(V.90 OR V.92) and TWO PCs instead of
the original TWO GSM Modem, one PDA and one PC. The TAPI is of ver2.0.
My question is:
1. In MSDN, I found that TAPI2.0 need UNIMODEM to work and the actual
modem must be "Hayes-compatible". I understand what's "Hayes-
compatible", but how can I judge whether a modem is "Hayes-
compatible" ? Is there some trade-mark or some verification mark or
something like this on the modem ? I think the RS232 56k modem must be
"Hayes-compatible", am I right ?
2. If I connect the RS232 modem to the PC, how can I make the TAPI to
use this modem OR how can the TAPI entity "discover" the modem ? Maybe
it's some confusing, let me explain more: when you need to use
TAPI ,firstly you may use lineInitialize() to get the total number of
TAPI supported device, then negotiate the version of TAPI and so on.
Before calling lineInitialize(), there must be some information of
modem devices stored at somewhere in the OS, then the lineInitialize()
function could be possible to return the information. If what I said
is right, how to make the TAPI entity to know there is a modem on the
commport ? So after calling lineInitialize() the TAPI entity will
found the special modem.
3. Is it possible to translate the app to Windows Mobile without much
work ? Is there no question if the normal modems are replaced by the
GSM modem (both use hayes AT set)?
Thanks your precious help ahead. ^_^
Best Wishes,
skovano Tag: List of all installed application? Tag: 121617
ActiveSync disconects other NDIS session
We develope MDTV application which recieves DVBH TV transmition and enables
video players to show the MDTV broadcast.
Our device driver acts as NDIS miniport which sends IP/UDP packets recieved
from the MDTV modem and put it in the device IP stack.
Out system works fine as long as the active sync is not working, but as the
device placed in the cradel, and active sync starts - no more UDP packets are
recieved although the driver itself keeps working as usual.
After the device is off the cradel, the player application can reopen a
socket and the packets keep coming.
Killing the ConnMgr process solves the problem, both active sync and MDTV
are working at the same time but this ofcourse can't be a solution for the
end user.
Any suggestions?
Thanks. Tag: List of all installed application? Tag: 121613
INF file entries :MajorVersion, MinorVersion?
The INF file used in building an installation of a Pocket PC program has a
section for writing registry keys such as:
HKLM,Software\Publisher\App\MajorVersion,0x00010001,1
HKLM,Software\Publisher\App\MinorVersion,0x00010001,0
I read somewhere that these entries are just for being a "Good Citizen" for the
benefit of the Windows CE Application Manager. Where can I find out the exact
function of these entries, and what the consequences would be if I left them out
of my INF file. When I release an upgrade with a different "internal" version
number, should I update this record of the version numbers too? And what is
that 0x00010001 all about?
Robert Scott
Ypsilanti, Michigan Tag: List of all installed application? Tag: 121605
Diagnosing a WMDC service provider error
I'm trying to migrate a service provider from ActiveSync/Windows XP to
Windows Mobile Device Center/Windows Vista. It's my understanding but
not experience that the interface remains the same, so I'm trying to
figure out why synchronization runs without error, but my service
provider fails to run.
In the WMDC logs I see 4 exceptions right before my data type's
"Replacing native DataType" dump:
wmdc Verbose: 0 : ActiveSyncEngine.OnLoaded: Worker Thread before
invoking FixUpDataTypeList
wmdc Verbose: 0 : ActiveSyncEngine.FixupDataType Replacing native
DataType. Name = Files StoreProgId = MS.WinCE.CEFStore
wmdc Verbose: 0 : ActiveSyncEngine.FixupDataType Replacing native
DataType. Name = Mobile Favorites StoreProgId = INetRepl.ReplInet
wmdc Verbose: 0 : ActiveSyncEngine.FixupDataType Replacing native
DataType. Name = Notes StoreProgId = MS.WinCE.InkStore
First-chance exception at 0x7733b09e in wmdc.exe: Microsoft C++
exception: EEMessageException at memory location 0x06c5f5a0..
First-chance exception at 0x7733b09e in wmdc.exe: 0xE0434F4D:
0xe0434f4d.
First-chance exception at 0x7733b09e in wmdc.exe: Microsoft C++
exception: EEMessageException at memory location 0x06c5f5a0..
First-chance exception at 0x7733b09e in wmdc.exe: 0xE0434F4D:
0xe0434f4d.
wmdc Verbose: 0 : ActiveSyncEngine.FixupDataType Replacing native
DataType. Name = MY_DATATYPE_NAME StoreProgId = MY_DATATYPE_PROGID
wmdc Verbose: 0 : ActiveSyncEngine.OnLoaded: Thread pool done invoking
FixUpDataTypeList
I looked at the wcesmgr*.mvu file (appears to be a copy of repl.dat
after the last sync) and it does include the CEDB rows from the
device.
* Any clues to what might be the problem?
* Additionally, anyone know where there's any developer information
out there for WMDC?
* Is it possible to remotely debug a service provider on a Vista
machine from an XP machine (I only have a license for the XP machine)? Tag: List of all installed application? Tag: 121602
Flight Mode On/Off Example Needed
I'm looking for a way to completely disable flight mode on a
SmartPhone.
>From everything I've read that involves using ExTAPI with
lineSetEquipmentState.
Kicking around in the internet is a Alex Feinman's TAPI wrapper (1.6)
but that does not seem to work at all on my device.
I've been looking at the Extapi example in the SDK which clues me in a
little bit in terms of calling the API but I am stuck trying to use P/
Invokes to get it working in managed C# code.
If anyone can point me in the direction of an example of what I'm
trying to do or tell me of some way to just completely disable flight
mode on a device it'd be much appreciated.
Thanks Tag: List of all installed application? Tag: 121589
Formatting Information
I'm currently writing an app that has a lot of text based information,
but I'm having trouble figuring out how to display and format this text.
The text is supposed to be stored in a database and my app will read the
text from that database and then format it appropriately within the PDA.
This is the part I'm having trouble with - the fact that the text is
dynamic and my WindowsForm has to adapt to it. Say I have the following
(using HTML):
<h2>Some Title</h2>
<br>
<b>Sub title: </b>
<li>List item one</li>
<li>List item two</li>
<li>Sub list item two</li>
<li>List item three</li>
How can I format all of this information using standard WindowsForms
controls? Do I just build a bunch of Windows.Forms.Labels and drop the
text in? Would I be better off using real HTML (hosted on the PDA, not
web) and loading it into the WebBrowser control?
Thanks for any advice. Tag: List of all installed application? Tag: 121587
how to determine emulator or device programmatically?
I need to get the device id but only when the program is running on the
device and not on the emulator, but i'm not able differentiate it
programmatically. Any help is appreciated Tag: List of all installed application? Tag: 121586
How to get notified in PPC application when PPC is sync'd
I have a Pocket PC application (C#, .NET on Mobile 5) and I need to determine
either: 1) when the Pocket PC is connected with the host PC through
ActiveSync, or 2) when one or more files are deleted from a Pocket PC
directory - these are deleted by a host PC application using RAPI. Is there a
way for my PPC to get either notification? Tag: List of all installed application? Tag: 121580
WM5 Cab file prompt for location
Hi,
I'm trying to port my app from a WM2003 device to WM5. When I am
installing my cab files on the
WM5 device, I am being prompted to, "Choose a location to install <cab
name>", with options for
"Device", "\SD Card", and "\Flash File Store".
How do I get the cab files to tell the installer that I don't want to
be prompted, that I know the destination location. The
DestinationDirs are set in the inf file that created the cab files.
My hardware is Intermec 761 (old) and the Intermec CN3 (new), if that
makes any difference.
Any help would be appreciated, Thanks.
Carlos Tag: List of all installed application? Tag: 121577
Services in WM5.0 - PLEASE, HELP!!!
Hi all,
I've got an application developed for PocketPC 2003 where a service
registered in HKEY_LOCAL_MACHINE\Services\ is loaded trough the function
ActivateService.
Now I have to translate and re-compile in VS2005 in order to execute
it on a Windows Mobile 5.0 device.
I've tryed using ActivateService, RegisterService and GetServiceHandle (even
it's deprecated since WM5.0) from setup.dll's Install_Init and Install_Exit
functions, but none of them work. In fact, none of the functions xxx_Init,
xxx_Open, etc. are being called.
The registry entry actually exists at the very moment I try any of those
functions but, as they always fail, the installation can not complete and
that registry entry disappears.
What else can I do?
Any help will be appreciated.
Thanks in advance. Tag: List of all installed application? Tag: 121570
SQL 2000 and Windows Mobile
Is it possible to connect directly to a SQL 2000 Standard instance in my
application from Windows Mobile 6?
TIA,
kevin Tag: List of all installed application? Tag: 121564
localization
Hi,
My method for localizing app was to create seperate resource dll's, (dll
containing only resources, like dialog and string resource), then
dynamically load the correct resouce file during execution.
However, in my IDE, I can't even type cyrillic or chinese characters
(characters show up as ?) into the resource editor. Visual Studio doesn't
like unicode resource files either.
Currently, I'm loading my strings from XML file, but this doesn't work well.
For example, on SmartPhone, when you change the regional settings, the
language changes on your device immediately, and all (built-in) apps, and
not only that, even the names of applications (shortcuts) change!
Now, how does this work? I'm guessing the application has multiple string
table resources, each for a different code page, and OS selects the match
one? The resource editor only provides like 4 languages for your resource
files though, english, german, french, local and neutral I think..
Can someone tell me how built-in apps have their shortcut names localized to
whichever language the user selects?
Lisa Tag: List of all installed application? Tag: 121562
Can not get Storage Card Manufacturer ID in wince4.2!
I can get storage card manufacturer id(10digitals) either in
smartphone and ppc using my own tool.But the tool does not work in
wince4.2 ,it appears n/a. what's the problem?Are there some dlls i
need to add into wince4.2? Tag: List of all installed application? Tag: 121555
Can get Storage Card Manufacturer ID in wince4.2
I can get storage card manufacturer id(10digitals) either in
smartphone and ppc using my own tool.But the tool does not work in
wince4.2 ,it appears n/a. what's the problem?Are there some dlls i
need to add into wince4.2? Tag: List of all installed application? Tag: 121553
File transfers between PC <> PocketPC
In an application I work on I will exchange some data files when the
Pocket PC is cradled. I will use RAPI from the desktop to copy files
between PPC and desktop. I know about other ways to exchange data like
using webservices, RDA etc but for this application it will be done by
simple file transfer using RAPI.
What happens is the following:
1) The desktop user start the the transfer process form the desktop
application.
2) PPC application need to export some of the data from the application
to a file. This is done either by the user pushing a transfer option in
the PPC application or a program is started on the PPC by using RAPI.
3) Desktop application copy the exported file from 2) to Dekstop and
process data
4) Desktop application copy files with data to be imported on the PPC
(possibly changed lookup tables)
5) PPC application import the new files into the database.
Step 5 could be done when the PPC application starts but the way this
application will be run it might be that the application is still
running.
If I choose the option to have the user start the transfer process then
it is pretty simple. Just wait for new files to be created then process
them and reload the datasets. However when two processes are running and
especially like this when on two separate computers it do raise some
possible problems. One computer does not know how when a process has
finished or not, but you can of course check for created files or having
the desktop computer to write to registry when process is finished or
something. But still, you need to be prepared for communication failures
etc.
I could probably also use the OpenNetCF filewatcher class to react when
new files to process have arrived on the PPC.
However, it would be best if the entire syncronization process could be
initiated from the desktop application without the user having to do
anything on the PPC. This should not be that hard to do, the desktop
program could launch a separate program on the PPC using RAPI which
exports and imports data. That seems like a clean and user friendly way
to do it.
However there is one problem that remains to be solved. If the PPC
application is still running I need to either close it or to use some
interprocess communication method (openNetCF?) to tell the application
to refresh datasets etc.
Questions:
1) Which method would you choose? Using a seperate program on PPC to
export/improt data or have the user start the transfer process in the
application? Any other betetr mthods to do this?
2) Can you show me some example shwo to use IPC with .NEt compact? Tag: List of all installed application? Tag: 121552
How to scroll a bitmap inside a today screen plugin?
Hello!
I have a problem creating a window with a vertical scroll bar.
Here's what I try to do:
HWND InitializeCustomItem(....
.......
g_hWnd = CreateWindow(appName, appName,
WS_VISIBLE | WS_CHILD | WS_VSCROLL,
CW_USEDEFAULT, CW_USEDEFAULT, 240, 0,
hwndParent, NULL, g_hInst, NULL) ;
SCROLLINFO si;
ZeroMemory(&si, sizeof(si));
si.cbSize = sizeof(si);
si.fMask = SIF_POS | SIF_PAGE | SIF_RANGE |
SIF_DISABLENOSCROLL;
si.nPos = 50;
si.nPage = 100;
si.nMin = 0;
si.nMax = appHeight;
SetScrollInfo(g_hWnd, SB_VERT, &si, TRUE);
. SetWindowLong(g_hWnd, GWL_WNDPROC, (LONG) WndProc);
....
}
LRESULT CALLBACK WndProc (HWND hwnd, UINT uimessage, WPARAM wParam,
LPARAM lParam)
{
.....
I set appHeight to 120 at the beginning.
In response to WM_TODAYCUSTOM_QUERYREFRESHCACHE , I set the ptli->cyp
to appHeight and return true (only once, of course, except for
resizes)
Later I create a bitmap:
case WM_CREATE:
{
if (!done_once) {
hBitmap = Test_NewDIBSection(appWidth, /
*appHeight*/480, (void **)
&bitmapa);
hDC = GetDC(hwnd);
hDCMem = CreateCompatibleDC(hDC);
hOldBitmap = (HBITMAP) SelectObject(hDCMem,
hBitmap);
done_once = true;
}
....
}
which works fine, however this bitmap is limited to the appHeight
size, while
I would very much like to scroll it down to see more. My window's
scroll bar appears, but it doesn't move, as if everything there is to
see is already shown. Also, the main today screen scroll bar appears
if necessary - and it works fine, scrolling my bitmap, but
unfortunately I need the internal scroll bar.
I understand that I can probably do it manually by responding to
WM_VSCROLL messages, but I doubt it would be as effective as a pro-
made scrolling. Does anybody know (probably most do :-( ), how can I
scroll my bitmap? I'm pretty sure that a smooth way to do it exists,
but I am simply missing something and have no idea, what it might be.
Thanks for any help!
gegitor Tag: List of all installed application? Tag: 121547
resolution of different ppcs
Hi NG,
how to get the resolution of my pocketpc with cf 2.0?
My Problem:
i have fixed values for the size of the application.
but now the resolution of my pocketpcs is variant.
how to resize the complete application?
thx for your information.
Beste regards.
Benni Tag: List of all installed application? Tag: 121541
regarding deployment of filter on visual studio 2005
Hi
I want to develop a simple Directshow filter for my Windows Mobile
5.0
PPC device.My development enviorment is Visual Studio 2005 + Windows
Mobile
5.0 SDK for PPC.I create my basefilter. i have already done NO in
project settings and included all the library files as all have
mantioned above.
but still i am getting the following errors:
c:\documents and settings\madhviagarwal\desktop\playback_of_mp4\dll
\filter\filter\dump.h(47) : error C2504: 'CRenderedInputPin' : base
class undefined
.\dump.cpp(139) : error C2440: 'return' : cannot convert from
'CDumpInputPin *' to 'CBasePin *'
Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
.\dump.cpp(242) : error C2614: 'CDumpInputPin' : illegal member
initialization: 'CRenderedInputPin' is not a base or member
.\dump.cpp(268) : error C2653: 'CRenderedInputPin' : is not a class or
namespace name
.\dump.cpp(442) : error C2653: 'CRenderedInputPin' : is not a class or
namespace name
.\dump.cpp(623) : error C2664: 'CPosPassThru::CPosPassThru(const TCHAR
*,LPUNKNOWN,HRESULT *,IPin *)' : cannot convert parameter 4 from
'CDumpInputPin *' to 'IPin *'
Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
Build log was saved at "file://c:\Documents and Settings\madhviagarwal
\Desktop\PlayBack_of_MP4\DLL\filter\filter\Windows Mobile 5.0 Pocket
PC SDK (ARMV4I)\Debug\BuildLog.htm"
filter - 6 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Please tell me how can i resolve this.
Thanks Tag: List of all installed application? Tag: 121536
Microphone sensitivity.
I need to lower the microphone gain.
My audio codec is clipping becouse of incoming PCM samples saturated from
the mic. I don't need AGC becouse it doesn't work well with my app.
I just need to manipulate the mic gain via software.
Is there a way to do it? I'm using waveform audio api ti capture sounds.
Thanks. Tag: List of all installed application? Tag: 121526
Serial Communications: Wire -vs- Air
I've got an application that uses serial communication. I select the COM
port, then start listening to a data loop.
If I use the wireless Bluetooth COM Port, the data I receive is:
0x1c 0x1c 0xfc 0xe0 0x0 (Loop)
If I use the hardwired Serial COM Port, the data I receive is:
0xe 0x24 0xc3 0x29 0x55 (Loop)
Does anyone see a similarity between the two sets of data? My Bluetooth
device appears to be shifting the data, but I don't recognize anything.
We have machines that send this data, and the Serial COM Port data is the
correct data. The Bluetooth data is coming in wrong, but it is consistent
and we receive the same number of bytes.
Is there a more appropriate message board I could address this question? Tag: List of all installed application? Tag: 121524
Serial port buffer check?
Greetings,
I'm porting some PalmOS serial port code to Windows Mobile/PocketPC. Is
there a PocketPC API available that will return the number of bytes of data
sitting in the serial port receive buffer? I'd like to know how many bytes
of data are sitting in the receive buffer before I try to read anything from
the buffer via ReadFile. On the PalmOS this is available via the
SrmReceiveCheck API. Any ideas?
Regards,
--
David Thacker
http://www.SatelliteForms.net
The Premier RAD Tool for PalmOS & PocketPC Tag: List of all installed application? Tag: 121512
How do I delete or garbage collect the unmanaged structure in mana
Hi,
I'm developing the pocket pc application in which i pass the unsafe
structure to c++. i see that if i pass 10 times data strucure it consumes
more memory. i have the structure like
// .NET structure
unsafe public struct Employee
{
public char* FirstName;
public char* LastName;
public char* Address;
}
[DllImport("test.dll")]
private static extern int SetEmployeeData(ref Employee item);
// C++ Structure
struct Employee
{
BSTR FirstName;
BSTR LastName;
BSTR Address;
}
// C++ declaration
public int SetEmpoyeeData(*Employee item)
[
// do some code
}
Can anyone please let me know how to delete or garbage collect this data
structure in managed code like delete function in c++.?
Thanks Tag: List of all installed application? Tag: 121506
Reseting via cab installation
I've seen couple of cabs that after installation default installer
(wceload.exe) requested reset (not from setup.dll).
How to make such cab? I'm creating cab by writing .inf files namualy and
using cabwiz.
-----
Saman Tag: List of all installed application? Tag: 121501
Messaging application refresh
I have an application that runs in the background and can do things like
rename a MAPI folder. If the Messaging application is running when my
changes take place then the change will not be noticed until the application
is closed and then open again. Is there a way for me to tell the Messaging
application to refresh? I am hoping I can send the Messaging app a windows
message telling it to do so.
Thanks, Joe Tag: List of all installed application? Tag: 121499
send email from a PocketPC app in VS2005
I just don't see the namespace 'System.Net'. I cannot believe
Microsoft has removed the ability of sending email from the
CompactFramework in VS 2005.....is this correct? If so, what are the
other alternatives?
I found an article on how to do it but with VS 2003, using
System.Web.Mail.
Please your response on this issue will be very appreciated.
Thanks, Tag: List of all installed application? Tag: 121498
setsockopt with paramter TCP_NODELAY does not work with WM5 device
My program works in such a way that I would benefit from the TCP_NODELAY
option. I read and understand why a developer might not want to
enable/disable this setting.
This code works on Windows but not on CE. On CE, if I set the value to 1
and read it back, then the value is 8. When using a network analyzer, I can
see that this setting has no effect on CE whereas it works perfectly on
Windows.
Any ideas?
int on=944; // any value but 1 or 0
int len = sizeof( on );
getsockopt( Socket, IPPROTO_TCP, TCP_NODELAY, (char *)&on, &len );
// on equals 0
on = 1;
setsockopt( Socket, IPPROTO_TCP, TCP_NODELAY, (char *)&on,
sizeof(on) );
int len = sizeof( on );
getsockopt( Socket, IPPROTO_TCP, TCP_NODELAY, (char *)&on, &len );
// on equals 1 on Windows, but it equals 8 on CE Tag: List of all installed application? Tag: 121497
change SQL Mobile database schema
Hi,
any idea how to change the table schema of SQL Mobile?
cos I am not able to edit the table/column name once I have created.
--
Johnson Tag: List of all installed application? Tag: 121486
Hello
Is there a list in the registry where I can read all installed applications?
And if yes, is there also a possibility to uninstall them?
"James Caan" <james @ caan.be> schrieb im Newsbeitrag
news:OLJUJd6kHHA.4900@TK2MSFTNGP05.phx.gbl...
> Hello
>
> Is there a list in the registry where I can read all installed
> applications?
> And if yes, is there also a possibility to uninstall them?
>
> Thanks
>
> James
>