|
Which value has dwRet upon error?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thank you for reply.
error is: "Cannot find the phone book entry."
this error is only occur in win98.
if you know the solution then please reply.
|
|
|
|
|
I've got a hunch. There's a well known bug n Win95 (maybe it has survived in 98) that causes RasDial to fail with this error code when:- No entry name is specified
- and no dial-up connection is set up in the system.
The only solution I can come up with would involve creating a dummy entry (with RasSetEntryProperties ) even if you don't use it later on. Please report back if you try this.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
hi,
i try with RasSetEntryProperties but it return error code 87.
here is my code.
RASENTRY RasEntry;
DWORD dwEntryInfoSize, dwRet;
memset(&RasEntry, 0, sizeof(RASENTRY));
RasEntry.dwSize = sizeof(RASENTRY);
dwEntryInfoSize = sizeof(RasEntry);
sprintf(RasEntry.szLocalPhoneNumber, "89188888");
dwRet = RasSetEntryProperties(NULL, "MY CONNECTION", &RasEntry, dwEntryInfoSize, NULL, 0);
now what can i do?
|
|
|
|
|
Hey Friends Can someone suggest how we can customize the Grippers displayed when using CRectTracker class.
I wish to use the Style ,any suggestion for using the style CRectTracker::resizeOutside,how about using multiple selection and multiple control tracking .
|
|
|
|
|
Your best bet is to derive a class from CRectTracker and override the "Draw" function. Copy and paste the existing CRectTracker::Draw code and then modify as desired.
If you want multiple selection then search CP - I'm sure there have been articles that cover this.
When I am king, you will be first against the wall.
|
|
|
|
|
Dear Robert Edward Caldecott
I tried the Copy And Paste But.............
In the debug mode the execution goes in OnDraw but the Output is the same old one even if I simply put a return statement ie no code for My CRectTracker inherited Draw Function.Can U Pl give it a one more try .
|
|
|
|
|
Then try overriding DrawTrackerRect instead.
When I am king, you will be first against the wall.
|
|
|
|
|
Wollah ..................
Yes You Were Right at the First Place.
Actually I Suppose Draw is Not a Virtual Function And I Was Creating an object of CMyRectTracker but using a Pointer of CRectTracker,I figured it out ,tried it again and Yes It is Working I am able to draw RED Coloured Grippers which I suppose I can change according to my need,
Thanks,Thanks ,Thanks.................................................
|
|
|
|
|
Hi~~
i have a string containing an hex number and i want to convert it to an integer.
--------------------------------------------------------------
char *temp = "0x3e40";
i want to convert it to an interger.. which is 15936
how do i do that?
Thanks
|
|
|
|
|
unsigned long nValue = 0;
long nConverted = sscanf (temp, "%x", &nValue);
if (nConverted != 1) {
failure;
} /ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
|
you could also use:
char *temp = "0x3e40\0";
int iNum = atoi( temp )
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|
|
Although atoi only converts base 10 numbers - strtol (temp, NULL, 16) would be correct for hex!
|
|
|
|
|
Johnny ² wrote:
Although atoi only converts base 10 numbers
Thank you for pointing that out. I completely forgot about the fact that atoi works only with base 10 numbers. I am sorry for posting a message without testing the code first.
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|
|
Dear All,
How can we restore all files from recycle bin. Is there any API provided for "Restore All" ?
I went through the article provided in CodeProject/shell/Registry. I ran the program but it is not working for Restore all ,gives error "Cannot read from source file or disk".
Thanks.
Rohit
|
|
|
|
|
hi all,
i found that it is failed to updating item in a dialog.
for example it work fine in a doc/view app. but, failed in my dialog based menu.
void CMenutestDlg::OnUpdateB(CCmdUI* pCmdUI)
{
pCmdUI->SetCheck(1);
}
anyone know the solution of it?
thanks,
jim
|
|
|
|
|
|
I have created a dll with several class functions. i am trying to call these class functions within a main program. in trying to call these class functions i am utilizing a long list of reference variables. my intent was to have the class function within the dll modify the references so that i can use them in the main program. Is this possible or am i in left field?
|
|
|
|
|
crs999 wrote:
Is this possible ...
Yes.
/ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Great reply
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
OK... I'll bite how do you do this?
|
|
|
|
|
Sorry, I didn't mean to be cryptic. It's no different than using reference parameters in a method for a class that's local to your app. I hope I didn't misunderstand your original question.
/ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
hello
i want to do an autorun for one CD , how i can do it?
|
|
|
|
|
Autoruns are controlled by the AUTORUN.INF file in the root of the CD. Search the web for references to that file (or more specifically, MSDN).
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|