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

C / C++ / MFC

 
GeneralLines not drawing right Pin
S O S6-Dec-02 0:19
S O S6-Dec-02 0:19 
QuestionHow to detect whether the balloon tips of tray icon has been clicked or timeout on Win2K? Pin
ForrestSong5-Dec-02 22:40
ForrestSong5-Dec-02 22:40 
AnswerRe: How to detect whether the balloon tips of tray icon has been clicked or timeout on Win2K? Pin
ForrestSong15-Dec-02 14:55
ForrestSong15-Dec-02 14:55 
GeneralAn application run Pin
Mazdak5-Dec-02 21:57
Mazdak5-Dec-02 21:57 
GeneralRe: An application run Pin
Prem Kumar6-Dec-02 1:50
Prem Kumar6-Dec-02 1:50 
GeneralRe: An application run Pin
Mazdak6-Dec-02 4:42
Mazdak6-Dec-02 4:42 
GeneralConnect to internet Pin
Mazdak5-Dec-02 21:55
Mazdak5-Dec-02 21:55 
GeneralRe: Connect to internet Pin
Rickard Andersson205-Dec-02 22:31
Rickard Andersson205-Dec-02 22:31 
I've already answered this question, but here is it again:

#include <ras.h>


bool IsConnected()
{
   LPRASCONN TRasCon;
   RASCONNSTATUS Tstatus;

   DWORD lg;
   DWORD lpcon;
   bool lReturn;

   TRasCon->dwSize = 412;
   lg = 256 * TRasCon->dwSize;
   lReturn = false;

   if( RasEnumConnections(TRasCon, &lg, &lpcon) == 0 )
   {
       Tstatus.dwSize = 160;
       RasGetConnectStatus(TRasCon->hrasconn, &Tstatus);

       lReturn = ( Tstatus.rasconnstate == 0x2000 );
   }

   return( lReturn );
}


But this time I will say it's not my code! Smile | :)


Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!

UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!

GeneralRe: Connect to internet Pin
Mazdak5-Dec-02 23:26
Mazdak5-Dec-02 23:26 
GeneralRe: Connect to internet Pin
georgiek506-Dec-02 1:02
georgiek506-Dec-02 1:02 
QuestionHow to format hard drive to FAT or FAT32 format ? Pin
manio5-Dec-02 21:54
manio5-Dec-02 21:54 
AnswerRe: How to format hard drive to FAT or FAT32 format ? Pin
Nitron6-Dec-02 13:40
Nitron6-Dec-02 13:40 
GeneralMDI Initial Document Pin
Dov Sherman5-Dec-02 21:27
Dov Sherman5-Dec-02 21:27 
GeneralRe: MDI Initial Document Pin
Roger Allen5-Dec-02 21:54
Roger Allen5-Dec-02 21:54 
GeneralRe: MDI Initial Document Pin
Taka Muraoka5-Dec-02 21:55
Taka Muraoka5-Dec-02 21:55 
GeneralKeeping Row Selected in ListView Control Pin
Anonymous5-Dec-02 21:03
Anonymous5-Dec-02 21:03 
GeneralRe: Keeping Row Selected in ListView Control Pin
KaЯl6-Dec-02 2:24
KaЯl6-Dec-02 2:24 
GeneralVc++ Brouse Info file Pin
Hemant kulkarni5-Dec-02 20:02
Hemant kulkarni5-Dec-02 20:02 
Generalplugins in vc++ Pin
xxhimanshu5-Dec-02 19:18
xxhimanshu5-Dec-02 19:18 
GeneralRe: plugins in vc++ Pin
User 66585-Dec-02 23:45
User 66585-Dec-02 23:45 
QuestionDECLARE_DYNCREATE/DECLARE_DYNAMIC?? Pin
liuty20065-Dec-02 17:35
liuty20065-Dec-02 17:35 
AnswerRe: DECLARE_DYNCREATE/DECLARE_DYNAMIC?? Pin
Holger Persch5-Dec-02 19:46
Holger Persch5-Dec-02 19:46 
GeneralA question about scope in VC++6 / MFC Pin
Overt Metrication5-Dec-02 17:20
Overt Metrication5-Dec-02 17:20 
GeneralRe: A question about scope in VC++6 / MFC Pin
Christian Graus5-Dec-02 17:25
protectorChristian Graus5-Dec-02 17:25 
GeneralRe: A question about scope in VC++6 / MFC Pin
Overt Metrication5-Dec-02 17:29
Overt Metrication5-Dec-02 17:29 

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.