Copy files with SHFileOperation on WM5, WM6 (PocketPC)
Can't copy all files (or by wildcard) from one dir into another with the
native C++ code:
-------
SHFILEOPSTRUCT shf = {0};
shf.hwnd = NULL;
shf.wFunc = FO_COPY;
shf.pFrom = _T("\\SourceDir\\*\0");
shf.pTo = _T("\\DestDir\0");
shf.fFlags = FOF_NOCONFIRMMKDIR|FOF_NOCONFIRMATION|FOF_SILENT;
res = ::SHFileOperation(&shf); // !!! res = 1
-------
All dirs exist and SourceDir is not empty.
What is wrong with the code?
PS
The same code works fine on win32 desktop:
--------
shf.pFrom = _T("C:\\SourceDir\\*\0");
shf.pTo = _T("C:\\DestDir\0");
------- Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128608
VB .NET CF passing an object
I'm slowly teaching myself VB .NET. After getting a simple calculator
program written and working on my PC, I decided it might be fun to try the
same program, targetted for a WM device. The following bit of code:
Private Sub numberClick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btn0.Click
lblDisplay.Text = lblDisplay.Text + sender.Text
End Sub
Results in this error: "The targeted version of the .NET Compact Framework
does not support latebinding"
My Google searches on the error can basically be summarized as: Don't use
objects as variables.
So... How would I get around the problem?
My target device is running WM 6.1, with the .NET CF 3.5.
My PC is running Windows Vista, Visual Studio .NET 2005 and various .NET
versions.
** Posted from http://www.teranews.com ** Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128603
MoveFileEx equivalent
I need to be able to delete some files I've installed on a mobile 6.0 device.
These files will likely be in use. On the desktop side I'd just use
MoveFileEx with a MOVEFILE_DELAY_UNTIL_REBOOT flag and be done with it. But
kernel32.dll doesn't exist on the device so I can't just use that API.
After several net searches I was wondering if there was an equivalent API on
the mobile OS that will allow me to do the same thing.
Can anyone point me in the right direction? Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128601
How to view HTML page in Pocket PC emulator
Hi ,
I have created few HTML pages with some javascript for Pocket PC -
this is my first attempt. How does one view them in the emulator. I
have absolutely no idea. If anyone could please tell me or point me a
beginners tutorial that explains how to view HTML pages in emulator. I
would really appreciate their help.
My page is actually a form that takes user input. I need to save
these inputs in a XML file on the device. How do I go about doing
that.
Thanks in advance.
Shy Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128595
using dot net to call stream interface driver
Hi,
I just shifted from eMVCC to Visual studio dot net to develop application for
window mobile device. In eMVcc, if i want to cao=ll the stream interface
driver, i will use CreateFile and DeviceIOControl.
How about in dot net?
Best regards,
J
--
Message posted via http://www.pocketpcjunkies.com Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128591
Can't reinstall .net
I had hit the wrong reset button a while back and it came back minus
all my proggies. When I tried to reinstall .net it installed fine on
the PC but not on the PPC. It just said "failed to install".
I even tried uninstalling first. But it had worked the first time.
I have PPC 2002.
- = -
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: How to play sound ( e.g. wav) during phone conservation ? Tag: 128590
VB.NET and NGEN for CF?
Will NGEN.exe convert my VB.NET application to native code for mobile
devices? Assuming that it would work, would that mean that I would not
have to distribute the compact framework with my application? Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128587
How can I develop a program to press keypad automatically
I have been trying to create my own auto pressing keypad program, by
using C#. I searched through google and found you blog which is very
useful for me. However, I have such a problem about accessing keypad
program in iPaq. I need some advice, if it doesn't bother you so much.
I would like to develop a program which can press the keypad in pocket
pc's built-in phone program. For instance, When I make an
international call, I have to press a very long password from my card
phone or something like that. So, I would like my program to do those
task for me. Would you please provide me some information, like where
do I have to look first, which API do I have to call or anything? If
you could provide me an example would be grateful. Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128586
Visual Studio 2005 SmartDevice CAB project
Hi,
I know there's a visual studio newsgroup but I still think people here would
have more experience with this.
I've asked this before and never got a response.
When I create a cab project for smart devices, the cab file always tries to
install (duplicate) the setup.dll.
This is what it generates:
[DefaultInstall]
CopyFiles=Files.Common1,Files.Common2
CESetupDLL="Setup.dll"
[SourceDisksFiles]
"MyApp.exe"=1
"Setup.dll"=2
[Files.Common1]
"MyApp.exe","MyApp.exe",,0
[Files.Common2]
"Setup.dll","Setup.dll",,0
Setup.dll only needs to appear in [SourceDiskFiles] and [DefaultInstall]'s
'CESetupDLL' but NOT 'CopyFiles'.
I do not know how to prevent this other than manually editing the generated
.inf file to remove refereces to [Files.Common2].
I consider this to be a bug, unless someone can tell me how to accomplish
this from within Visual Studio 2005.
Lisa Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128585
Developing plugin for media player - Windows mobil
I am trying to develop a plug-in for WMP in windows mobile 6.The plug-in
should always run in the back ground when ever the WMP is started and respond
to some events. Is it possible to capture events like Open media file, Play
file, etc?
Please let me know. Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128583
No notification when using MAPI?
I have an app running on the Pocket PC 2003 emulator. It uses MAPI to
create a new message in the "Active Sync" Inbox. The home page shows
the message as new/unread, and it appears unread in the inbox also. I
have notification set for new email to play a sound, display a message
on the screen, and flash the light (for "no limit")... but none of
these notifications occur.
Is this by design that messages added using MAPI on the device do not
cause notifications to occur? If so, what options do I have to get
notifications? I assume my application can play a sound, but will it
always be possible to play a sound (for example, even if the screen is
off or my app isn't the active app)? Also, can I flash the light?
I'd rather just have it do whatever the default notification is for
email, if that is possible.
My application uses winsock to get messages from a source that Pocket
PC/Windows Mobile doesn't have native support for, then it dumps those
messages in the inbox on the device... this is why I would like
notifications to work normally. I don't want to provide a POP or IMAP
interface for this other message program, because of the limited poll
interval settings, as well as other reasons (I want to know the new
message entry ID, and track when the user does something with the
message), and my app is better designed for narrow bandwidth than POP/
IMAP. Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128582
Can't send same char again using SendCharEvents or PostKeybdMessage
Hello,
I am developing a SIP, and SendCharEvents seems to work well.
But if the program sends the same character again immediately by
calling SendCharEvents again, only 1 character is output. But if
different characters are sent one after another, there is no problem.
Is there a way to get around this ?
Here is how I am sending it:
KEY_STATE_FLAGS nShiftState = 0;
UINT nChar = c;
imCallback->SendCharEvents(nChar, 0, 1, &nShiftState, &nChar);
I also tried using PostKeybdMessage, and get the same problem
KEY_STATE_FLAGS nShiftState = 0;
UINT nChar = c;
PostKeybdMessage((HWND)-1, 0, nShiftState, 1, &nShiftState, &nChar);
Thank You
Nitin Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128578
table cells render on new lines, rather than inline
Hi - I'm fairly new to mobile development. I have some simple table html,
but each table cell gets a new line, rather than all table cells in a row
rendering on the same line. My content is not too large for it to fit on one
line, so I'm not sure how to fix, or if it's even supported.
Very simple html:
<table>
<tr>
<td>cell 1</td><td>cell2</td>
</tr>
</table>
I'm testing using WM6 Emulator, but I have someone with a real WM6 device
testing which renders the same way, all cells on a new line.
Is there some css or doctype or ? that I need to use for this to work?
Thanks in advance,
Sheryl Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128574
Release Dll Problem - Optimization Issue
Hi
I have a dll in C++ which I call in embedded visual basic. It works
perfectly fine in the Debug Mode and the Release Mode (with all
optimizations disabled).
The problem occurs when I try to make the release version of the DLL
with Optimization switches set for either Maximum Speed (/O2) OR
Minimum Size(/O1). It compiles and creates the DLL, but when I run the
code all function parameters in the C++ code which take FLOAT or
LPTSTR's are sent as blank values. Integers, Longs, Boolean values are
all set fine.
Any Ideas
S Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128570
Redirect outbound call
Hello!
I have such a problem. I need to redirect outbound phone call, which i
make in standard phone aplication (phone.exe).
In other words, when we dial a fixed number in standard phone
aplication and make call, the call redirects to another number, but
phone displays first number. So subscriber don't know, what number did
he realy call. Do anybody know the way to solve this task? Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128569
Screen Capture in VS2005
Does anyone have some code they could share on how to do a screen capture on
a Pocket PC device using Visual Studio?
I wrote code to do it once before using eMbedded VC, but very little of this
will port over.
Basically, I need to create a help file for my application, and it would
sure be nice if I could just make some screen capturing calls here and there.
Thanks for any help! Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128566
MeasureString in User Control not giving correct dimensions
Hello, Ive got a control that i want to draw text to the screen based
centered vertically and horizontally. I wasnt sure exactly if this was the
best way to do this but i thought it would at least work. Problem is, it
gives different results than I would expect.
The fonts should range from around size 5-26 and could be groups of words or
just some really long words. I thought it would be best to analyze how many
characters from each font size would fit into the screen shape for the
particular device. To do this, I wrote the following method
Dim fFam As String = "Courier New"
Private _charWidthVert(21) As Integer
Private _charWidthVert(21) As Integer
Private Sub AnalyzeFonts()
Dim s As String = "A"
For i As Integer = 0 To 21
With Me.CreateGraphics
Dim tmpFont As Font = New Font(fFam, (5 + i), FontStyle.Bold)
Do Until .MeasureString(s, tmpFont).Width >
Me.ClientSize.Width
Dim tmp As Integer = .MeasureString(s, tmpFont).Width
s &= s
Loop
_charWidthHori(i) = s.Length - 2
s = "A"
Do Until .MeasureString(s, tmpFont).Width >
Me.ClientSize.Height
s &= s
Dim tmp As Integer = .MeasureString(s, tmpFont).Width
Loop
_charWidthVert(i) = s.Length - 2
s = "A"
tmpFont.Dispose()
tmpFont = Nothing
End With
Next
End Sub
The inconsistency starts here. The variable _charWidthVert() is filled with
lots of numbers that don't seem right.
Example I count this many characters before screen overlap
f 5 chars 48
f 6 chars 40
f 7 chars 40
f 8 chars 30
f 9 chars 30
f 10 chars 26
f 11 chars 24
but the array shows
f 5 chars 62
f 6 chars 62
f 7 chars 62
f 8 chars 30
f 9 chars 30
f 10 chars 30
f 11 chars 30
And here is a method I wrote to analyze the strings. It appears to be
working as expected if I hard code in the proper character widths
Dim s As String =
"12345678987654321234567898765432123456789876543212345678987654321"
Dim charWidth As Integer = _charWidthHori(CInt(Me.fSize) - 5)
If s.Length > charWidth Then
Dim seed As Integer = Math.Ceiling(s.Length / charWidth)
Me._currText = ""
For i As Integer = 0 To seed
If i > 0 Then
Dim startpoint As Integer = (i * charWidth)
Dim endpoint As Integer = s.Length - (i * charWidth)
If endpoint > 0 Then
Me._currText &= s.Substring(startpoint, IIf(endpoint
> charWidth, charWidth, endpoint)) & ControlChars.CrLf
End If
Else
Me._currText &= s.Substring((i), charWidth) &
ControlChars.CrLf
End If
Next
Else
Me._currText = s
End If
Invalidate()
So Is there something I'm not getting here? why would the String.Length
Property be the same when clearly the width changes greatly per font size
unit?
Thanks in advance for any clues or insight Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128562
Cannot connect to internet
I have a web application which in my pc that the pocket pc can access from
the Symbo Pocket Browser or PIE. But I got the error that said "Cannot
Connect with current connection settings. ---"
Any help will be appciated! Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128557
Migration issues
Hello all,
We have this project written in C++ with EVC 4 for WinCE 4.2. It works
smoothly and well. Recently, our customer wanted to buy new machines
with Windows Mobile 5, so they asked us to migrate it. So we did.
For the most part, it works well. We had some issues with pre-standard
code and some dialog styles we fixed. But then, at certain point, an
error happens. The program "gwes.exe" closes and the program does not
continue with its normal execution: it aborts whatever message is being
processed (i.e. WM_ONLBUTTONDOWN) and returns. However, this messes the
entire application data.
GetLastError said that there was no more memory available. I placed a
GlobalMemoryStatus call just the line before it throws the error (by the
way, removing this line only causes the next one to fail in the same
way, and so on) and found that it still has memory (dwAvailPhys =
26.69MB, dwTotalPhys = 55.81MB). So it seemed that it actually had
enough memory.
Then I started to look for information over Internet and found this
memory division (out of 64MB, 32MB goes as persistent memory for the
file system, and 32MB to application memory, if I understood correctly).
So I thought that it actually was a memory problem, after all.
So I asked my provider for a machine with more memory, and finally they
gave me one with 128MB (which, according to the rule, it would be 64MB
for the file system, and 64MB for the application memory). My hopes were
high. Yet it failed in the same way, only that the call to
GlobalMemoryStatus showed more memory (dwTotalPhys = 119.85MB,
dwAvailPhys = 92.39MB).
Now, the headache is growing strong. Although we have more memory, the
same problem shows. I can't find any more information about this, so I
was kinda hoping if anyone could give me a clue on this matter.
Thanks in advance. Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128554
How to build an OS image which can interact with cellular emulator
We have added the following lines to the BaseOSEnv.bat file.
set IMGFAKERIL=
set IMGEMP=1
set IMGDUALPORTRIL=1
But the generated OS image (AKU611) is still unusable.
Thanks. Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128549
Pinvoke of DirectShow in compact framework
Hi,
I am trying to see where to start doing pinvoke of DirectShow API's in
compact framework. Specifically, I want to show the camera frames in a
window as well as access them and play around with them. Could anyone
please suggest some sample code for this?
Thanks,
Abhi Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128543
C# toolbar stuck on bottom of screen
Using VS2005, C#, How can I get the toolbar to appear at the top of
the display rather than at the bottom by the SIP ?
Is a custom toolbar needed? If so, where do I start? Thanks for any
suggestions. Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128540
Can't config SIP account using DMProcessConfigXML
I alway get Falied with this code below on Windows Mobile 6. Waht have i
doing wrong ?
LPCWSTR in = \
L"<wap-provisioningdoc>"
L"<characteristic type=\"VoIP\">"
L"<parm name=\"SIPSettings\" value=\"<provision key='1232ab01'
name='XXXXX'>"
L" <provider name='XXXXX'/>"
L" <user account='XXXXX' password='XXXXX' uri='XXXXX' allowedauth='digest'/>
"
L" <sipsrv addr='XXX.XXX.XXX.XXX:5060' protocol='UDP' role='proxy'>"
L" <session party='First' type='pc2pc' /> "
L" <session party='First' type='pc2ph' />"
L" </sipsrv>"
L" <sipsrv addr='XXX.XXX.XXX.XXX:5060' protocol='UDP' role='registrar'/>"
L" </provision>\" />"
L"</characteristic>"
L"</wap-provisioningdoc>";
LPWSTR out = NULL;
HRESULT res = ::DMProcessConfigXML(in, CFGFLAG_PROCESS, &out);
if (res == S_OK)
{
delete[] out;
}else
{
MessageBox(L"Failed",0,0);
}
PS. VoIP Client is working well Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128533
How to setup barcode scanning from Pocket PC?
I have a web application which update database when the user scanner barcode
from Pocket PC (windows mobil 5.0). What settings should I do to enable the
scanner function for Pocket PC? I use symbol pocket pc browser 2.0.
Thanks for any helps. Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128526
DirectShow Freezing after Power Suspend
Hi
I have a DirectShow application written in C++. Everything works well
with it (preview direct to screen, capture still images, stop the
preview, etc.) except when the device goes into suspend. When powering
on again the preview is still and will not resume. If I shut down the
application and restart it, it fails to load the camera driver and I
have to reboot.
I have tried handling the power notification messages which I am
receiving but it doesn't help - I think although I receive the power
notification on suspend (POWER_STATE_SUSPEND), this really is just a
posted message and so the device powers off before my code has a
chance to uninit DirectShow. Basically DirectShow throws a wobbly if
the filter graph has been started and the device goes into suspend
mode.
I guess I must be doing something silly as this is too big a problem
not to have been seen by MS, so has anyone else come across this
issue?
Jim Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128524
new Smart Device Project time
We have Symbol Pocket PC devices here at work and I have been working on some
applications for them already. All design work in the past as been to modify
existing applications, but now it is time for a new product.
Visual Studio 2005 Pro offers 4 flavors of Smart Device development: Pocket
PC, Windows Mobile 6, Smartphone or Windows CE.
I realize that Pocket PC is the natural choice, but is one of the other
choices more portable? Say, for instance, we found a wonderful device
sometime down the road that did not run on Pocket PC, but some other Windows
OS. I'd like the software I design to be universal.
Is this realistic, or am I being crazy over here? Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128519
UDP connection over GPRS/3G fails when Wifi is ON
Hi all,
I appreciate very much if anyone can help me or provide some comments.
I have a HTC TyTN. With this product, I can send UDP packets to a UDP
server over the GPRS/3G network ( I downloaded a free trial IPer 6.0
product to generate UPD traffic. You can find the product at
http://handheld.softpedia.com/get/Internet-Utilities/Testers/IPer-10064.shtml).
This works when the Wifi is OFF. However, when the Wifi is ON, the UDP
server cannot receive any data packets, even a single one.
So, my question is does anyone here experience the same problem
before? If not, can anyone verify if your device behave similar to
mine.
Thank you very much, and I am looking forward for your reply.
Sam Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128516
Client app to notify users of changes to web-site
I have a browser-based application that I wrote. I'd like to notify
mobile users of certain events. Ideally it would notify them even if
the screen was off, like the notifications they get for a new text
message. I don't want to use text messages though (since most people
still have to pay for those). Also, ideally the client wouldn't have
to install anything, I could just do something browser based
(JavaScript/VBScript and COM objects?).
If I do need to write a small application to run on the client, in the
background, that is also fine... I'm just not sure if even that is
possible/acceptable. Is it possible/ideal to write an application
that runs at startup and always runs in the background, and would that
application be able to keep a TCP connection open even while the
device was "sleeping" (or whatever you call the state your phone is in
when you aren't using it, but it is still on). I think I read that
there are versions of SQL and IIS servers that run on devices, if so,
my small background app should be nothing compared to what those would
require.
I'd like for my application to play a sound and/or otherwise notifiy
the user, and then open my web-site in their browser. Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128514
IPIEHTMLFormElement problem
hi... I have written the following code in my BHO's
onDocumentComplete. What i want to do is that after my page gets
loaded i need to submit the form. Since there was no useful reference
on the net i wrote this thing myself.
can anyone cross-verify?? I managed to get to the IPIEHTMLFormElement*
pElement; line successfully. For www.gmail.com. The number of forms
returned was 1. So i got that element. But when I try to
queryinterface the
IPIEHTMLFormElement it fails. Please advice me to get past this line.
Below is my code sample
void __stdcall CBHOObj::OnDocumentComplete(IDispatch * pDisp, VARIANT
* pvtURL)
{
CComPtr<IDispatch> spDispDoc;
// Getting the current webpage from the browser
HRESULT res = m_spWebBrowser2->get_Document(&spDispDoc);
if(SUCCEEDED(res))
{
IPIEHTMLDocument2 *pHTMLDocument;
IPIEHTMLWindow2 *pHTMLWindow;
IPIEHTMLElementCollection *pHTMLElementCollection;
spDispDoc->QueryInterface( __uuidof(IPIEHTMLDocument2),
(void**)&pHTMLDocument);
if (pHTMLDocument)
{
pHTMLDocument->get_forms(&pHTMLElementCollection);
long pHTMLElementCollectionLength = 0;
if (pHTMLElementCollection)
{
pHTMLElementCollection->get_length(&pHTMLElementCollectionLength);
CString abc;
abc.Format(L"%ld",pHTMLElementCollectionLength);
MessageBox (NULL, abc,L"BHO", MB_OK);
for (int i = 0; i < (int)pHTMLElementCollectionLength ; i++)
{
VARIANT vtIndex,vtName;
vtIndex.vt = VT_UINT;
vtIndex.lVal = i;
vtName.vt = VT_UINT;
vtName.lVal = i;
IDispatch* pItem = NULL;
HRESULT hr = pHTMLElementCollection->item(vtName, vtIndex ,
&pItem);
if(SUCCEEDED(hr))
{
IPIEHTMLFormElement* pElement;
hr = pItem->QueryInterface(__uuidof(IPIEHTMLFormElement) , (void
**)&pElement );
if(SUCCEEDED(hr)) //E_NOINTERFACE
{
pElement->submit();
}
}
}
}
}
}
} Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128512
IPIEHTMLDocument2 interface needed
hi all. I need to get an interface IPIEHTMLDocument2. I came across
this article http://blogs.technet.com/suvarnas/archive/2006/01/13/417387.aspx
but cant get this to work.
what does hWnd in the following line refer to??
SendMessage(hWnd, DTM_DOCUMENTDISPATCH, (WPARAM)0, (LPARAM)&pIDisp );
I thought i refers to the window handle of my IE window. Please
correct me if i am wrong
thanks in advance... Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128510
LinkLabel and the Focus Rectangle
Is there anyway to remove the focus rectangle that appears around the
linklabel control when it has focus?
I'm working with VB.NET 2005 and the .NET CF 2.0.
Thanks a million,
- Steve Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128503
Communicating with mobile phones via BT
Hi.
This message is my first step into the mobil eprogramming and I have no clue
where to start.
Can anyone give me the first one?
I would like to write a pc software that can communicate with mobile phones
via BlueTooth.
I would like to support as much phones as I can in order to create a free
sync software/sms/mms/whatever utility.
The Nokia / Motorolla versions were not satisfying in my opinion, and I also
want 1 software to work with,
even if I change my phone once in a while.
Couldn't find any information on doing this.
I am an experienced serial comm programmer, but ... where do I find
"command sets", available serial port...
info such as mobile phone type / supported BT devices etc.
From first research I found my Motorolla v3i can be connected on serial port
42, and present itself as a modem.
Where can I find the at commands it accept?
Thank you very much.
Empi Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128501
Using PInvoke with shared MFC
Hi,
I'm trying to create a more secure application, to try and prevent
code hacking. There seems to be a lack of applications which can
protect a smart device C++ executable, most seem to be for C#. I'm
trying to create a C# application which uses PInvoke to access a C++
dll. I can get the C# application to correctly call into my C++
regular dll but only if it is statically linked to MFC, which is fine
but it doubles the size of the code. Has anyone managed to get this
to work with a shared MFC dll which is much smaller?.
I can't create a managed dll because it's not supported for
smartdevices.
Does anyone know of any application which can inject some kind nano
protection into a smartdevice C++ application?, ones which also work
with the security model on the non touch screen phones. I did find
one but it will only work with PDA's and not phones and it's not being
developed further.
Thanks in advance.
Nicko. Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128493
Navigating thru Windows Mobile Form Controls
I have a form with multiple controls, Text Box, Combo, DateTime Picker
etc... As an example, in the DateTime picker, the Left/Right navigation
keys allow me to toggle between sections (e.g. Mo/Da/Yr) and the up/down
selects the value in the section. The middle key Enters the value. How do
you move to the next control (similar to hitting Tab on the keyboard) or go
to the previous field withoug using the touch screen/pen/keyboard.
I'm really looking for a one handed experience on both the PPC and
SmartPhone. Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128492
Problem with \\Windows\\ctlpnl.exe "cplmain.cpl,3"
Hi, I use this method to call the battery information window, and this work
fine in some pockets but wen I tried use it in a HP with Windows Pocket PC
4.20.1081 dont work...
CString path ("\\Windows\\ctlpnl.exe");
SHELLEXECUTEINFO si;
memset(&si,0,sizeof(si));
si.cbSize = sizeof(si);
si.fMask = SEE_MASK_NOCLOSEPROCESS;
si.hwnd = NULL;
si.lpVerb = _T("open");
si.lpParameters = _T("cplmain.cpl,3");
si.lpDirectory = NULL;
si.nShow = SW_SHOWMAXIMIZED;
si.hInstApp = NULL;
si.lpFile = LPCTSTR(path);
ShellExecuteEx( &si );
can anyone help me ? Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128490
Audio discontinuities in HTC Touch Phone
We have received a report of a peculiar problem with the HTC Touch PDA/phone
from one of our customers. He has tried our audio spectrum analysis software on
three different units, and on each unit, our Fourier spectrum display, when
listening to a pure sine-wave tone, shows not just a single peak from the FFT
analysis, but it shows the central peak surrounded by sidebands spaced every 11
Hz or so. To me this sounds like phase modulation, such as you would get if the
audio samples had a periodic phase discontinuity.
We sample continuously at 22050 samples per second using multiple buffers of
1024 samples per buffer. This comes out to 21.53 buffers per second - close to
double the reported spacing in the sidebands. I hypothesize that our buffers
are not getting filled by the system audio drivers with 1024 samples of
continuous data. If the drivers happened to drop a few samples from one buffer
to the next, that would result in exactly the kind of phase modulation that our
Fourier analysis is indicating.
Does anyone know if there are any reported audio problems that would affect a
listening program that samples at 22050 samples per second and uses 16 buffers
of 1024 samples per buffer? The phones are the OKTA (HTC) Touch and the HTC
Titan, both running WM6.
Robert Scott
Ypsilanti, Michigan Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128489
database
Hi,
I would know, some information, how to connect and manipulate database WM6
whith language vb 2008
thank you Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128485
Videoconferencing via internet
http://www.vzochat.com
VZOchat (pronounced as viziochat) is a free software for making video
calls. Unlike well-known Skype and other VoIP software, VZOchat is not
based on P2P technology. Instead, it uses a central server to handle
data flows. As of October 2007, the community of VZOchat users
comprised almost 200,000 people.
One of the most important issue for VZOchat is a good video
connection. As a result, steps were taken to make the messenger
operate even with dial-up connections. Features include text chat,
ability to work behind firewalls and HTTP-proxies. Currently the
software supports Windows operating systems only.
Key VZOchat 6.0.0 features
Video, Audio and Text messaging
Favourable video quality even with low-bandwith internet connections
(such as dial-up) and small resolution webcams
Client-server architecture that provides stronger privacy for your
videocalls
Ability to work through firewalls and HTTPS/SOCKS proxies
Full screen video support
Dear VZOchat user! We=92re glad to offer you unbelievable video-service
right from the WEB-page!
Now you can start videochat from any web-page you want =96 from any
forum, your own web-page, your social-network profile page and from
any other private internet resource.
You should enter you profile page and click =93Add VZOchat button to
your website or blog=94 . Then choose any version of our VZOchat widget,
copy code and embed it into your page.
After that any person entered to this page will be able to videocall
you (if you are online in VZOchat). Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128483
Orange SPV M500 and JSR-82
Hi all,
I hope i have the right group to ask this question.
I have a Orange SPV M500 running on Windows Mobile 2003.
Now i've found a nice java-program i'd like to run on my phone but i get the
error-message that the phone doesn't have JSR-82.
And it needs that to run the software.
Is there any way to install this java JSR-82 thingy?
Or could i try to install a version of windows mobile that does support
JSR-82? (If that is at all possible).
I hope you understand what i mean and that someone can help me out. I'd hate
to have to get a new phone just to run some software....
OmeJozz Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128482
Programmatic Hard Reset
I'm working on an application tool for my work that will allow me to
provision, reboot and hard reset devices somewhat similar to the way the
power tool 'Security Configuration Manager' works in some respects. However
I've found that the SCM doesn't always work. For example I have a Sprint
Mogul in my hand right now that the SCM refuses to even notice the fact that
it is connected so I can't provision it at all.
I need hard reset functionality so that I can take a device, connect to the
computer, automatically hard reset it and then when it boots back up,
automatically provision it and run automated unit tests on it. Most of this
functionality ( including detecting connects and disconnects) i've been able
to achieve with RAPI alone.
Unfortunately I can't find a way to perform a hard reset that actually
works. I've seen some postings on the net about for example, calling;
SetCleanRebootFlag() before using KernelIoControl to do a reboot. But this
has had no effect other than a regular soft reboot.
I've also seen a posting about using a WAP provisioning doc with
<wap-provisioningdoc>
<characteristic type="RemoteWipe">
<parm name="doWipe" value="1"/>
</characteristic>
</wap-provisioningdoc>
in it. I haven't been able to get DMProcessConfigXML to work just yet, but I
did place this into a setup.xml file in a .cab and successfully installed it
to a device and it had absolutely no effect. I know that there is some
variation as to whether or not an OEM allows this functionality and that this
variation plays a part in whether or not this will work. But I kinda need to
get this done because the amount of time I'm wasting hard resetting, and
provisioning each new device ( we have a list of 40 devices to test ) before
running the tests is astonishing. As each new bug fix is produced, I need to
run through these tests again which as you can imagine is a humongous time
sink that I'd really rather not go through if I can automate it.
Has anyone been able to successfully hard reset a device via code? Can
anyone point me in the direction of someone who has?
I'd prefer to be able to do this over RAPI, but I'm perfectly willing to
create a cab or executable to run on the device if need be.
Can anyone help? Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128481
Linking error with release build LNK1000
Hi,
I get this error message when building a "release" version of my
project. The debug version works just fine. None of the optimization
options in project's properties| configuration properties| C/C++|
optimization have any effect. Making the optimization "less optimal"
in the release build does not help. In the same time, enabling the
same options in the DEBUG still works. However it might be that these
optimizations are automaticly disabled if I build the DEBUG target,
amI right?
This is the error message I get:
LINK : fatal error LNK1000: Internal error during IMAGE::BuildImage
Version 8.00.50727.762
ExceptionCode = C0000005
ExceptionFlags = 00000000
ExceptionAddress = 004978EE (00400000) "C:\Program Files
\Microsoft Visual Studio 8\VC\ce\bin\x86_arm\link.exe"
NumberParameters = 00000002
ExceptionInformation[ 0] = 00000000
ExceptionInformation[ 1] = 01CA5CD4
CONTEXT:
Eax = 01CA5CD0 Esp = 0013EC1C
Ebx = 023229A0 Ebp = 0013EC30
Ecx = 011E0428 Esi = 01CA5CD0
Edx = 00000000 Edi = 00000002
Eip = 004978EE EFlags = 00010216
SegCs = 0000001B SegDs = 00000023
SegSs = 00000023 SegEs = 00000023
SegFs = 0000003B SegGs = 00000000
Dr0 = 00000000 Dr3 = 00000000
Dr1 = 00000000 Dr6 = 00000000
Dr2 = 00000000 Dr7 = 00000000
Thanks in advance,
Matti Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128477
programmatically clicking submit button
hi all..
is there a way can programmatically click the submit button on html
page?? I tried sending key strokes thru sendmessage and postmessage
but it doesnt work. Then i tried by submitting the html form. but it
doesnt work. below is my sample code.
SendMessage(hWnd, DTM_BROWSERDISPATCH, (WPARAM)0,
(LPARAM)&pDisp );
if( NULL != pDisp)
{
hr = pDisp->QueryInterface( __uuidof(IPIEHTMLDocument2),
(void**)&pHTMLDocument);
}
IPIEHTMLElementCollection *pElementCollection = NULL;
pHTMLDocument->get_forms(&pElementCollection);
long items = 0;
hr = pElementCollection->get_length( &items );
for ( int i = 0; i < items; i++ )
{
VARIANT vtIndex;
vtIndex.vt = VT_UINT;
vtIndex.lVal = i;
VARIANT var2;
VariantInit( &var2 );
IDispatch* pItem = NULL;
if( pElementCollection->item( vtIndex, var2, (IDispatch**)&pItem )
== S_OK )
{
IPIEHTMLFormElement* input= NULL;
if( pItem->QueryInterface(__uuidof(IPIEHTMLFormElement),
(void**)&input ) == S_OK )
{
hr = input->submit();
}
}
My code is failing in the first line itself. It fails to get a
IDispatch pointer.. Is this the correct way to get the pointer?? hWnd
is my IE window in question.
Is there any other way of submitting the form?? any references to
sample code???
Thanks in advance.. Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128476
CryptBinaryToString lib ???
Hi,
Can anyone please tell me, which library contains link details to
CryptBinrayToString ??? it is not in the Crypt32.lib :-(
Kind regards Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128475
Using XMLDOM in WinCE
Hi, I have an XmlTag which i am using as a light wrapper around a
IXMLDOMNode
this is so we can abstract an XmlTag as we support other OSes.
I construct the XmlTag with a IXMLDOMNode and then get the child nodes which
i
then use to populate a std::vector of XmlTags. The code is below, i haven't
include
all the methods of the XmlTag class to keep thing simple
class XmlTag
{
IXMLDOMNode* m_node;
std::vector<XmlTag* m_children;
}
XmlTag::XmlTag(IXMLDOMNode* node):m_node(node)
{
// Populate the taglist with IXMLDOMNodes
IXMLDOMNodeList* nodelist = NULL;
HRESULT hr = m_node->get_childNodes(&nodelist);
assert(SUCCEEDED(hr));
IXMLDOMNode* node = NULL:
HRESULT hr = nodelist->nextNode(&node);
assert(SUCCEEDED(hr));
while (node != NULL)
{
XmlTag* tag = new XmlTag(node);
m_children.push_back(tag);
node->release(); // Is this correct??
m_node->nextNode(&node);
}
}
I was unsure whether after using a node to construct an XmlTag whether
i need to call release on it or would this invalidate the node in the XmlTag
object. Also i am using the same varaible node when i keep getting the
nextNode
Can anyone say wether there are any flaws here?
Thanks Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128474
Need dll to convert sdf to dbf
Hi
I have tables that I need to convert to dbf format from MS SQL Compact
2005 (sdf) format that reside on my desktop. I was hoping that I could
embed the utility and call it from some code I put behind a button.
Does anyone have anything like this or know where I can get it?
Thanks
The Mad Ape Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128469
atl error while copiling for windows mobile Pro 6 devices
I can compile my mfc project for WM 5 devices, but for WM 6 pro sdk i get
following errors:
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1455) : error C2061: syntax error :
identifier 'HPROCESS'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1455) : error C2535:
'ATL::CePtrBase_t::CePtrBase_t(void *)' : member function already defined or
declared
1> C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1418) : see declaration of
'ATL::CePtrBase_t::CePtrBase_t'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1473) : error C2061: syntax error :
identifier 'HPROCESS'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1501) : error C2061: syntax error :
identifier 'HPROCESS'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1461) : error C2065: 'hProcessToMapTo' :
undeclared identifier
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1513) : error C2660:
'ATL::CePtrBase_t::MapToProcess' : function does not take 1 arguments
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1605) : error C2061: syntax error :
identifier 'HPROCESS'
1> C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1668) : see reference to class template
instantiation 'ATL::CePtr_t<C_t>' being compiled
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1605) : error C2535:
'ATL::CePtr_t<C_t>::CePtr_t(C_t)' : member function already defined or
declared
1> C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1589) : see declaration of
'ATL::CePtr_t<C_t>::CePtr_t'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1616) : error C2061: syntax error :
identifier 'HPROCESS'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1625) : error C2061: syntax error :
identifier 'HPROCESS'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1693) : error C2065: 'HPROCESS' :
undeclared identifier
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1694) : error C2146: syntax error :
missing ')' before identifier 'hProcessToMapTo'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1694) : error C2761: 'void
ATL::CePtrBase_t::MapToProcess(void)' : member function redeclaration not
allowed
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1694) : error C2059: syntax error : ')'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1695) : error C2143: syntax error :
missing ';' before '{'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1695) : error C2447: '{' : missing
function header (old-style formal list?)
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1727) : error C2061: syntax error :
identifier 'HPROCESS'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1731) : error C2146: syntax error :
missing ';' before identifier 'hProcess'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1731) : error C2065: 'hProcess' :
undeclared identifier
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1757) : error C2065: 'phProcess' :
undeclared identifier
I use
CPropertyPage,
CPropertySheet and CCommandbar in my project. It's that maybe the problem ?
thanks Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128465
atl error while copiling for windows mobile Pro 6 devices
I can compile my mfc project for WM 5 devices, but for WM 6 pro sdk i get
following errors:
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1455) : error C2061: syntax error :
identifier 'HPROCESS'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1455) : error C2535:
'ATL::CePtrBase_t::CePtrBase_t(void *)' : member function already defined or
declared
1> C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1418) : see declaration of
'ATL::CePtrBase_t::CePtrBase_t'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1473) : error C2061: syntax error :
identifier 'HPROCESS'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1501) : error C2061: syntax error :
identifier 'HPROCESS'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1461) : error C2065: 'hProcessToMapTo' :
undeclared identifier
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1513) : error C2660:
'ATL::CePtrBase_t::MapToProcess' : function does not take 1 arguments
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1605) : error C2061: syntax error :
identifier 'HPROCESS'
1> C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1668) : see reference to class template
instantiation 'ATL::CePtr_t<C_t>' being compiled
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1605) : error C2535:
'ATL::CePtr_t<C_t>::CePtr_t(C_t)' : member function already defined or
declared
1> C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1589) : see declaration of
'ATL::CePtr_t<C_t>::CePtr_t'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1616) : error C2061: syntax error :
identifier 'HPROCESS'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1625) : error C2061: syntax error :
identifier 'HPROCESS'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1693) : error C2065: 'HPROCESS' :
undeclared identifier
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1694) : error C2146: syntax error :
missing ')' before identifier 'hProcessToMapTo'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1694) : error C2761: 'void
ATL::CePtrBase_t::MapToProcess(void)' : member function redeclaration not
allowed
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1694) : error C2059: syntax error : ')'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1695) : error C2143: syntax error :
missing ';' before '{'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1695) : error C2447: '{' : missing
function header (old-style formal list?)
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1727) : error C2061: syntax error :
identifier 'HPROCESS'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1731) : error C2146: syntax error :
missing ';' before identifier 'hProcess'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1731) : error C2065: 'hProcess' :
undeclared identifier
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1757) : error C2065: 'phProcess' :
undeclared identifier
I use
CPropertyPage,
CPropertySheet and CCommandbar in my project. It's that maybe the problem ?
thanks Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128464
Atl error while compile for WM Pro 6 device
I can compile my MFC project for windows mobile 5.0 devices.
But for WM 6 i have following errors:
1>_CE_ACTIVEX was not defined because this Windows CE SDK does not have DCOM.
1> _CE_ACTIVEX could be caused to be defined by defining
_CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA, but it is recommended that this be
done only for single-threaded apps.
1>_ATL_NO_HOSTING was defined because _CE_ACTIVEX was not defined.
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1455) : error C2062: type 'void'
unexpected
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1455) : error C2334: unexpected token(s)
preceding '{'; skipping apparent function body
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1473) : error C2061: syntax error :
identifier 'HPROCESS'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1501) : error C2061: syntax error :
identifier 'HPROCESS'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1513) : error C2660:
'ATL::CePtrBase_t::MapToProcess' : function does not take 1 arguments
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1605) : error C2146: syntax error :
missing ')' before identifier 'p'
1> C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1668) : see reference to class template
instantiation 'ATL::CePtr_t<C_t>' being compiled
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1605) : error C2146: syntax error :
missing ';' before identifier 'p'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1605) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1605) : error C2146: syntax error :
missing ';' before identifier 'hProcessToMapTo'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1605) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1605) : error C2059: syntax error : ')'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1608) : error C2065: 'p' : undeclared
identifier
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1608) : error C2065: 'hProcessToMapTo' :
undeclared identifier
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1609) : error C2056: illegal expression
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1609) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1609) : error C2473: 'hProcessToMapTo' :
looks like a function definition, but there is no parameter list.
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1613) : error C2143: syntax error :
missing ';' before 'void'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1693) : error C2065: 'HPROCESS' :
undeclared identifier
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1694) : error C2146: syntax error :
missing ')' before identifier 'hProcessToMapTo'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1694) : error C2761: 'void
ATL::CePtrBase_t::MapToProcess(void)' : member function redeclaration not
allowed
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1694) : error C2059: syntax error : ')'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1695) : error C2143: syntax error :
missing ';' before '{'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1695) : error C2447: '{' : missing
function header (old-style formal list?)
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1727) : error C2061: syntax error :
identifier 'HPROCESS'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1731) : error C2146: syntax error :
missing ';' before identifier 'hProcess'
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1731) : error C2065: 'hProcess' :
undeclared identifier
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlosapice.h(1757) : error C2065: 'phProcess' :
undeclared identifier
i use CPropertySheet, CPropertyPage and CCommandBar in my project. Do it
make the problem ? Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128463
Avoid .net framework installation on a setup project
Hi,
I am developing a windows mobile app and would like to make a pc desktop installer that will use ceappmgr.exe to install that app onto device.
I've followed instructions on http://msdn.microsoft.com/en-us/windowsmobile/bb649500.aspx
The problem is that doing this .net framework 2 is required on pc. I find it unnecessary as my app targets windows mobile and not pc. I know the problem is on the dll used, required to do the onAfterInstall event.
Is it any way to this installer that usere ceappmgr.exe without requiring .net framework to be installed in user's PC?
Thanks,
Alpa. Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128462
Vista, UAC, ceappmgr and custom installers... and .net
Thanks for your updates, they have been very useful.
But I have a doubt, do you require user to install .net framework before running the installer as in has an onAfterInstall event?
The fact is that I would like to avoid .net framework installation in a pc that doesn't really require it as installer just installs a mobile app.
Thanks Tag: How to play sound ( e.g. wav) during phone conservation ? Tag: 128460
I use IGraphBuilder and IMediaControl, but it's not able to play sound
during phone application is active.
are there other ways to play warning sound in this case ?