Click here to Skip to main content
16,006,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Running program more than 1 time Pin
Rage1-May-03 23:51
professionalRage1-May-03 23:51 
GeneralRe: Running program more than 1 time Pin
JensB2-May-03 0:15
JensB2-May-03 0:15 
GeneralRe: Running program more than 1 time Pin
Rage2-May-03 1:24
professionalRage2-May-03 1:24 
GeneralRe: Running program more than 1 time Pin
JensB2-May-03 1:49
JensB2-May-03 1:49 
GeneralRe: Running program more than 1 time Pin
JensB2-May-03 2:26
JensB2-May-03 2:26 
GeneralRe: Running program more than 1 time Pin
David Crow2-May-03 4:36
David Crow2-May-03 4:36 
QuestionDialup entries directory? Pin
Jump_Around1-May-03 23:34
Jump_Around1-May-03 23:34 
AnswerRe: Dialup entries directory? Pin
David Crow2-May-03 4:41
David Crow2-May-03 4:41 
Why do you need a path to the folder? Can't you just use the Rasxxx() functions directly?

Here is an example of enumerating the RAS entries:

lpRasEntryName         = (LPRASENTRYNAME)GlobalAlloc(GPTR, sizeof(RASENTRYNAME));
lpRasEntryName->dwSize = sizeof(RASENTRYNAME);
nRet = RasEnumEntries(NULL, NULL, lpRasEntryName, &cb, &cEntries);
if (ERROR_BUFFER_TOO_SMALL == nRet)
{
    lpRasEntryName         = (LPRASENTRYNAME)GlobalAlloc(GPTR, cb);
    lpRasEntryName->dwSize = sizeof(RASENTRYNAME);
}
 
// Calling RasEnumEntries to enumerate the phone-book entries    
nRet = RasEnumEntries(NULL, NULL, lpRasEntryName, &cb, &cEntries);
 
if (nRet != ERROR_SUCCESS)
{
    TRACE("RasEnumEntries failed: Error %d\n", nRet);
}
else
{
    TRACE("Phone-book entries in the default phone book:\n\n");
    
    for(i = 0; i < cEntries; i++)
    {
        TRACE("%s\n", lpRasEntryName->szEntryName);
        lpRasEntryName++;
    }
}

GeneralRe: Dialup entries directory? Pin
Jump_Around2-May-03 21:47
Jump_Around2-May-03 21:47 
GeneralRe: Dialup entries directory? Pin
David Crow5-May-03 3:44
David Crow5-May-03 3:44 
GeneralDLL exported function Signature Pin
vikramlinux1-May-03 23:06
vikramlinux1-May-03 23:06 
GeneralRe: DLL exported function Signature Pin
User 66581-May-03 23:21
User 66581-May-03 23:21 
GeneralRe: DLL exported function Signature Pin
vikramlinux1-May-03 23:25
vikramlinux1-May-03 23:25 
GeneralRe: DLL exported function Signature Pin
David Crow2-May-03 4:43
David Crow2-May-03 4:43 
GeneralRe: DLL exported function Signature Pin
pankajdaga1-May-03 23:51
pankajdaga1-May-03 23:51 
GeneralRe: DLL exported function Signature Pin
John R. Shaw2-May-03 19:07
John R. Shaw2-May-03 19:07 
GeneralRe: DLL exported function Signature Pin
David Crow5-May-03 3:46
David Crow5-May-03 3:46 
GeneralRe: DLL exported function Signature Pin
John R. Shaw5-May-03 7:05
John R. Shaw5-May-03 7:05 
GeneralDLL question...driving me crazy though! Pin
pankajdaga1-May-03 22:58
pankajdaga1-May-03 22:58 
GeneralRe: DLL question...driving me crazy though! Pin
John R. Shaw2-May-03 19:26
John R. Shaw2-May-03 19:26 
GeneralRe: DLL question...driving me crazy though! Pin
pankajdaga3-May-03 3:43
pankajdaga3-May-03 3:43 
Generalcreate a sine wave and sample it Pin
flora_k1-May-03 22:54
flora_k1-May-03 22:54 
GeneralRe: create a sine wave and sample it Pin
jmkhael2-May-03 3:06
jmkhael2-May-03 3:06 
GeneralRe: create a sine wave and sample it Pin
jhaga2-May-03 3:59
professionaljhaga2-May-03 3:59 
GeneralRe: create a sine wave and sample it Pin
flora_k4-May-03 22:49
flora_k4-May-03 22:49 

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.