|
How I could use GSM 6.10 codec for recording/playing wave files in my program?
|
|
|
|
|
I'm writing a COM activex control with ATL in evc++3.0 to be consumed by a evb client. on the client side, I'm creating my control with CreateObjectWithEvents() because the control supports some events.
The problem is, although I can call control methods, I cannot seem to handle control events in my client at all. The control has a very simple event TestEvent that takes a single string param.
<br />
CComBSTR bstrParam(_T("Test message"));<br />
Fire_TestEvent(bstrParam);<br />
<br />
<br />
Set obj = CreateObjectWithEvents("AxControl.Control.1", "Cl")<br />
'method works<br />
obj.Test<br />
<br />
' this is the event sink that never gets invoked!!<br />
Public Sub Cl_OnTestEvent(Status As String)<br />
MsgBox Status<br />
End Sub<br />
I'm testing on PPC2000 emulator.
So how do I build a control in evc++ for a evb client with events support? Does anyone have any prior experience building controls for evb? I desperately need some help and have been stuck here for sometime.
Hush,hush...
thought I heard you call my name now.
Kula Shaker.
Amit Dey
Latest articles at CP - Writing Word addins
Office addin
|
|
|
|
|
I have an application that uses a dll to export various dialog boxes. This dll implements a "wizard" if you will that walks the user through setting up a new document for the application. It exports various functions, resources and dialog boxes.
The issue that has all of a sudden jumped up, is that when the users starts the wizard, the first dialog box is shown just fine, but when they click next all I get is a blank screen. If I click on the home button on my ppc and go back out to the today screen then click on the icon to start the app again I am give the proper dialog box displayed. This continues thoughout the entire wizard.
In a different exported function that uses the same wizard, all the dialog boxes are presented as they should be as the users walks through the wizard. This other function allows the user to go back and add different features to the already created document. It uses all the same code as the first wizard, but yet everything works as I would expect.
It as if the drawing mechanism is not being called for each of the dialog boxes after the first one in the initial wizard.
On top of all this, everything works just fine in emulator, but not on my device. (Dell Axim X3i) I haven't had a chance to test in on a different machine.
Anyone see anything like this before?
Thanks,
-Eric
|
|
|
|
|
VanHlebar wrote:
Anyone see anything like this before?
Nope. Question: are you using MFC?
Regards,
João Paulo
|
|
|
|
|
João,
Thanks, I figured it out. Yes I am using MFC. It had something to do with the CCETitleBar object of your that I was using. I had it defined in a view class that was not instatiated <sp> yet at the time I was calling the first "wizard".
To fix it I just moved the CCeTitleBar object into the first view class and then everything worked as it was supposed. The reason it was working in the second instance of calling the same code was because the "wizard" was being called after all of the different view classes were instatiated.
I am not really sure why the CCeTitleBar object was causing this. It was never created yet and there was no call to it or any of its methods inside my dll, but its fixed anyways.
Thanks,
-Eric
|
|
|
|
|
My code fails on "HttpSendRequest". But GetLastError returns like "-2146893051" and I am not sure how to proceed.
Details -
Developed on Embedded VC++
WinCE 4.2. (Pocket PC 2003)
I am mainly stumped by the GetLastError() return value. Any idea how I can get a proper error code.
Note: we are actually trying HTTPS here..
Any help is very much appreciated.
thank you
aby
|
|
|
|
|
Actually, that number does appear to be a valid error message - in hex it's 0x80090305, which Error Lookup reports as "The requested security package does not exist".
I'm not familiar with the Http* APIs, so I can't suggest the appropriate course of action, other than to review your code, however, posting the error message into google groups showed up several postings regarding this error.
HTH.
--
Ian Darling
"The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky
|
|
|
|
|
Thanks. I did not get any output in the Error Lookup with Embedded VC++ but did get when i used the one with VC++. Thanks again.
|
|
|
|
|
I have a problem about CreateFile to a bluetooth serial port,when i use PPC2002 Read bluetooth sentence is fine, but when i use PPC2003 read bluetooth serial port alway ont read only 2-5 sentence will stop work ? can anyone can tell me why ? Is PPC2003 have bug in bluetooth ? ps. I use HP3970 and HP2210 to try this problm
|
|
|
|
|
Hello everybody !
For one of my project, I work with a Bluetooth connection (a device sends data through a Bluetooth link to my Pocket PC).
I want to automate the initialisation of the communication: I don't want all these autorisations and keys that are asked on the screen (it must be transpartent for the user).
Any idea where I can look for articles or suggestions aboout that?
Thanks
|
|
|
|
|
hi,
can anyone help me in placing system wide hooks on WinCE APIs??
My requirement is to hook registry related APIs in WinCE.
Thanks in advance,
Regards,
Jinoj S
|
|
|
|
|
I have an application that has multiple CScrollViews defined in it. Everything works just fine in the one CScrollView right up to the point that I have to have scrollbars in the second view. At this point then neither scroll bar performs correctly.
I have set the properties of each scroll bar seperately in each views OnInitialUpdate() method. In these methods I calculate the vertical range of the scroll bars. Each view has its own OnVScroll method. When I only have a single scroll bar set in a view then I can reach both the upper limits and the lower limits of the scroll bar. However, when the second view comes into view and the scroll bar is set up I can no longer reach the lower limits of the first scroll bar.
Are these two views using any shared properties? Any ideas on where to start searching for the bug?
Thanks,
-Eric
|
|
|
|
|
My first option would be to look into the view updating mechanism. Is it possible that one view is being updated (via OnUpdate ) with data that is meant for the other?
Regards,
João Paulo
|
|
|
|
|
Hi there. Couldn't decide whether to post this in the Embedded/Mobile forum or the COM forum. Plumped for this one, hope it's reasonably on-topic.
I am looking at writing a new Pocket PC 2003 app using the .NET Compact Framework. Pretty excited, as this is a "step up" from using the eVC++ 3.0 tools that I have been using for the past few years.
One of the requirements of the new app is that it will have a customised SIP--basically to have much larger key buttons so as to allow entering data using a (fat) finger. On Pocket PC 2002 that I have previously worked on, this involved writing a COM object DLL implementing the IInputMethod interface, and having the DLL register itself when installing the CAB. Then, in the actual application, the COM object would be instanciated using CoCreateInstance() .
Using .NET CF, I am not able to write COM objects, is that right? Which means I would have to "drop down" to using eVC++ 4.0 (4.0 rather than 3.0, in order to target PPC2003) to write the COM object. Then, in the .NET CF application, I would need to use a combination P/Invoke and a COM-object-DLL-wrapper to "get at" the custom SIP that I implement in the above DLL. Does this make sense to you, and do you think I'm on the right track?
I guess I'm really just asking so that I know what is possible, and to confirm that I am indeed heading in right direction...
Any feedback would be much appreciated.
Cheers,
Jon
|
|
|
|
|
You are correct. .NETCF does not support COMponent bridge. My preference would be as you said, to create a wrapper for the COMponent and PInvoke through it.
Regards,
Ron Miller
|
|
|
|
|
I have a dialog based application using a HTML control:
...
m_HtmlViewInstance = ::LoadLibrary(L"htmlview.dll");
VERIFY(InitHTMLControl(AfxGetInstanceHandle()));
DWORD dwStyle = WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS;
RECT rect;
GetClientRect(&rect);
m_hwndHtml = ::CreateWindow (DISPLAYCLASS,NULL,dwStyle,rect.left,rect.top,
rect.right,rect.bottom,m_hWnd,0,m_HtmlViewInstance,
NULL);
::SetWindowLong(m_hwndHtml, GWL_ID, 12321);
::SetFocus (m_hwndHtml);
::SendMessage(m_hwndHtml, WM_SETTEXT, 0, (LPARAM)(LPCTSTR)_T(""));
...
etc..
Anyone knows how to specify the HTMLctrl to translate using UTF-8?
|
|
|
|
|
Hello all !!
I have a SDI application (using form view) and I would like several views that can be switched via the toolbar (a single view is shown at once).
Every view has it's own class and own 'window' and must be linked to the document.
Any hints for doing this simply ??
Thanks
Cedric Moonen
|
|
|
|
|
|
|
|
Ok, nice!!
Thanks !
I think I will take the third solution because I just want my views to be hidden and not destroyed.
Again, thanks!
Cedric
|
|
|
|
|
HI,
Can anyone help how to popup a dialog in a half screen for PPC.
When i give dialogs.m_bFullScreen = false..then the dialog is displayed horizontally occupying client center area and ok/cancel button are hidden
making the user to scroll dialog horizontally to get the ok buttons.
Pls help..how to get rid of this
Thnks in advance
|
|
|
|
|
Just a hint, maybe create your own Dialog class derived from CDialog ??
Then use CenterWindow().
Hope this helps
|
|
|
|
|
Hi!
Is the a way that I can display an event (or highlight event date) in the mobile web calendar reading from database using visual basic.
|
|
|
|
|
I have a scroll view implemented in my app and have a question. Currently my scroll bars go from the top of the screen to the bottom of the screen. What I would like to do is have a spot at the top of the screen to be say a title section. I need to have this section not be repainted everytime a WM_PAINT message is sent, only the below it needs to be repainted. So the question is, how do I create such a non-client area inside this ScrollView?
Thanks,
-Eric
|
|
|
|