Click here to Skip to main content
16,005,697 members
Home / Discussions / Mobile
   

Mobile

 
GeneraleMbedded VC Pin
gUrM33T8-Apr-04 20:02
gUrM33T8-Apr-04 20:02 
GeneralRe: eMbedded VC Pin
gUrM33T8-Apr-04 20:44
gUrM33T8-Apr-04 20:44 
GeneralRe: eMbedded VC Pin
annjdsjdfgd9-Apr-04 10:29
sussannjdsjdfgd9-Apr-04 10:29 
GeneralRe: eMbedded VC Pin
gUrM33T9-Apr-04 15:13
gUrM33T9-Apr-04 15:13 
GeneralTablet PC ink recognition Pin
obadran8-Apr-04 12:35
obadran8-Apr-04 12:35 
GeneralPalm int to char* conversion help!!! Pin
the6e8-Apr-04 5:55
the6e8-Apr-04 5:55 
GeneralHTML based dialog for the Pocket PC Pin
yamusf8-Apr-04 3:57
yamusf8-Apr-04 3:57 
GeneralIni Files Pin
DonaldL7-Apr-04 22:52
DonaldL7-Apr-04 22:52 
How come the ini file functions are not working for me?

I have set the path and name of the ini file in the construction

CMyApp::CMyApp()
: CWinApp()
{


free((void*)m_pszProfileName);
m_pszProfileName=_tcsdup(_T("\\Program Files\\program\\SP.ini"));
}

Then in the main dialog I call the sample as is in the samples


BOOL CMyProgDlg::OnInitDialog()
{
CDialog::OnInitDialog();



CString strSection = "My Section\0";
CString strStringItem = "My String Item\0";
CString strIntItem = "My Int Item\0";

CWinApp* pApp = AfxGetApp();
pApp->InitApplication();



AfxMessageBox(pApp->m_pszProfileName);
// This displays the path just fine.


pApp->WriteProfileString(strSection, strStringItem, _T("test"));


CString strValue;
strValue = pApp->GetProfileString(strSection, strStringItem,_T("Not Found"));
ASSERT(strValue == "test");

AfxMessageBox(strValue);

// I get Not Found???



Any help would be appreciated.Smile | :)

GeneralRe: Ini Files Pin
João Paulo Figueira8-Apr-04 4:05
professionalJoão Paulo Figueira8-Apr-04 4:05 
GeneralGDI+ Pin
Rassul Yunussov7-Apr-04 22:42
Rassul Yunussov7-Apr-04 22:42 
QuestionHow can I reference to a web service at runtime from a PDA Pin
maithoa7-Apr-04 22:02
maithoa7-Apr-04 22:02 
General>Net Compact Framework DLLs Pin
User 9625787-Apr-04 19:59
User 9625787-Apr-04 19:59 
GeneralPocket PC 2003 emulator without VS .Net Pin
User 9625787-Apr-04 10:15
User 9625787-Apr-04 10:15 
GeneralRe: Pocket PC 2003 emulator without VS .Net Pin
João Paulo Figueira7-Apr-04 14:38
professionalJoão Paulo Figueira7-Apr-04 14:38 
GeneralMenu Pin
Rassul Yunussov6-Apr-04 22:33
Rassul Yunussov6-Apr-04 22:33 
GeneralRe: Menu Pin
João Paulo Figueira7-Apr-04 14:37
professionalJoão Paulo Figueira7-Apr-04 14:37 
GeneralRe: Menu Pin
Rassul Yunussov7-Apr-04 22:41
Rassul Yunussov7-Apr-04 22:41 
GeneralRe: Menu Pin
João Paulo Figueira8-Apr-04 3:57
professionalJoão Paulo Figueira8-Apr-04 3:57 
GeneralRe: Menu Pin
Rassul Yunussov8-Apr-04 7:41
Rassul Yunussov8-Apr-04 7:41 
GeneralPlease help, Internal Server Error 500 on ASP.Net Mobile Pin
irwansyah5-Apr-04 21:35
irwansyah5-Apr-04 21:35 
Generalmobile svg Pin
yvonneitt5-Apr-04 4:43
yvonneitt5-Apr-04 4:43 
Questionhow to convert from CTime to CString HELP Pin
rodneyk12-Apr-04 4:28
rodneyk12-Apr-04 4:28 
AnswerRe: how to convert from CTime to CString HELP Pin
João Paulo Figueira2-Apr-04 4:54
professionalJoão Paulo Figueira2-Apr-04 4:54 
GeneralHelp !!! Problem in calling webservice from PocketPC Pin
Anonymous31-Mar-04 23:21
Anonymous31-Mar-04 23:21 
QuestionQuick Question... Internet? Pin
Anonymous31-Mar-04 12:56
Anonymous31-Mar-04 12:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.