Is there any way to access ADOCE.NET in VC++ code? Thanks in advance., -Kien Bui SynerWork Software. http://www.synerwork.com
Bui Huy Kien
Posts
-
ADOCE.NET -
Problem when building app with POOMDear 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); if (FAILED(hr)) { AfxMessageBox(_T("Fail to load CLSID")); } else { hr = CoCreateInstance(clsid, NULL, CLSCTX_INPROC_SERVER, IID_IPOutlookApp, (LPVOID *) &(polApp)); if (FAILED(hr)) { err = GetLastError(); sprintf(str,"Fail to load CoCreateInstance %d",err); AfxMessageBox((CString)str); } }
I got error message:Linking... ImportFromPOOM.obj : error LNK2001: unresolved external symbol _IID_IPOlItems ImportFromPOOM.obj : error LNK2001: unresolved external symbol _IID_IPOutlookApp X86Dbg/TimeMAX.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe. 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 messagesLinking... ImportFromPOOM.obj : error LNK2005: _CLSID_Application already defined in ChildView.obj ImportFromPOOM.obj : error LNK2005: _CLSID_Folder already defined in ChildView.obj ImportFromPOOM.obj : error LNK2005: _CLSID_CityItem already defined in ChildView.obj ImportFromPOOM.obj : error LNK2005: _CLSID_AppointmentItem already defined in ChildView.obj ImportFromPOOM.obj : error LNK2005: _CLSID_TaskItem already defined in ChildView.obj ImportFromPOOM.obj : error LNK2005: _CLSID_ContactItem already defined in ChildView.obj ImportFromPOOM.obj : error LNK2005: _CLSID_Items already defined in ChildView.obj ImportFromPOOM.obj : error LNK2005: _CLSID_Recipients already defined in ChildView.obj ImportFromPOOM.obj : error LNK2005: _CLSID_Recipient already defined in ChildView.obj ImportFromPOOM.obj : error LNK2005: _CLSID_RecurrencePattern already defined in ChildView.obj ImportFromPOOM.obj : error LNK2005: _CLSID_TimeZone already defined in ChildView.obj ImportFromPOOM.obj : error LNK2005: _CLSID_Exceptions already defined in ChildView.obj ImportFromPOOM.obj : error LNK2005: _CLSID_Exception already defined in ChildView.obj ImportFromPOOM.obj : error LNK2005: _LIBID_PocketOutlook already defined in ChildView.obj ImportFromPOOM.obj : error LNK2005: _IID_IPOutlookApp already defined in ChildView.obj ImportFromPOOM.obj : error LNK2005: _IID_IFolder already defined in ChildView.obj ImportFromPOOM.obj : error LNK2005: _IID_ICity already defined in ChildView.obj
-
How to make a setup that can install appropriate files on Pocket PC 2002 or 2003Dear all, I had developed a software that use Pocket Access database but the database file for Pocket PC 2002 does not work with Pocket PC 2003 and vice versa. My question is how to make a setup program that can detect which version of the OS on Pocket PC and install an appropriate database file on it? Thank you very much in advance. -Kien Bui
-
Error when porting to eVC 4.0 from 3.0I am porting my app to the Pocket PC 2003. Regards, -Kien Bui
-
Error when porting to eVC 4.0 from 3.0Dear all, I have an application written in eVC 3.0. Now I port it to eVC 4.0 but when I build it, I got the error error message below: Linking... corelibc.lib(pegwmain.obj) : error LNK2019: unresolved external symbol WinMain referenced in function WinMainCRTStartup ARMV4Rel/TimeMAX.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. TimeMAX.exe - 2 error(s), 0 warning(s) Can you please give me an advice to overtake the problem. Thank you very much! -Kien Bui
-
ADOCE for Window Mobile 2003Dear all, I am trying to port my application written in eVC 3.0 for Pocket PC 2002 to eVC 4.0 for Window Mobile 2003 but the eVC 4.0 does not support the ADOCE. Is there any way to overtake this problem? Thanks a lot in advance! -Kien Bui
-
How to show SIP area?Thank you very much! -Kien Bui
-
Defining the auto-complete dictionaryTake a look at this: http://www.codeproject.com/editctrl/smart_auto_completeasp.asp[^] Regards, -Kien Bui
-
How to show SIP area?Dear all, I am writting an application for Pocket PC 2002, using the Microsoft eVC 3.0. I want to show the Input Area (SIP) in a dialog but it does not appear despite I had tried to call two functions like:
SHFullScreen(((CFrameWnd*)AfxGetMainWnd())->GetActiveFrame()->GetSafeHwnd(), SHFS_SHOWSIPBUTTON);
AndSipShowIM(SIPF_ON);
Can anybody can show me what I did wrong? Thanks a lot! -
How to get View object from App class in MFCThank you very much! -Kien Bui
-
How to get View object from AppThank you very much! -Kien Bui
-
How to get View object from App class in MFCDear all, I writting an application using MFC in eVC 3.0. Now I need to access to the View object from the App class. Could you please tell me how. Thank you very much in advance. -Kien Bui
-
How to get View object from AppDear all, I writting an application using MFC. Now I need to access to the View object from the App class. Could you please tell me how. Thanks a lot in advance. -Kien Bui
-
Problem with Virtual List Control in the Emulator of Pocket PCThank you so much. You are very kind. Finally, I found that I had called the SetItem function in my code. Best regards, -Kien Bui
-
pocketPC installerYes, See the EzSetup Regards, -Kien Bui
-
Problem with Virtual List Control in the Emulator of Pocket PCNo, I do insert the LVS_OWNERDATA style when creating the List Control. Here is the code:
if(m_wndList.Create(WS_CHILD|WS_VISIBLE|LVS_OWNERDATA|LVS_SINGLESEL|LVS_REPORT|LVS_NOCOLUMNHEADER|LVS_NOSORTHEADER,CRect(0,0,243,224), this, MAIN_LIST)) { // Set List Control style to Full Row Select DWORD dwStyle = m_wndList.GetExtendedStyle(); dwStyle |= LVS_EX_FULLROWSELECT; m_wndList.SetExtendedStyle(dwStyle); } void CChildView::OnGetdispinfoList(NMHDR* pNMHDR, LRESULT* pResult) { LV_DISPINFO* pDispInfo = (LV_DISPINFO*)pNMHDR; // TODO: Add your control notification handler code here LV_ITEM* pItem= &(pDispInfo)->item; int iItemIndx = pItem->iItem; switch (g_nWorkingMode) { case 0: case 4: { CTimeRegItem *pListItem; pListItem = (CTimeRegItem*) m_arrayElements[iItemIndx]; if (pItem->mask & LVIF_TEXT) //valid text buffer? { switch (pItem->iSubItem) { case 0: //Fill in main text lstrcpy(pItem->pszText, pListItem->m_strID); break; case 1: //Fill in subitem 1 lstrcpy(pItem->pszText, pListItem->m_strDate); break; case 2: //Fill in subitem 2 lstrcpy(pItem->pszText, pListItem->m_strDescription); break; case 3: //Fill in subitem 3 lstrcpy(pItem->pszText, pListItem->m_strDuration); break; } } else if (pItem->mask & LVIF_IMAGE) { pItem->iImage = pListItem->m_nImage; } } break; case 1: { COtherListItem *pListItem; pListItem = (COtherListItem*) m_arrayElements[iItemIndx]; if (pItem->mask & LVIF_TEXT) //valid text buffer? { switch (pItem->iSubItem) { case 0: //Fill in main text lstrcpy(pItem->pszText, pListItem->m_strID); break; case 1: //Fill in subitem 1 lstrcpy(pItem->pszText, pListItem->m_strType); break; case 2: //Fill in subitem 2 lstrcpy(pItem->pszText, pListItem->m_strName); break; } } } break; case 2: case 3: { COtherListItem *pListItem; pListItem = (COtherListItem*) m_arrayElements[iItemIndx]; if (pItem->mask & LVIF_TEXT) //valid text buffer? { switch (pItem->iSubItem) { case 0: //Fill in main text lstrcpy(pItem->pszText, pListItem->m_strID); break; case 1: //Fill in subitem 1 lstrcpy(pItem->pszText, pListItem->m_strName); break; } } } break; } break; } *pRe
-
Problem with Virtual List Control in the Emulator of Pocket PCDear all, I had tried to use List Control in Virtual List mode using eVC 3.0. But I met a problem that I cannot solve. The problem is when I click on the list item of the List (my program run in the Pocket PC Emulator), I got an error message "Assertion failed. TestProg: File winctrl2.cpp, Line 479" But with that program, I run it on a Pocket PC, nothing happen when I click on List item. Please tell me what I did wrong. Thank you very much in advance.
-
CreatePolyRgnHi Rassul Yunussov, To draw a polygon. First, you must create an array of vertices for your polygon. And then call the Polygon function with two parameters: One is the array, and one is the number of vertices you want to draw. Here is the example to draw a filled triangle using Polygon function:
CBrush brushRed(RGB(255, 0, 0)); CBrush* pOriginBrush= pDC->SelectObject(&brushRed); CPoint pts[3]; pts[0].x = 1; pts[0].y = 1; pts[1].x = 1; pts[1].y = 100; pts[2].x = 100; pts[2].y = 100; pDC->Polygon(pts, 3); pDC->SelectObject(pOriginBrush);
Regards, -Kien Bui -
Pie chart program in eVCDear all, Microsoft does not provide function to draw a Pie chart, but I need it. I had tried to draw the pies and use floodfill code I had found in PocketPCDN.com, but this method is too slow. The QuickFill seem too complicated and I cannot port it to run on PocketPC. Can anybody provide me the efficient algorithm to draw pie chart? Thank you very much in advance. -Kien Bui
-
Problem with Virtual List ViewThanks. -BHKien