call C function from a DLL
Hello,
I have a simple C DLL. This DLL have i compiled with VS2005 für Pocket/Arm.
Now i will test some function from a VB sample.
One C function is defined as
BOOL LslOnline(const char *szComm, BYTE a, BYTE b);
On PC VB i have add
Declare function LslOnline(ByVal szComm As String, ByVal a As Byte,
ByVal b As Byte) As Integer
But this does not work for VB / Pocket/Arm.
Why ?
How must i declare this for VB2005 Pocket/Arm ?
Thanks
Jimmy Tag: any good tutorial on editing using a datagrid ? Tag: 127982
GPRS and Ethernet connections
Hi.
We are having a problem with a Symbol MC9094 device. We've got a piece
of software on the device which connects via GPRS to a webservice on
our server for data transfer, which is working fine.
we've also got ethernet cradles for these devices on the network and
want to get the data transfer working through these cradles. the
MC9094 device has iDockit software installed set to Ethernet to
connect to the network, and there's 2 options here - Work or Internet
connection.
The problem we are having is that when the idockit software is set to
work, it's connecting to the network, but not getting external
internet access, so the device cant access our webservice (which is
outside our network).
when idockit is set to Internet, if the PDA has a GPRS connection
idockit wont even connect to the network, so there must be a conflict
(com ports?). our software will drop the GPRS connection when it
senses the network connection and go through the cradle. if the GPRS
connection isnt active when the idockit software tries to connect to
the network it works fine and can access our webservice.
Has anyone had any experience with this iDockit software, and could
help us get this ethernet connection made with internet access while
the GPRS connection is active?
Thanks. Ian. Tag: any good tutorial on editing using a datagrid ? Tag: 127981
Windows Mobile Developer Position
Hi Windows Mobile Developers,
My name is Carl Schumacher & I am working with a major media company
on the bleeding edge looking to fill a position. If you are interested
in this position please forward me an email & we can chat. Pay is
pretty flexible for the right person.
Position: Senior Developer
Location: Los Angeles, CA
Education Requirements:
- Business or technology college degree or higher
Experience requirements:
- Coding and building
o Mobile web sites
o Software solutions for internal billing and revenue allocation
- Solving complex technical issues for management of advertising
- .Net expertise
- Working and managing external, overseas development teams
- Emerging mobile platforms like windows mobile, iPhone and Android
- Fast learner who enjoys investigating and developing to new
technologies and platforms
Role & responsibilities:
- Work with mobile teams to implement software solutions for managing
businesses
- Investigate new emerging technologies and develop applications
- Find, assess and work with overseas development teams
- Project manage external resources and projects
- Interface with
Carl Schumacher
Executive Recruiter
Wireless & Digital Content
Electronic Search, Inc.
5105 Tollview Dr. #245
Rolling Meadows, IL 60008
Fax (847) 506-9999
Cschumacher@electronicsearch.com
http://www.linkedin.com/in/wirelessexecrecruiter
http://www.electronicsearch.com
http://www.wirelesstemps.com Tag: any good tutorial on editing using a datagrid ? Tag: 127979
Finding postion of icons in taskbar
Is there a way to find the positions for the icons in the upper
taskbar? Say I want to find the postion of the volume icon or I want
to find the postion of the left most icon, is there a way if I have a
handle to the taskbar (HHTaskBar)?
Thank you Tag: any good tutorial on editing using a datagrid ? Tag: 127977
Bluetooth communication
Hi everyone,
I'm have two iPac Devices and I'm trying send some bytes from one to
another via Bluetooth communication.
I use the CreateFile command to send the data and the ReadFile command
to read the data.
In booth commands I use the appropriate COM port.
When I try to send the bytes, it appears to work (the return is 1).
When I try to read the bytes, it also appears to work (the return is
1).
But it always gives me the return 1 when I read the bytes, even when
nothing is sent. So I don't know if my process is working. Can anyone
help me?
I use the code below to open the COM port:
HANDLE PortOpen(LPTSTR lptszPortName, DWORD* dwError)
{
DCB PortDCB;
COMMTIMEOUTS CommTimeouts;
HANDLE hPort;
// Open the serial port.
hPort = CreateFile(
lptszPortName, // Pointer to
the name of the port
GENERIC_READ | GENERIC_WRITE, // Access(read-write)
mode
0, // Share mode
NULL, // Pointer to the
security attribute
OPEN_EXISTING, // How to open the
serial port
0, // Port attributes
NULL // Handle to port
with attribute to copy
);
// If it fails to open the port, return FALSE.
if (INVALID_HANDLE_VALUE == hPort)
{
return INVALID_HANDLE_VALUE;
}
return hPort;
}
And the code below is to write data on the open port:
BOOL PortWrite(HANDLE hPort, BYTE* Bytes, DWORD dwBytesToWrite)
{
BYTE* ucptr;
BYTE* cptr;
DWORD dwBytesWritten;
DWORD dwBytesPacket;
DWORD dwBytesRemain;
int nCounter;
BOOL bRet;
bRet = FALSE;
ucptr = Bytes;
cptr = ucptr;
dwBytesRemain = dwBytesToWrite;
do
{
dwBytesPacket = (dwBytesRemain < PACKET_SIZE) ? dwBytesRemain :
PACKET_SIZE;
nCounter = 1;
do
{
bRet = WriteFile(hPort, ucptr, dwBytesPacket, &dwBytesWritten,
0);
nCounter++;
Sleep(300);
}
while ((bRet == FALSE) && (nCounter < 5));
if (bRet == FALSE)
return FALSE;
dwBytesRemain -= dwBytesWritten;
ucptr += dwBytesWritten;
}
while (dwBytesRemain > 0);
return TRUE;
}
The code below I use to read te data:
CString PortRead(HANDLE comPort, DWORD dwBytesToRead)
{
BOOL bResult;
BYTE * totalBytes; //total de bytes
BYTE * readBytes; //bytes parcialmente lidos
DWORD dwBytesRemain; //bytes restantes a serem lidos
DWORD dwBytesRead; //bytes lidos
DWORD dwBytesPacket; //tamanho do pacote
int nCounter;
dwBytesPacket = PACKET_SIZE;
dwBytesRemain = dwBytesToRead;
readBytes = 0;
bResult = ReadFile(comPort, &readBytes, dwBytesToRead, &dwBytesRead,
NULL);
CString s = (LPCTSTR)readBytes;
if (s == "")
return FALSE;
return s;
if (bResult == FALSE)
return FALSE;
}
Thanks,
Arthur Tag: any good tutorial on editing using a datagrid ? Tag: 127976
Connecting wireless to a Zebra Printer
Hello,
I am going to be using a Symbol WT4090 to scan items. I need to
printer a tag from the Zebra ql320 plus. I am trying to do this is
Visual basic 2005. Does anyone know and good site to find out how to
do this. I have looked everywhere i know with no luck. Thank you in
advance for your help. Tag: any good tutorial on editing using a datagrid ? Tag: 127971
How to get incomming call number with TAPI
Is there other alternative to get incomming call number as read registry
changes ? Tag: any good tutorial on editing using a datagrid ? Tag: 127968
Problem with GPS & "sleep"
Hi al,
i am writing a simple app, that sends every 15 minutes a gps position to a server.
I need to save the batteries, so i need to put the Pda in sleep mode and "wakeup" the application every 15 minutes.
I tried the largeintervaltimer, and it seems that the event is fired correclty also in "sleep mode", but unfortunately the GPS is disabled, so i have no way to get the position.
Have you any idea how to do it?
The pda is a HTC cruise (wm6).
I am using netcf3.5.
Thank you,
Marco Tag: any good tutorial on editing using a datagrid ? Tag: 127965
Can't not make call using TAPI on HTC touch
I can use the example Cedealer to make a call on my blueangel (with windows
mobile 6.0), but i can't make a call on the HTC touch. I always get
LINEDISCONNECTMODE_NOANSWER:
lpszDisconnected = TEXT("Disconnected: No Answer");
What is the probem ?
thanks in advance ! Tag: any good tutorial on editing using a datagrid ? Tag: 127964
How to get rid of popup warning for new EXE?
Hi All
I am developing on an HC700 Motorola HHT. The OS has been upgraded from
PC2003 to WM5. And I am using C# with CF2.
Every time the debugger starts up the EXE on the device a warning pops up
asking am I sure I want to do this. This seems to happen for all ne
assemblies as well and any applications that are shelled from with in my
application that I have added to the device.
In short any new application that is run on the device for the first time
gets this popup.
How can I stop this? At least for development.
Thanks.
ink Tag: any good tutorial on editing using a datagrid ? Tag: 127962
Email alternative to Outlook session
When raising a fault in my program the Pda sends off an email with the
details. The process uses an Outlook Session and Outlook is configured on
setup. There lies the problem as some users are reconfiguring Outlook when
they shouldn't. Is there a way to fire off an email setting the server
address and details at runtime reading the information from a database. That
way we can change the information at a later date if necessary and if the
user changes the Outlook settings our email still gets sent successfully. Tag: any good tutorial on editing using a datagrid ? Tag: 127960
PPC02 Compatibility
I got a used Pocket PC 2002 celfon (Siemens SX56 / HTC Wallaby).
What are the issues in predicting if a DOS or Windows app will also
work on this machine? I'm hoping for PDF reader, emacs, matlab, old
DOS 3.0 apps, OpenOffice, PortableApps.
- = -
Vasos Panagiotopoulos, Columbia'81+, Reagan, Mozart, Pindus, BioStrategist
http://ourworld.compuserve.com/homepages/vjp2/vasos.htm
---{Nothing herein constitutes advice. Everything fully disclaimed.}---
[Homeland Security means private firearms not lazy obstructive guards]
[Urb sprawl confounds terror] [Remorse begets zeal] [Windows is for Bimbos] Tag: any good tutorial on editing using a datagrid ? Tag: 127958
how to measurewaveIn staggering
Hello,
I am developing a HAM radio digital modes chat-like software, which
uses sound input and output as a modem.
The application is for free at http://pocketdigi.sourceforge.net
Some of the digital signal processing methods are quite CPU intensive.
User may select mode, for which the CPU power is not sufficient. In
worst case the waveIn messages are processed first, there will be no
idle times so WM_PAINT will never be sent and the application will
respond to user interaction extremely slowly if at all. I would like
to detect this case and offer the user to switch to a less CPU
intensive mode.
My application is pure Win32 written in C. My first attempt was to
detect cases when the main message loop does not idle for a long time.
This seems to work quite well, but fails when I open a message box.
System function DialogBox creates its own message loop and my
detection of Idle state does not work anymore. I believe writing a
custom replacement of DialogBox will work, but I am a bit worried that
some dialog functions like common accelerators will not work. I expect
troubles with Smartphones. On Desktop there are message hooks, but on
Windows CE they are not officially supported.
The other idea was to measure time the messages (mainly the waveIn
messages) spend in application message queue. MSG structure contains
time member. The idea was to compare MSG.time with GetTickCount().
This solution has the same problem. DialogBox creates its own message
loop, over I have no control. After the messages are dispatched,
MSG.time is no more available at window functions.
The other idea is to use GetIdleTime(). Unfortunatelly this function
is not officially supported by Windows CE. I know the function is
there in coredll.dll, but I do not want to risk that my application
will not work on some devices.
Thanks in forward for any hint.
Vojtech Tag: any good tutorial on editing using a datagrid ? Tag: 127957
Enable Word Completion
I have a text box on a PocketPC (not a Smartphone) that I want to show
word completion for. The issue is that I want to use the SIP word
completion without having to use the SIP (the devices I am coding for
have keys for entering text already).
I cannot seem to find a way to access the word completion without
having the SIP visible.
Is there any way to programaticly get at the word completion or is it
just too internal to the SIP?
Note that this would be very easy on a Smartphone. But the features
that do this are not there for the Pocket PC :( Tag: any good tutorial on editing using a datagrid ? Tag: 127955
Reload NLS
Hi,
I replaced the default wince.nls file with another one.
How can I force that file to be used instead of the one loaded from rom
before FileSystem is active?
There's a tool reloadnls.exe on the net that does this, but I need to know
how it is done..
Any clues?
Lisa. Tag: any good tutorial on editing using a datagrid ? Tag: 127953
Knowing when an ActiveSync Synchronization is completed
Hi !
I need to launch ActiveSync synchronization from a desktop application
(PC) and to do something when this syncing finished.
I tried using "wcesmgr.exe \syncnow" which works fine but I am not
able to get the end of the sync process.
How could I acomplish that ?
Thanks in advance for your help !
Guim Tag: any good tutorial on editing using a datagrid ? Tag: 127951
Beginner VC++/Win Mobile problem
Hello!
I am trying to open C++ samples shiped with SDK Mobile and I can't!!
The error sounds like this (I am translating from spanish!!)
"The project is made of configurations that needs support for plattforms
that are not installed in this computer. Can't load the project"
I don't have any problem with the samples of Win Mobile made with C#.
Only with those made with C++.
¿WHY? Tag: any good tutorial on editing using a datagrid ? Tag: 127950
How do I determine the working set of a CE application?
Hello,
Does anyone here know what APIs I can call (or any code I can write) to
determine the working set of a CE application?
My ultimate goal is to determine the amount of free VM space I have between
the address of the lowest loaded DLL, and the high watermark of VM memory use
from the application (all the ram & vm space used by the EXE, Heap, and all
thread stacks).
So far I have determined that even if our process is supposed to have its
own "32M" of virtual address space this is not the case -- several XIP DLLs
are stepping into our process space because there's more than 32M's worth of
XIP DLLs on the CE device. So, the lowest DLL is actually around the 17-18M
mark.
I know the EXE starts at 0x10000 (the 1st 64k block) but I can't measure how
high things go. The only metric I have right now is by using toolhelp.dll to
walk the heaps and determine the highest memory block -- but I still don't
know how much space threads are using for stack, or where the stack blocks
are located.
Any help would be appreciated. Tag: any good tutorial on editing using a datagrid ? Tag: 127948
setup dll problem
Hi,
Is it possible for a setup dll to depend on another dll that is
dynamically linked to it ? My setup dll doesn't load and the cab
installation fails. I have packed all the dll with it, but the installation
still fails. I am accessing some C++ utility classes in the setup dll
routines.
Thanks for your suggestions Tag: any good tutorial on editing using a datagrid ? Tag: 127943
Dev Tools for Visual Studio 2002
Hi,
I'd like to create an application for my Pocket PC.
Unfortunately I've got an old Version of Visual Studio (2002, version
7.0.9466), and I can't find any project type for windows mobile.
Which made me think it would be easier for me to develop using EVB.
But the version of my Windows Mobile is 4.20.0 (build 14053), and if I've
well understood (and from what I've tested) it isn't fully compatible with
EVB (EVB won't connect to my ppc, the emulator won't work properly, etc.).
Is there a legal way for me to update visual studio (without buying
anything) so that It'll work with my PPC?
Maybe a free framework Update will be enough? (I've already installed all
Framework Updates from Windows Update but Visual Studio still shows
'Microsoft .Net Framework 1.0 Version 1.0.3705' when I click on 'About
Microsoft Development Environment'.
Thanks for your help!
Jérémie Tag: any good tutorial on editing using a datagrid ? Tag: 127942
Migrating from Evb to VS2008
Hello everyone,
I have to migrate application on a PDA from eVb to VS2008 someone knows if
there are
tools that allow me at least not having to redraw any form?
Thanks in advance
Paolo Tag: any good tutorial on editing using a datagrid ? Tag: 127940
Sync Device Time with Server
How would I set the System Time on a PPC device to match that time running on
our Server?
I can query the Server to get the time, but how do I set this on the device?
Using: Visual Basic 2005 Professional Tag: any good tutorial on editing using a datagrid ? Tag: 127936
How to read data from EXCEL file
Hello everyone!
Is there a way to read data from EXCEL file from my application for win
mobile?
Thanks! Tag: any good tutorial on editing using a datagrid ? Tag: 127932
Q:How to modify localized phone number description?
Hello~
In U.S., I want to use regional setting to U.K.
And I found below phone number desciption on using.
(1)5161112222 --> U.S. phone number.
In U.S. setting,
(1)516-111-2222
In U.K. setting,
(1)5161112222
How can I use to (1)516-111-2222 with U.K. setting in Newyork.? Tag: any good tutorial on editing using a datagrid ? Tag: 127928
rearrange SIP list
I got 5 SIP list.
DioPen
Keyboard
Touch12
Transcriber
XtKeypad
Can I rearrange it to below?
XtKeypad
Touch12
DioPen
Keyboard
Transcriber
Is it enumerated only alpabetically? Tag: any good tutorial on editing using a datagrid ? Tag: 127927
OutOfMemoryException
This is a long shot, but i was wondering if there was anything that i could
do to avoid an OutofMemory Exception.
I have written a program that runs on a pda which reads in a csv file and
stores it into a datatable object (which can be searched through). At the
moment i can only read in a file with 8000 lines. I'd like to increase this
to 20,000 but can't as i get the OutOfMemoryException...
--
WD Tag: any good tutorial on editing using a datagrid ? Tag: 127926
Debugging WiFi device with AS4.5
The problem I am facing is about debugging User side application on a
WiFi enabled pocketPC device.
I am using VS 2005, ActiveSync 4.5 and device is loaded with WM 6.0
(CE OS 5.2.1620)
The device is connected the PC via USB cable
The symptom is that having a debug session On makes Application very
very slow. 3-10x slower than when the same binary is run on the same
device without debug. I strongly suspect it is because debug session
tries to use WiFi connection that the device has.
Earlier with AS4.0 & WM5. There was no official way to have USB and
WiFi on at the same time. Therefore people would kill WZC on device
and then they could have debug session together with WiFi and it
worked perfectly.
My question is what can I do to force debug session to stick with USB
as it used to be with earlier MS software? Tag: any good tutorial on editing using a datagrid ? Tag: 127920
Embedded scripting language for Windows Mobile application
Hello.
I'm developing an application for Windows Mobile 5 devices, using .NET
compact framework. I need to have some automation for some tasks in
the application, and the perfect solution for this is an embedded
script language. On the desktop I could choose various languages (VSA,
python, lua...), but on the mobile device I don't know where to begin.
Any recommendations, thoughts, ideas?
Thanks. Tag: any good tutorial on editing using a datagrid ? Tag: 127913
WinCE and transparent irregular shaped forms
Is it possible to create transparent win form with irregular shapes in
Windows CE 5.0 (under Visual Studio 2005?). If yes, how to do that?
I am trying to override OnPaint method but it does not work at all. Tag: any good tutorial on editing using a datagrid ? Tag: 127912
IE script error when creating MFC Smart Device app in
I tried via making new entry in registry,but still could not get through the problem.same script error is still coming.Can some body help me out? Tag: any good tutorial on editing using a datagrid ? Tag: 127910
winCE 5.0 show notification
I am developing an win CE app. There is a backgroung thread that is
synchonizing my app with a desktop comp every i.e 60 secs. I would like to
show any notification to the user when data has been synchronized. Do you
have any idea how to do that? I have tried to show a form (but the form is
frozen, why?).
Any help will be appreciated! Tag: any good tutorial on editing using a datagrid ? Tag: 127909
Usage of SHCMBM_SETSUBMENU
Hi all,
I'm trying tp dynamically change my menubar on the fly in my
application.
I found the message SHCMBM_SETSUBMENU in MSDN document.
But I'm not sure how to use this API, everything I've tried just
doesn't work.
And I can't find any example about this API in Internet.
Is here anybody have experience of thes API, and can tell me the right
usage of this API?
I'm working on a Windows Mobile 6 Smartphone.
Thanks!
- William Tag: any good tutorial on editing using a datagrid ? Tag: 127908
from Embedded Visual Basic to .net 2005
Is it possible/easy/quick to move a source code written in Embedded
Visual Basic 3.0 to Studio .net 2005?
I use buttons, listboxes, combos, grids, labels (standard
components...) and a winsocket
Is there any wizard, automatic procedure, something?
will the code immediately (quickly) work again or will I need to cry
for hours to have my code working again?
(emb vis bas semed to be good -easy and free-, but it is buggy...), so
I am thinking to migrate
thank you Tag: any good tutorial on editing using a datagrid ? Tag: 127906
embedded visual tools does not fire events anymore
I have developed an application using embedded visual basic 3.
it works prefectly
... then I exchange some data from a server using a winsocket...
When the communication ends (8K of data data exchanged), the
application becomes weird... after a while, when I click on a command
nothing happens...nor listbox, grid... no one *_click event works.
The app stop to respond. I have to reset the palm.
I use a different form to exchange data, and after the data exchange
the "hourglass mousepointer" remain always visible (rotating)
there are no loops... so the program cannot be in a loop.
any suggestion?
thanks Tag: any good tutorial on editing using a datagrid ? Tag: 127905
Create with VS2005 a console output
Hello,
i have create a small sample with VS2005 C++ for Windows Pocket Emulator.
int main there is a printf and a Message.
The message box is shown, but the printf text not. Why ?
What must i do, to create a console window under Windows Pocket.
Thanks for help
Jimmy Tag: any good tutorial on editing using a datagrid ? Tag: 127901
Auto Update Apps created w/ VS2005
Our first mobile app is in use widespread on both pocketpc2003 and windows
mobile5.0. Now when a change is made I must track down all of the devices and
re-deploy to each one. I would like to find a solution to auto-updating these
apps. I know that others may have done so and I still consider myself a
newbie to the VB.NET....so I am asking for some assistance in pointing me to
the direction I need.
--
Message posted via http://www.pocketpcjunkies.com Tag: any good tutorial on editing using a datagrid ? Tag: 127899
Problem with Virtual COM for Bluetooth
Hi,
I have develop my own server & client over bluetooth using normal
virtual com port for windows mobile 6.0 device .There is a
server already running one the device and client on other device,
Now,i need to transfer data from client to server.
step at server end as follow:
1: Register Device with
PORTEMUPortParams pp;
pp.channel = RFCOMM_CHANNEL_MULTIPLE;
pp.flocal = TRUE;
pp.uiportflags = 0;
2: after that,Open port using CreateFile.
3. used DeviceIoControl with IOCTL_BLUETOOTH_GET_RFCOMM_CHANNEL.
4.after that register service on server with particular GUID.
5.ConfigurePort with value
BaudRate=CBR_9600,
ByteSize = 8,,
fParity = true ,
Parity = , EVENPARITY ;
StopBits = ONESTOPBIT;
6.SetCommunicationTimeouts with value
ReadIntervalTimeout = MAXWORD,
ReadTotalTimeoutMultiplier =0,
ReadTotalTimeoutConstant=0,
WriteTotalTimeoutMultiplier=10,
WriteTotalTimeoutConstant =1000;
7:at create one thread for reading data..
ReadFile(hDevOpen,szBuffer, 999, &dwBytesRead, NULL);
Step at Client is follow:
1: Register Device with
PORTEMUPortParams pp;
pp.channel = 0;
pp.flocal = FALSE;
pp.device = btaddr;;
pp.uuidService = GUID;
pp.uiportflags = 0;
2: after that,Open port using CreateFile.
3. used DeviceIoControl with IOCTL_BLUETOOTH_GET_PEER_DEVICE.
4.ConfigurePort with value
BaudRate=CBR_9600,
ByteSize = 8,,
fParity = true ,
Parity = , EVENPARITY ;
StopBits = ONESTOPBIT;
5.SetCommunicationTimeouts with value
ReadIntervalTimeout = MAXWORD,
ReadTotalTimeoutMultiplier =0,
ReadTotalTimeoutConstant=0,
WriteTotalTimeoutMultiplier=10,
WriteTotalTimeoutConstant =1000;
7:at create one thread for writing data..
WriteFile(hDevOpen, &cBuffer, dwSize, &dwWritten, NULL);
Now the problem is that, i got succes for WriteFile at client with
dwSize & dwWritten is same.
But at Server end i got succes for ReadFile with any value means
dwBytesRead is equal to zero and no data in szBuffer.
What am i doing wrong?
Any help would be greatly appreciated..
Waiting for your replies..please help. Tag: any good tutorial on editing using a datagrid ? Tag: 127898
MobileDataforce Pointsync mobility Platform
Hi.
Does anyone have any experience using the MobileDataforce's
(http://www.mobiledataforce.com/) RAD platform Pointsync? Tag: any good tutorial on editing using a datagrid ? Tag: 127897
GetOpenFileName bug on WM 6.1 Standard (Smartphone)
it's a good thing that now GetOpenFileName works on Smartphones (it was
completely broken on Smartphone until WM 6.1).
however there is an ennoying bug: when lpstrInitialDir is specified in the
OPENFILENAME structure, GetOpenFileName should open the specified folder.
on WM 6.1 Smartphones, it seems to open always the "\My Documents" folder,
even when lpstrInitialDir is set to "\Storage Card", for example.
this is particularly ennoying when the files to open are located on a
Storage Card. it requires navication by the user, i.e. Menu, select
"Storage Card"...
Microsoft people (or MVP), please log a bug report on this. we hope this one
will be fixed so that the Smartphone version works as well as the Pocket PC
(WM Professional) version.
thanks! Tag: any good tutorial on editing using a datagrid ? Tag: 127894
Dynamically change MenuBar Softkey to button or menu
Hi all,
I use the SHCreateMenubar to create a menubar on Smartphone.
The first softkey is defined to a button(TBSTYLE_BUTTON), and the
second is defined to a drop-down menu(TBSTYLE_DROPDOWN).
Now I want to change softkey2 to a button in my program,
I can use DestroyMenu to destroy the drop-down menu, but i still can't
receive the command when user press the softkey2.
so, how can I dynamically change the drop-down menu to a button?
Thanks! Tag: any good tutorial on editing using a datagrid ? Tag: 127892
Deflect Focus?
I don't want my application's main window to ever have the focus until it
determines that it needs it. The effect I'm after is kind of like a splash
screen that appears but doesn't take the focus away from the current
application and does not receive the focus if that application is closed.
What's the proper way to deflect the focus that comes to it automatically so
that the next available application gets the focus?
Thanks! Tag: any good tutorial on editing using a datagrid ? Tag: 127891
memory leak in inbox or SDK sample?
Hi,
i was examining the TV_Inbox sample and i find out that in some
circumstances the IMailRuleClient or CRuleClient doesnt get freed.
I was wondering if this is by desing,this is bug in inbox,in
sample,and how to avoid it,as for me it is important to get this
interface released!
the case is if just IMailRuleClient is initialized and called(ie you
get a message),everything is then normal,ie it gets released when for
example you kill mail box by end tasking it.
But if a custom form is being displayed(clicking on new message to
display it),then just CFormProvider gets released and the ruleclient
doesnt,and dll unloads.
I was thinking maybe it is related to "Free" threading model of this
com?and if because it implements two different classes and objects,it
is caused by that?
i am no expert in com,
so?
thanks Tag: any good tutorial on editing using a datagrid ? Tag: 127890
problem when registering a directshow filter with regsvrce in windows 6
Hi all,
I'm a newcomer in Windows Mobile developement. I try to create and register
a DirectShow filter for Windows mobile 5 or 6.
1. I create a new SmartDevice Win32 DLL project with ATL option checked in
Visual studio 2008.
2. I write the .h, .def and .cpp following MSDN documentation :
http://msdn2.microsoft.com/en-us/library/aa451266.aspx (see the code further
down).
3. I copy the tool 'regsvrCE' onto the emulator file system, along with the
generated SampleGrabber.dll.
4. When I try to register 'SampleGrabber.dll' with regsvrce.exe, the
emulator crashes, and the error I get is:
--------------------------------------------------------------------------------------------------------------------------------------
A problem has occured with regsvr_arm.exe
Please tell Microsoft about this problem, at no cost to you. The data is
used exclusively to improve products.
Report Details :
----------------
This error report includes information regarding the condition of
regsvr_arm.exe when problem occured.
TO view our data collection policy on the web, select here
To view technical information contained in this error report, select here
The report also includes information about the operating system version and
device hardware you use and the internet Protocol (IP) adress of your
device.
We do not intentionally collect your files, name, address, email address or
any other form of personally identifiable information. However, this error
report could contain customer-specific information such as data from open
files. While this information could potentially be used to determine your
identity, if present, it will not be used.
The data that collect will only be used to fix the problem. If more
information is available, we will tell you when your report the problem.
This error report will be sent using a secure connection to a database with
limited access and will not be used for marketing purposes.
Error Reporting :
-----------------
Bucket Parameters
-----------------
EvntType : WinCE50lbException
AppName : regsvr_arm.exe
AppVer : 1.0.0.1
AppStamp : 40c4830c
ModName : samplegrabber.dll
ModVer : 5.2.0.0
ModStamp : 480718e5
Offset : 00001388
OwnName : regsvr_arm.exe
OwnVer : 1.0.0.1
OwnStamp : 40c4830c
Exception Information
---------------------
API Cur Process : 0x00000000
API cur Thread : 0x00000000
API Own Process : 0x00000000
Info Flags : 0x00000000
Current Process : 0x16C2C68A
Faulting Thread : 0x16CBAAD6
Owner Process : 0x16C2C68A
Code : 0x00000005
Flags : 0x00000000
Record : 0x00000000
Address : 0x019C1388
Parameters : 2
Param[0] : 0x00000000
Param[1] : 0x24000001
System Information
------------------
OS Version : 5.2.1235.3
LCID : 1033
CPU Architec : 5
CPU Type : 2577
CPU Level : 4
CPU Revision : 1
Machine : 0x01C2
OEM String : Microsoft dev
Platform : PocketPC
Platform Ver : 4.0
Process List
------------
Name, hProcess
NK.EXE, 0x17FFF002
gwes.exe, 0x7791D296
regsvr_arm.exe, 0x16C2C68A
Thread List
-----------
hThread
0xD6815146
0x7695CB56
0x16CBAAD6
Thread Context List
-------------------
ThreadID, Pc
0x16CBAAD6, 0x019C1388
Thread Call Stack List
----------------------
PID = 16C2C68A, TID = 16CBAAD6
--------------------------------------------------------------------------------------------------------------------------------
Can you tell me what I did wrong in my code?
Did I miss an option in Visual Studio at compiling or linking?
Am I starting from the right Visual Studio project type??
Your help is greatly appreciated.
Code :
--------------------------------------------------------------------------------------------------------------------------------------
---------------------
SampleGrabber.def
---------------------
LIBRARY "SampleGrabber.dll"
EXPORTS
DllCanUnloadNow PRIVATE
DllGetClassObject PRIVATE
DllRegisterServer PRIVATE
DllUnregisterServer PRIVATE
------------------
SampleGrabber.h
------------------
#include <windows.h>
#include <streams.h>
#include <initguid.h>
// {75C097E9-6655-45e1-B81D-5A5D2379FFD1}
DEFINE_GUID(CLSID_CSampleGrabber, 0x75c097e9, 0x6655, 0x45e1, 0xb8, 0x1d,
0x5a, 0x5d, 0x23, 0x79, 0xff, 0xd1);
class CSampleGrabber : public CBaseRenderer
{
public:
DECLARE_IUNKNOWN
CSampleGrabber(LPUNKNOWN pUnk, HRESULT *phr);
static CUnknown* WINAPI CreateInstance(LPUNKNOWN punk, HRESULT *phr);
HRESULT CheckMediaType( const CMediaType *pMT);
// This is called for each media sample received.
HRESULT DoRenderSample(IMediaSample *pMediaSample) ;
ULONG NonDelegatingRelease();
// this is necessary for automatic registration of the filter when doing
// a regsvr32.
AMOVIESETUP_FILTER *GetSetupData();
private:
};
---------------------
SampleGrabber.cpp
---------------------
#include "stdafx.h"
#include "SampleG.h"
// Fill in media type information below, this information is used when
registering the filter with dshow
const AMOVIESETUP_MEDIATYPE sudPinTypes = {&MEDIATYPE_NULL,
&MEDIASUBTYPE_NULL };
const AMOVIESETUP_PIN sudPins = {
L"SampleGrabber", // Pin string name.
FALSE, // Is this pin rendered?
FALSE, // Is it an output pin?
FALSE, // Can the filter create zero instances?
FALSE, // Does the filter create multiple instances?
&CLSID_NULL, // Connects to filter.
NULL, // Connects to pin.
1, // Number of media types.
&sudPinTypes // Pointer to media types.
};
const AMOVIESETUP_FILTER sudNULL = {
&CLSID_CSampleGrabber, // Filter CLSID.
L"SampleGrabber", // Filter name.
MERIT_DO_NOT_USE, // Merit.
1, // Number of pin types.
&sudPins // Pointer to pin information.
};
// this is necessary for automatic registration of the filter when doing a
regsvr.
AMOVIESETUP_FILTER* CSampleGrabber::GetSetupData()
{return((AMOVIESETUP_FILTER*)&sudNULL);}
// this is needed for COM to register the component with RegSvr
extern "C" BOOL WINAPI DllEntryPoint(HINSTANCE, ULONG, LPVOID);
CFactoryTemplate g_Templates[1] = {
L"SampleGrabber", // Name
&CLSID_CSampleGrabber, // CLSID
CSampleGrabber::CreateInstance, // Method to create an instance of
MyComponent
NULL, // Initialization function
&sudNULL // Set-up information (for filters)
};
int g_cTemplates = sizeof(g_Templates) / sizeof(g_Templates[0]);
BOOL APIENTRY DllMain(HANDLE hModule, DWORD dwReason, LPVOID lpReserved)
{
g_hInst = (HINSTANCE) hModule;
return DllEntryPoint((HINSTANCE)(hModule), dwReason, lpReserved);
}
STDAPI DllRegisterServer()
{
return AMovieDllRegisterServer2( TRUE );
}
STDAPI DllUnregisterServer()
{
return AMovieDllRegisterServer2( FALSE );
}
CSampleGrabber::CSampleGrabber(LPUNKNOWN pUnk, HRESULT *phr) :
CBaseRenderer(CLSID_CSampleGrabber, NAME("CSampleGrabber"), pUnk, phr)
{ }
CUnknown* WINAPI CSampleGrabber::CreateInstance(LPUNKNOWN punk, HRESULT
*phr)
{
return new CSampleGrabber(punk, phr);
}
HRESULT CSampleGrabber::CheckMediaType( const CMediaType *pMT)
{
return S_OK;
}
// This is called for each media sample received.
HRESULT CSampleGrabber::DoRenderSample(IMediaSample *pMediaSample)
{
return S_OK;
}
ULONG CSampleGrabber::NonDelegatingRelease()
{
return 0;
}
------------------------
SampleGrabber.vcprog
------------------------
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioUserFile
ProjectType="Visual C++"
Version="9,00"
ShowAllFiles="false"
>
<Configurations>
<Configuration
Name="Debug|Windows Mobile 6 Professional SDK (ARMV4I)"
>
<DebugSettings
Command=""
WorkingDirectory=""
CommandArguments=""
Attach="false"
DebuggerType="3"
Remote="1"
RemoteMachine="ALEXANDRE-PC"
RemoteCommand=""
HttpUrl=""
PDBPath=""
SQLDebugging=""
Environment=""
EnvironmentMerge="true"
DebuggerFlavor="5"
MPIRunCommand=""
MPIRunArguments=""
MPIRunWorkingDirectory=""
ApplicationCommand=""
ApplicationArguments=""
ShimCommand=""
MPIAcceptMode=""
MPIAcceptFilter=""
/>
<DeploymentTool
DeploymentDevice="d1a7b239-28d5-4485-9b8c-5764e3dc79b6"
/>
<DebuggerTool
RemoteExecutable=""
Arguments=""
/>
</Configuration>
<Configuration
Name="Release|Windows Mobile 6 Professional SDK (ARMV4I)"
>
<DebugSettings
Command=""
WorkingDirectory=""
CommandArguments=""
Attach="false"
DebuggerType="3"
Remote="1"
RemoteMachine="ALEXANDRE-PC"
RemoteCommand=""
HttpUrl=""
PDBPath=""
SQLDebugging=""
Environment=""
EnvironmentMerge="true"
DebuggerFlavor="5"
MPIRunCommand=""
MPIRunArguments=""
MPIRunWorkingDirectory=""
ApplicationCommand=""
ApplicationArguments=""
ShimCommand=""
MPIAcceptMode=""
MPIAcceptFilter=""
/>
<DeploymentTool
DeploymentDevice="d1a7b239-28d5-4485-9b8c-5764e3dc79b6"
/>
<DebuggerTool
RemoteExecutable=""
Arguments=""
/>
</Configuration>
</Configurations>
</VisualStudioUserFile> Tag: any good tutorial on editing using a datagrid ? Tag: 127889
activesync/airsync
Hi. Has anyone developed anything to simulate the dialog which takes
place between exchange and airsync to help debug issues. I cannot get
it to work and yet the interfaces OMA and OWA work fine from the
pocketpc browser.
Thanks Ian Tag: any good tutorial on editing using a datagrid ? Tag: 127886
Disable Event Sound For Splash Screen
Hello,
When I change the registry keys at [HKLM\Software\Microsoft\Splash
Screen\MSTimeout]( & CarrierTimeout) to values that will allow multiple
splash screens to display
ie.
MSTimeout = 750
CarrierTimeout = 10000
I get the expected result
ie.
MSBitmap Displayed - Carrier Bitmap Displayed - MSBitmap Overlayed
however.. when my phone(or the emulator) boots a System Event
Sound(Alarm2.wav I believe) is played whenever Carrier Bitmap is first
displayed. I can stop the sound behavior by unchecking "Events (warnings,
system events)" in "Sounds & Notifications" in the control panel but this is
not the desired solution.
I would like to be able to disable the sound for that specific event, but if
need be i would settle for being able to uncheck the Events box
programatically through a registry setting or some other means. Are either
of these options available? Ive been digging through the registry like crazy
but I can't seem to find specific
Thanks in advance
DrewG Tag: any good tutorial on editing using a datagrid ? Tag: 127885
WVC1 in Windows Media Player Mobile 10.3
I am trying to stream a feed that has both an audio and video stream.
The audio is encoded in windows media 9.1 and the video is encoded in
the microsoft advanced format vc-1 (WVC1). Windows media player
mobile 10.3 plays the audio fine but it never shows the video. When
viewing the properties of the stream it is able to decifer exactly the
codecs of each stream. Is VC-1 not supported in 10.3 or is there a
way to add support in windows mobile 6. Or is there a more updated
windows media player mobile that i do not have.
Thx
Michael Tag: any good tutorial on editing using a datagrid ? Tag: 127882
Customize folder Icon.
Hi all,
I've developed a smartphone application and built the CAB file also. for
customizing the icon I have created a icon resource .dll and a .lnk file.
The problem is am not able to add this "icon.lnk" file directly in my CAB.
Getting error message like "Cannot resolve this link. This file may not be
shortcut".
Copying the "icon.lnk" file manually in the programs folder works fine. but
if i start to add the same in CAB giving me trouble.
Any suggestion?
--
Thanks and Regards,
Shankar B. Tag: any good tutorial on editing using a datagrid ? Tag: 127874
SIP - Soft Input Panel - figure keyboard with 10keys
Hi NG,
I am searching for a SIP - Soft Input Panel - which has only the
figures 1 to 10 on it, and the point + enter,
Does anyone know where i can get such a SIP, or even how to develop
one on my own?
I want the user to write down a list of figures very fast - and even
directly with his fingers.
Thanks a lot.
Benjamin Tag: any good tutorial on editing using a datagrid ? Tag: 127872
Re: HTC Touch (P3450) adjust backlight intensity/brightness
I am not able to adjust the backlight for my P3450 running WM6. I'm adjusting
"BrightNess" and "ACBrightNess" in the registry "HKCU\ControlPanel\BackLight"
successfully. I then try to update the display using the
"BackLightChangedEvent" but nothing is happening.
The event seems to be fired up because "int test =
SetEvent(hBackLightEvent);" returns 1, but still the display is not changing.
This approach apparently works for some devices (as i gathered from a quick
google) but does not seem to work for my HTC Touch.
I would like to be able to change the display brightness depending on
ambient light. Thanks in advance for any help. Tag: any good tutorial on editing using a datagrid ? Tag: 127871
Export Word Using ASP.net 2.0 : Office 2007 doesn't support UTF-7
Hi,
I am creating word document using UTF-7 in ASP.Net 2.0. so till the date,
word document is opening perfactly in Word 2000 and word 2003. but in Word
2007, It show encoded text also like "+ADw-html" instead of "<html". please
give me
alternative solution so document can open in word 2000-03-07 version. [ Note
My Document contain some Japanies and Chiense chracters also]. Tag: any good tutorial on editing using a datagrid ? Tag: 127869
Hi,
are there any good tuotrials using the datagrid control to edit/view?