Hi, I'd like to develop an offline mobile application that runs on all major smartphone (Android, iPhone, Windows etc.). I understand that each smartphone uses their own language (Objective-C, Java, .Net). Is there a way to code ONCE, then use the same code for all smartphones? If not all, at least the business-logic part of the code?
eight
Posts
-
Mobile application development strategy. Code ONCE, run everywhere? -
How to do a select statement from two or more tables?Exactly what I need. Thanks :)
-
How to do a select statement from two or more tables?Hi, What I have is table Student and Poke Student
------------------------------------
Student_Id(PK) | Name1 Alex
2 Bob
3 CavemanPoke
----------------------------------------------------------
Poke_Id(PK) | Poke_Giver_Id(FK) | Poke_Receiver_Id(FK)1 1 2
2 1 2
3 2 1What I'm trying to get is something like this.
----------------------------------------------------
Poke_Id | Poke_Giver_Name | Poke_Receiver_Name1 Alex Bob
2 Alex Bob
3 Bob AlexPlease help.
-
Audit Trail : Single table for all users or multiple table per userHi, I'm designing an audit trail database to log user's activities. Should I create a single table to log all user activities e.g:
Id(PK) | UserId(FK) | ActionTime | ActionTaken
or, multiple tables; each per user e.g:
Table Name : AuditTrail_UserId
Id(PK) | ActionTime | ActionTaken
I'd like to be able to do 2 kind of text search though, 1. Search single user activities 2. Search all user activities
-
Developing Lotus Notes Plugin : What does "navigate to the JRE in the Notes installation folder" means?Under my "C:\Program Files\IBM\Lotus\Notes", there are folders 1.Data 2.framework 3.icc 4.jvm 5.license 6.MUI 7.ndext 8.properties 9.xmlschemas 10.xsp Tried windows search, but there's no folder name with "JRE" under my Notes installation folder. :sigh:
-
Developing Lotus Notes Plugin : What does "navigate to the JRE in the Notes installation folder" means? -
Saving a web page as imageThanks Ravi
-
Saving a web page as imageHi. I'm trying to save a web page as bitmap. I've created a simple Browser Helper Object but now I'm stuck at how to convert the web page to image. I've tried creating a bitmap screenshot of the browser but that didn't work with pages that require scrolling. Please help.
-
Moving from VS2008 to VS2010, now 'intrin.h' fails to compileI didn't include 'intrin.h' in my code.
-
Moving from VS2008 to VS2010, now 'intrin.h' fails to compileThe project compiles correctly in VS2008, but not with 2010. The error is 1>c:\program files\microsoft visual studio 10.0\vc\include\intrin.h(1065): error C2143: syntax error : missing ')' before 'constant' 1>c:\program files\microsoft visual studio 10.0\vc\include\intrin.h(1065): error C2143: syntax error : missing ';' before 'constant' 1>c:\program files\microsoft visual studio 10.0\vc\include\intrin.h(1065): error C2059: syntax error : ')' pointing to
__MACHINEI(void __cpuid(int a[4], int b))
__MACHINEI(void __cpuidex(int a[4], int b, int c)) <== this is the line that's giving me compile error
__MACHINEI(unsigned __int64 __readpmc(unsigned long a))Any ideas?
-
Syntax to send contact information by SMSI'm trying to manually compose an SMS to mimic what "Send contact via SMS" on my Sony Ericcson is doing. How do I do this? Google points me towards sending VCard but I don't think my cheap old Nokia could handle VCard.
-
How to write a function that calls a secondary thread and returns back to the main thread?Thanks for the link. Helps a lot :)
-
How to write a function that calls a secondary thread and returns back to the main thread?Hi This is more of a code architecture question. I'll try my best to explain what I'm trying to do. I need to create a function that have access to a secondary thread, process it, and returns back to the primary thread. Let say class B has FunctionX.
bool B::FunctionX(LPCTSTR lpszValue, CString& strResponse)
{
//Access the secondary thread to process lpszValue and assign strResponse;
//Returns true if process successful and false if process fail
}Then, class CMyView will call FunctionX like so
void CMyView::Foo()
{
B myB;
CString str;
if(myB.FunctionX(TEXT("TestValue"), str)
{
AfxMessagebox(TEXT("Oh Yeah!"));
}
else
{
AfxMessageBox(TEXT("Boohooo!"));
}
} -
Lists.asmx GetList failed with error 12044Solved it. I found out that if SharePoint server returns (12044)ERROR_WINHTTP_CLIENT_AUTH_CERT_NEEDED, just resend the content again but this time without the header. Kinda hackish, but works for me :doh:
-
Lists.asmx GetList failed with error 12044How do I change this to include Windows authentication instead? Do I need to send different windows authentication for every request?
-
Lists.asmx GetList failed with error 12044Hi, I'm sending this to my sharepoint server and it keeps on failing with error 12044 (ERROR_WINHTTP_CLIENT_AUTH_CERT_NEEDED).
POST /_vti_bin/Lists.asmx HTTP/1.1
Content-Type: text/xml; charset=utf-8
Authorization: Basic <Username:Password base64encoded>
User-Agent: MySimpleApplication
Host: <MySharePointServer>
Content-Length: 449
Cache-Control: no-cache
SOAPAction: "http://schemas.microsoft.com/sharepoint/soap/GetList"<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
soap:Body
<GetList xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<listName>ListName</listName>
</GetList>
</soap:Body>
</soap:Envelope> -
About array of BSTRI have this function..
void MyFunction(BSTR* param, int nArraySize);
and I'm supposed to pass an array of string ("String1", "String2", "String3") as param. How can I do this?
-
Passing Array of Strings as BSTR*Arun, did you manage to find a way to do it?
-
How to load custom images on RibbonX?I'm trying to use my own image (.png) as a ribbon button. I've managed to place a windows icon on my custom button using this code <code> STDMETHODIMP CConnect::GetCustomUI(BSTR RibbonID, BSTR * RibbonXml) { if (!RibbonXml) return E_POINTER; *RibbonXml = SysAllocString( L"<customUI xmlns=\"http://schemas.microsoft.com/office/2006/01/customui\\"\\>" L"<ribbon>" L"<officeMenu>" L"<menu idMso=\"FileSendMenu\">" L"<button id=\"OfficeButton1\" imageMso=\"HappyFace\" label=\"Happy Print\" description=\"Prints a random joke in the footer of each document\" onAction=\"ButtonClicked\"/>" L"</menu>" L"</officeMenu>" L"</ribbon>" L"</customUI>" ); return (*RibbonXml ? S_OK : E_OUTOFMEMORY); } </code> From what I've googled, I'm supposed to create GetImage or LoadImage callbacks. How to do this?
-
Generic Office 2007 _Application Interface classToo bad. I was hoping for an _Application interface that's being shared among all Office Apps (eg:_CommandBars). Does this mean I have to create individual dll for each Office App? I saw a few com addin that's available on my Word, Excel and PowerPoint. I don't think they have 3 separate dlls. Any idea how they are doing it?