Click here to Skip to main content
15,906,766 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Which edit box was clicked? Pin
Oliver12329-Oct-06 13:18
Oliver12329-Oct-06 13:18 
AnswerRe: Which edit box was clicked? Pin
Mark Salsbery29-Oct-06 14:28
Mark Salsbery29-Oct-06 14:28 
QuestionOwner Drawn Pin
BlitzPackage28-Oct-06 13:28
BlitzPackage28-Oct-06 13:28 
AnswerRe: Owner Drawn Pin
Christian Graus28-Oct-06 13:37
protectorChristian Graus28-Oct-06 13:37 
GeneralRe: Owner Drawn Pin
BlitzPackage28-Oct-06 13:41
BlitzPackage28-Oct-06 13:41 
GeneralRe: Owner Drawn Pin
Jörgen Sigvardsson29-Oct-06 9:17
Jörgen Sigvardsson29-Oct-06 9:17 
AnswerRe: Owner Drawn Pin
peterchen29-Oct-06 4:18
peterchen29-Oct-06 4:18 
QuestionRasSetEntryProperties runtime error. Access Violation Pin
cfo5ter28-Oct-06 11:11
cfo5ter28-Oct-06 11:11 
I'm getting an access violation in my code when I'm creating a dial entry in the default phonebook. I've tried so many different ways to load the data into the operators that are being passed to the RaasSetEntryProperties that I think I've gotten to buried in the problem and need to post it for some help. I'm a rookie, so if there is other portions of my code below, please feel free to school me. I've debugged enough with stop point that I know that the RasSetEntryProperties call is causing the error within the RASAPI. I am calling the funtion from the constructor of a class I'm creating, if that helps.

LPRASENTRY myRasEntry = new RASENTRY;
myRasEntry->dwSize = sizeof(RASENTRY);
lstrcpy(myRasEntry->szLocalPhoneNumber, "6479008" );
lstrcpy(myRasEntry->szDeviceName, TheDeviceName);
lstrcpy(myRasEntry->szDeviceType, "RASDT_Modem");
myRasEntry->dwFramingProtocol = RASFP_Ppp;
myRasEntry->dwfNetProtocols = RASNP_Ip;
myRasEntry->dwfOptions = 0;
myRasEntry->dwfOptions = RASEO_IpHeaderCompression | RASEO_ModemLights | RASEO_SwCompression;
myRasEntry->dwType = RASET_Phone;


//Create Phonebook entry called "Remote"
//DWORD dwAnotherBufferSize = sizeof(RASENTRY);
DWORD dwAnotherBufferSize = 0;
char ConnectionName[7] = "Remote";
(void) RasGetEntryProperties(NULL, NULL, NULL, &dwAnotherBufferSize, NULL, NULL);
dwErr = RasSetEntryProperties(NULL, &ConnectionName[7], myRasEntry, dwAnotherBufferSize, NULL, 0);

Thank you,
Chuck Foster
AnswerRe: RasSetEntryProperties runtime error. Access Violation Pin
PJ Arends28-Oct-06 11:46
professionalPJ Arends28-Oct-06 11:46 
AnswerRe: RasSetEntryProperties runtime error. Access Violation Pin
PJ Arends28-Oct-06 11:56
professionalPJ Arends28-Oct-06 11:56 
GeneralRe: RasSetEntryProperties runtime error. Access Violation Pin
cfo5ter28-Oct-06 12:40
cfo5ter28-Oct-06 12:40 
GeneralRe: RasSetEntryProperties runtime error. Access Violation Pin
PJ Arends28-Oct-06 12:49
professionalPJ Arends28-Oct-06 12:49 
GeneralRe: RasSetEntryProperties runtime error. Access Violation Pin
cfo5ter28-Oct-06 13:19
cfo5ter28-Oct-06 13:19 
GeneralRe: RasSetEntryProperties runtime error. Access Violation Pin
PJ Arends28-Oct-06 21:31
professionalPJ Arends28-Oct-06 21:31 
Questioncombining chars Pin
legit28-Oct-06 9:42
legit28-Oct-06 9:42 
AnswerRe: combining chars Pin
Mohammad A Gdeisat28-Oct-06 10:28
Mohammad A Gdeisat28-Oct-06 10:28 
GeneralRe: combining chars Pin
Mark Salsbery29-Oct-06 7:38
Mark Salsbery29-Oct-06 7:38 
GeneralRe: combining chars Pin
Mohammad A Gdeisat29-Oct-06 10:18
Mohammad A Gdeisat29-Oct-06 10:18 
AnswerRe: combining chars Pin
S Douglas28-Oct-06 22:52
professionalS Douglas28-Oct-06 22:52 
AnswerRe: combining chars Pin
Mark Salsbery29-Oct-06 6:42
Mark Salsbery29-Oct-06 6:42 
QuestionLoad image Pin
Kiethnt28-Oct-06 8:55
Kiethnt28-Oct-06 8:55 
AnswerRe: Load image Pin
Hamid_RT28-Oct-06 9:09
Hamid_RT28-Oct-06 9:09 
QuestionDynamic Context Menus Pin
Mohammad A Gdeisat28-Oct-06 7:25
Mohammad A Gdeisat28-Oct-06 7:25 
AnswerRe: Dynamic Context Menus Pin
Mark Salsbery28-Oct-06 8:35
Mark Salsbery28-Oct-06 8:35 
GeneralRe: Dynamic Context Menus Pin
Mohammad A Gdeisat28-Oct-06 9:36
Mohammad A Gdeisat28-Oct-06 9:36 

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.