Click here to Skip to main content
15,914,481 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: Reinstall Pocket PC Pin
Mike Dimmick27-Jan-04 4:51
Mike Dimmick27-Jan-04 4:51 
GeneralCoCreateFreeThreadedMarshaler in PPC2003 Pin
bdeberny27-Jan-04 0:08
bdeberny27-Jan-04 0:08 
QuestionFree printer libraries for Windows CE? Pin
Mahesh Varma26-Jan-04 19:44
Mahesh Varma26-Jan-04 19:44 
AnswerRe: Free printer libraries for Windows CE? Pin
CJCraft.com13-Feb-04 9:38
CJCraft.com13-Feb-04 9:38 
GeneralAny C# VS2003 Code for Pocket PC Pin
camasmartin26-Jan-04 11:08
camasmartin26-Jan-04 11:08 
GeneralRe: Any C# VS2003 Code for Pocket PC Pin
Mahesh Varma26-Jan-04 19:57
Mahesh Varma26-Jan-04 19:57 
GeneralRe: Any C# VS2003 Code for Pocket PC Pin
camasmartin27-Jan-04 11:05
camasmartin27-Jan-04 11:05 
GeneralRead/write INI files with eVC++4 Pin
Rico Salfer26-Jan-04 4:52
Rico Salfer26-Jan-04 4:52 
Hi,

I'm programming with eVC++ 4 and have the following problem:

My program should use an INI file to read and write several values. To read/write I will use the functions GetProfileString and WriteProfileString (class CWinApp). But each call of this functions failed.

I use the following code (exactly like MSDN and eVC++ helpfile) :

BOOL CMyApp::InitInstance()
{
free((void*) m_pszProfileName );
m_pszProfileName = _tcsdup(_T("/Temp/COMConn.ini"));

...
}

void CDlgClass::ReadIniFile()
{
CString csValue;

...
AfxGetApp()->WriteProfileString(_T("Connect"), // Section
_T("Name"), // Key
_T("MyConnect") ); // Value to write

csValue = AfxGetApp()->GetProfileString(_T("Connect"), // Section
_T("Name"), // Key
_T("Error") ); // Default

...
}


The ini file /Temp/COMConn.ini exists, but each call of WriteProfileString() returns FALSE and each call of GetProfileString() returns "Error".
Why failed every access ?

Please help me (fast).

Thank You

Rico
GeneralRe: Read/write INI files with eVC++4 Pin
João Paulo Figueira26-Jan-04 5:13
professionalJoão Paulo Figueira26-Jan-04 5:13 
General__try / __finally Pin
IceBerG7125-Jan-04 23:58
IceBerG7125-Jan-04 23:58 
GeneralAdding a new menu option in Calendar of Pocket PC Pin
A_goyal25-Jan-04 21:33
A_goyal25-Jan-04 21:33 
GeneralRe: Adding a new menu option in Calendar of Pocket PC Pin
João Paulo Figueira25-Jan-04 22:11
professionalJoão Paulo Figueira25-Jan-04 22:11 
GeneralRe: Adding a new menu option in Calendar of Pocket PC Pin
João Paulo Figueira26-Jan-04 1:06
professionalJoão Paulo Figueira26-Jan-04 1:06 
GeneralA question about displays Pin
LunaticFringe23-Jan-04 13:13
LunaticFringe23-Jan-04 13:13 
GeneralRe: A question about displays Pin
João Paulo Figueira24-Jan-04 6:53
professionalJoão Paulo Figueira24-Jan-04 6:53 
GeneralRe: A question about displays Pin
LunaticFringe28-Jan-04 23:02
LunaticFringe28-Jan-04 23:02 
GeneralPocket PC Pocket Word Pin
annum22-Jan-04 16:53
annum22-Jan-04 16:53 
GeneralRe: Pocket PC Pocket Word Pin
Mahesh Varma26-Jan-04 19:49
Mahesh Varma26-Jan-04 19:49 
GeneralRe: Pocket PC Pocket Word Pin
annum11-Feb-04 7:40
annum11-Feb-04 7:40 
GeneralMenues in Dialogs Pin
Like2Byte22-Jan-04 8:45
Like2Byte22-Jan-04 8:45 
GeneralRe: Menues in Dialogs Pin
Like2Byte22-Jan-04 15:38
Like2Byte22-Jan-04 15:38 
QuestionApp licensing/copy protection on PDA's? Pin
LunaticFringe22-Jan-04 6:40
LunaticFringe22-Jan-04 6:40 
Questionmy app just disappers?!? Pin
slomoman21-Jan-04 0:49
slomoman21-Jan-04 0:49 
QuestionDoes Update Statement works??? Pin
Rassul Yunussov21-Jan-04 0:36
Rassul Yunussov21-Jan-04 0:36 
AnswerRe: Does Update Statement works??? Pin
João Paulo Figueira21-Jan-04 1:24
professionalJoão Paulo Figueira21-Jan-04 1:24 

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.