Click here to Skip to main content
15,924,317 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GetWindowText wont work! Pin
User 66588-Dec-01 3:26
User 66588-Dec-01 3:26 
GeneralRe: GetWindowText wont work! Pin
Masaaki Onishi8-Dec-01 4:52
Masaaki Onishi8-Dec-01 4:52 
GeneralVC++ Package Deployment Pin
Vu Nguyen7-Dec-01 11:10
Vu Nguyen7-Dec-01 11:10 
GeneralRe: VC++ Package Deployment Pin
Nemanja Trifunovic7-Dec-01 11:44
Nemanja Trifunovic7-Dec-01 11:44 
GeneralRe: VC++ Package Deployment Pin
Vu Nguyen7-Dec-01 12:25
Vu Nguyen7-Dec-01 12:25 
GeneralRe: VC++ Package Deployment Pin
Fazlul Kabir7-Dec-01 12:05
Fazlul Kabir7-Dec-01 12:05 
GeneralRe: VC++ Package Deployment Pin
Cathy7-Dec-01 14:43
Cathy7-Dec-01 14:43 
GeneralRAS problem Pin
7-Dec-01 10:28
suss7-Dec-01 10:28 
I have to detect if there is a RAS connection active on the machine, so I wrote the following code

RASCONN * lpRasConn;
DWORD lpcb;
DWORD lpcConnections;

lpRasConn = (LPRASCONN) GlobalAlloc(GPTR, sizeof(RASCONN));
lpRasConn->dwSize = sizeof(RASCONN);
lpcb = sizeof(RASCONN);

int nRet = RasEnumConnections(lpRasConn, &lpcb, &lpcConnections);
if (nRet != 0)
{
TRACE("RasEnumConnections failed: Error = %d", nRet);
return(FALSE);
}
else
{
TRACE("The following RAS connections are currently active\n\n");
return(TRUE);
for (DWORD i = 0; i < lpcConnections; i++)
{
TRACE("Entry name: %s\n", lpRasConn->szEntryName);
lpRasConn++;
}
return(TRUE);
}
The fuction fails everytime and I always have the same error message (even I test it on different computers)
the message is "632 : The structure size is incorrect".

Any help would be great..
Thanks,

Fakhri



The best way to predict the future is to create it..
GeneralRe: Guess - RAS problem Pin
Masaaki Onishi7-Dec-01 13:24
Masaaki Onishi7-Dec-01 13:24 
GeneralRe: Guess - RAS problem Pin
7-Dec-01 15:01
suss7-Dec-01 15:01 
Generalproblem abot replace system recycle Pin
yangyanming7-Dec-01 10:25
yangyanming7-Dec-01 10:25 
GeneralDate Conversion Pin
Lilian Chan-Grant7-Dec-01 9:49
Lilian Chan-Grant7-Dec-01 9:49 
GeneralRe: Date Conversion Pin
Michael Dunn7-Dec-01 16:53
sitebuilderMichael Dunn7-Dec-01 16:53 
GeneralRe: Date Conversion Pin
Not Active7-Dec-01 17:23
mentorNot Active7-Dec-01 17:23 
GeneralRe: Date Conversion Pin
Lilian Chan-Grant2-Jan-02 6:56
Lilian Chan-Grant2-Jan-02 6:56 
GeneralRe: Date Conversion Pin
Ravi Bhavnani2-Jan-02 7:11
professionalRavi Bhavnani2-Jan-02 7:11 
GeneralRe: Date Conversion Pin
Michael Dunn2-Jan-02 7:30
sitebuilderMichael Dunn2-Jan-02 7:30 
GeneralRe: Date Conversion Pin
Lilian Chan-Grant4-Jan-02 8:01
Lilian Chan-Grant4-Jan-02 8:01 
GeneralHex values in a string Pin
Tom Wright7-Dec-01 9:27
Tom Wright7-Dec-01 9:27 
GeneralRe: Hex values in a string Pin
vprashu7-Dec-01 10:51
vprashu7-Dec-01 10:51 
GeneralWTL & Automation Pin
Jens Sorensen7-Dec-01 9:21
Jens Sorensen7-Dec-01 9:21 
GeneralRe: WTL & Automation Pin
Michael Dunn7-Dec-01 16:57
sitebuilderMichael Dunn7-Dec-01 16:57 
GeneralRe: WTL & Automation Pin
Jens Sorensen7-Dec-01 17:30
Jens Sorensen7-Dec-01 17:30 
GeneralMenu on RightMouseButton Pin
Giancarlo Amati7-Dec-01 9:19
Giancarlo Amati7-Dec-01 9:19 
GeneralRe: Menu on RightMouseButton Pin
User 66587-Dec-01 10:37
User 66587-Dec-01 10:37 

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.