|
Hi,
Does anyone know how to control an Ipaq wifi nic through evc++ 4.0 code?
Thanks
Tammy
|
|
|
|
|
I'm trying to get the system time on a Pocket PC using eVB3.0. Any advice would be appreciated - I'm still pretty new at this.
Thanks
D
juDge_D
"doomed to crumble unless we grow"
maynard james keenan 2001
|
|
|
|
|
Dear all,
I have a problem when building an application for Pocket PC using eVC 3.0
Here is some code:
hr = CLSIDFromProgID(POA_OBJECT, &clsid);<br />
if (FAILED(hr))<br />
{<br />
AfxMessageBox(_T("Fail to load CLSID"));<br />
} else {<br />
hr = CoCreateInstance(clsid, NULL, CLSCTX_INPROC_SERVER, IID_IPOutlookApp, (LPVOID *) &(polApp));<br />
if (FAILED(hr))<br />
{<br />
err = GetLastError();<br />
sprintf(str,"Fail to load CoCreateInstance %d",err);<br />
AfxMessageBox((CString)str);<br />
} <br />
}
I got error message:
Linking...<br />
ImportFromPOOM.obj : error LNK2001: unresolved external symbol _IID_IPOlItems<br />
ImportFromPOOM.obj : error LNK2001: unresolved external symbol _IID_IPOutlookApp<br />
X86Dbg/TimeMAX.exe : fatal error LNK1120: 2 unresolved externals<br />
Error executing link.exe.<br />
Creating browse info file...
I try to find some answers on news groups and did following these guides by adding:
#define INITGUID
#include "pimstore.h"
And when I insert this line
#include "initguid.h"
I got more error messages
Linking...<br />
ImportFromPOOM.obj : error LNK2005: _CLSID_Application already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _CLSID_Folder already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _CLSID_CityItem already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _CLSID_AppointmentItem already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _CLSID_TaskItem already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _CLSID_ContactItem already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _CLSID_Items already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _CLSID_Recipients already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _CLSID_Recipient already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _CLSID_RecurrencePattern already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _CLSID_TimeZone already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _CLSID_Exceptions already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _CLSID_Exception already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _LIBID_PocketOutlook already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _IID_IPOutlookApp already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _IID_IFolder already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _IID_ICity already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _IID_IAppointment already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _IID_ITask already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _IID_IContact already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _IID_IPOlItems already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _IID_IPOutlookItemCollection already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _IID_IRecipients already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _IID_IPOlRecipient already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _IID_IRecipient already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _IID_IRecurrencePattern already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _IID_ITimeZone already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _IID_IExceptions already defined in ChildView.obj<br />
ImportFromPOOM.obj : error LNK2005: _IID_IException already defined in ChildView.obj<br />
X86Dbg/TimeMAX.exe : fatal error LNK1169: one or more multiply defined symbols found<br />
Error executing link.exe.<br />
Creating browse info file...
Could you please give me an advice.
Thank you very much for your help.
-Kien Bui
|
|
|
|
|
I solve the problem by inserting the following lines at the top of the application's header file (I include it in other files as needed):
#include "resource.h"
#include <comdef.h>
#include <pimstore.h>
_COM_SMARTPTR_TYPEDEF(IPOutlookApp, __uuidof(IPOutlookApp));
_COM_SMARTPTR_TYPEDEF(IAppointment, __uuidof(IAppointment));
_COM_SMARTPTR_TYPEDEF(ITask, __uuidof(ITask));
Then, on the application cpp file:
#include "stdafx.h"
#include "MainFrm.h"
#include <initguid.h>
#include "Application.h"
IPOutlookAppPtr g_pPoomApp;
The linker does not complain...
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
Hi everybody,
Thought it best to post this message here.
Iv'e been programming in VB.Net for about a year now (Mainly Windows applications). My boss now wants me to start developing mobile appliations. Just want some advice on where to start studying.
Would you suggest I continue to learn to do it in VB.Net or Embedded Visual Basic. The only reason I ask this is that there seems to be more documentation available for Embedded VB.
Many thanks
|
|
|
|
|
Hi
I recommed to use VB.net; there is no a big difference etween mobile and desktop apps in .et framework
eVB seems to have more docs ;
because the MSDN docs are for both .net framework and the compact framework no separation here
if u move to eVB u will be downgrading ur skills ; there is no types there [all variables are variant] no Try/Catch [just on error]
|
|
|
|
|
HI~
Is there any function in eVC++ which can pass some parameters to a running C# program?
"CreateProcess" can pass some parameters as a argument when a process start. However, how about the process is running?
Thanks~
|
|
|
|
|
I don't know about C#, but in C/C++ you can use WM_COPYDATA .
--
The Blog: Bits and Pieces
|
|
|
|
|
I'm thinking of automatically configure the 802.11 wireless network without use the standard windows wizard.
Can any expert tell me which kind of steps and APIs I should use to achieve this object.
Thanks
|
|
|
|
|
I'm doing Embedded Development using Visual C#, VS.NET 2003 & PPC 2003 SE Emulator. I have a TextBox Control and I want to change the BackColor of it when someone clicks on it. Apparently Windows Forms Designer doesn't have the Click Event on the list of events available on the Windows Forms Designer but you can generate it from within the Code Editor. The Code Editor gives you the "Click" property when you type "." after the TextBox's name and then, after you type "+=" it detects that you want to generate an event handler displays a tooltip suggesting the rest of the line as in "new EventHandler(textBoxSearch_Click); (Press TAB to insert)". When you do press TAB it generates the new "EventHandler..." line and highlights "textBoxSearch_Click" and gives you another "(Press TAB to insert)" tooltip which will generate the "textBoxSearch_Click" handler in the current Form class. I put my code in the handler but nothing happens when I click on it. I ran it through the debugger putting a breakpoint inside the handler and nothing at all!! The program behaves as if there is no click event handler on the TextBox. Note that all the other event handlers for my other controls on the form work fine. But those other event handlers where generated through the Windows Forms Designer. Any suggestions?? Ideas??
TIA
George Papadopoulos
Cosine Consultants LTD
|
|
|
|
|
HI~
In WinCE (pocket pc), how to set a window to scrollable in vertical and honzontal direction?
Thanks
|
|
|
|
|
I'd like to manage my Pocket PC from Desktop computer. For example to create file, or to delete it from Pocket PC. What should i use? Sockets? Or may be i can work with pocket pc like with a disket or any other driver by using the api functions like (CreateFile, DeleteFile)?
|
|
|
|
|
Yes, you can use RAPI (Remote Application Programming Interface wich have all the functions like CeReadFile, CeCreateFile, ...
Take a look at the MSDN for complete documentation.
Anonymous wrote:
For example to create file, or to delete it from Pocket PC
This works the other way: from within a program on your desktop computer you can delete or create files on your PocketPC. Not the other way.
Hope this helps
|
|
|
|
|
when i am writing few assembly language programs, after assembling i found .lnk and .obj files.
what the .lnk files hold and how they r built?. why there is change in opcodes of the instructions?.
Example for Mov 70h,#29h the opcode there is 757029
but for mov r1,#20h. it is giving some other opcodes.
why there is a change in this?.
ComputerNewton
|
|
|
|
|
Hi,
I am more of an embedded programmer so I this may not be correct for your situation but this is my experience from the past.
'.lnk' files are normally link files, they tell the linker how to join (link) different modules of code, in the old days programmers wrote their own link files, but it is often done by the programming environment now.
'.obj' files are object files, they are intermediate files generated from the aseembler prior to being linked together to form the final program.
Op Code
From your example 'Mov 70h,#29h', 75 will be the 'op code' for the instruction 'Mov', the source & destination are added to the end of it ie 75,70,29 = 757029
So the result for 'mov r1,#20h' will be 75,??,20 where ?? = the address (index) of r1.
Hope this helps a bit.
Ali
|
|
|
|
|
To all Gurus,
How can I get a handle to the window of item on the toay screen.
I want to refresh a today screen. But this refresh is NOT triggerred by any user input like a Tap etc but from within a DLL.
Can I send a message to the window ? but in that case I would need a handle to the window.
I know the Class Name and Window Name so how can I post a message to the window to refresh?
any kind of Help will be highly appreciated.
-SMO
|
|
|
|
|
FindWindow returns a handle to a window if you know the class name and window name
HWND FindWindow(
LPCTSTR lpClassName,
LPCTSTR lpWindowName
);
Friendly regards
|
|
|
|
|
GDvay,
Thanks a lot lof replying.
I had tried that (did not work) , There is a problem with find window.
FindWindow doesn't seem to work for The items on the today screen.
I am not sure but it could be because the items on the today screen are child windows and findWindow returns only parent windows. I am not sure whats the parent window.
Have you tried this before ? Do you know of any work around.
I am at a dead stop here.
SMOH
|
|
|
|
|
Hi~
Does the Windows XP connection firewall influence the traffic of ActiveSync?
Thanks~
|
|
|
|
|
Hi, i need to upload about 500 .jpg files to my pocket to be use by my application. Is there a way to compressed such files to lessen memory use, thanks
|
|
|
|
|
jpeg is already a compressed format, all you can do is increase the compression factor (resulting in lower picture quality of course).
...cmk
Save the whales - collect the whole set
|
|
|
|
|
Dear Experts,
I am a novice student programmer who is touching Embedded Visual C++ for the first time in my life. (Previously only learnt BASIC and Visual Basic).
Currently, I am involved in this project to this simple pda to pda wireless communication. I am currently stuck at the server side of the communication program. (The client program has been written and tested to be working well).
The problem with the server side is that the program does not seems to execute the OnAccept function of the Listening socket(
although it jolly well could create a socket, listen for connection and seems to make the client program aware of its presence
by enable the client able to establish connection with the server whenever the client is attempting to connect the same port
that the socket is listening to). By not doing so, I am unable to create another client socket for communication. (Came to this
conclusion as neither results I have put in the function has appear when excuted)
I have declared the following Classes:
CServerApp (By default generated)
CServerDlg (By default generated)
CListenSocket (Class for the listening scoket. Base class: CSocket)
CLinkSocket (Class for the Client scoket. Base class: CSocket)
Member Variables (Only for the class CServerDlg, the rest does not have any)
IDC_cmdListen
Function: Listen for connection
Type: CButton
Member: m_bListen
IDC_cmdDisConnect
Function: Disconnect current connection
Type: CButton
Member: m_bDisconnect
IDC_cmdStop
Function: Stop all server service
Type: CButton
Member: m_bStop
IDC_Port
Function: hold the value of the port name
Type: int
Member: m_sPort
IDC_Status
Function: hold the value of the text meant for a status screen
Type: CString
Member: m_sStatus
|
|
|
|
|
#if !defined(AFX_LISTENSOCKET_H__E3F3638D_86D1_4A2D_B54C_87F2197FF509__INCLUDED_)
#define AFX_LISTENSOCKET_H__E3F3638D_86D1_4A2D_B54C_87F2197FF509__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// ListenSocket.h : header file
//
#ifndef _LISTENSOCKET_H__
#define _LISTENSOCKET_H__
/////////////////////////////////////////////////////////////////////////////
// CListenSocket command target
class CServerDlg;
class CListenSocket : public CSocket
{
DECLARE_DYNAMIC(CListenSocket);
// Attributes
public:
CListenSocket(CServerDlg* pDlg);
CServerDlg* m_pDlg;
virtual ~CListenSocket();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CListenSocket)
public:
virtual void OnAccept(int nErrorCode);
//}}AFX_VIRTUAL
// Generated message map functions
//{{AFX_MSG(CListenSocket)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
// Implementation
protected:
//virtual void OnAccept(int nErrorCode);
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif
#endif
// !defined(AFX_LISTENSOCKET_H__E3F3638D_86D1_4A2D_B54C_87F2197FF509__INCLUDED_)
|
|
|
|
|
// ListenSocket.cpp : implementation file
//
#include "stdafx.h"
#include "resource.h"
#include "ListenSocket.h"
#include "ServerDlg.h"
#include "Server.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CListenSocket
CListenSocket::CListenSocket(CServerDlg* pDlg)
{
m_pDlg = pDlg;
}
// CListenSocket member functions
CListenSocket::~CListenSocket()
{
}
// Do not edit the following lines, which are needed by ClassWizard.
#if 0
BEGIN_MESSAGE_MAP(CListenSocket, CSocket)
//{{AFX_MSG_MAP(CListenSocket)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
#endif // 0
IMPLEMENT_DYNAMIC (CListenSocket, CSocket)
/////////////////////////////////////////////////////////////////////////////
void CListenSocket::OnAccept(int nErrorCode)
{
CSocket::OnAccept(nErrorCode);
m_pDlg->pAccept();
}
|
|
|
|
|
#if !defined(AFX_LINKSOCKET_H__12D75D46_F7FA_4860_B853_6F83CAB47C85__INCLUDED_)
#define AFX_LINKSOCKET_H__12D75D46_F7FA_4860_B853_6F83CAB47C85__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// LinkSocket.h : header file
//
#ifndef _LINKSOCKET_H__
#define _LINKSOCKET_H__
/////////////////////////////////////////////////////////////////////////////
// CLinkSocket command target
class CServerDlg;
class CLinkSocket : public CSocket
{
DECLARE_DYNAMIC(CLinkSocket);
// Attributes
public:
CLinkSocket(CServerDlg* m_pDlg);
CServerDlg* m_pDlg;
virtual ~CLinkSocket();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLinkSocket)
public:
virtual void OnReceive(int nErrorCode);
//}}AFX_VIRTUAL
// Generated message map functions
//{{AFX_MSG(CLinkSocket)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
// Implementation
protected:
//virtual void OnReceive(int nErrorCode);
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif
#endif
// !defined(AFX_LINKSOCKET_H__12D75D46_F7FA_4860_B853_6F83CAB47C85__INCLUDED_)
|
|
|
|