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

C / C++ / MFC

 
AnswerRe: how to change background color of CRichEditCtrl? Pin
David Crow5-May-05 2:29
David Crow5-May-05 2:29 
AnswerRe: how to change background color of CRichEditCtrl? Pin
Maximilien5-May-05 3:00
Maximilien5-May-05 3:00 
GeneralRe: how to change background color of CRichEditCtrl? Pin
includeh105-May-05 4:47
includeh105-May-05 4:47 
Questionwhat are differences between std* and GetStdHandle()? Pin
includeh104-May-05 23:58
includeh104-May-05 23:58 
AnswerRe: what are differences between std* and GetStdHandle()? Pin
David Crow5-May-05 2:31
David Crow5-May-05 2:31 
GeneralRe: what are differences between std* and GetStdHandle()? Pin
includeh105-May-05 4:56
includeh105-May-05 4:56 
GeneralRe: what are differences between std* and GetStdHandle()? Pin
David Crow5-May-05 6:20
David Crow5-May-05 6:20 
Generalhelp needed Pin
aleks_grid4-May-05 23:23
aleks_grid4-May-05 23:23 
Hi there
I am working on a application that is supposed to create a dial up connection in order to connect two computers using the serial port (direct connection using the serial port). I can create the entry no problem but the problem i am running into is that it will not attach the serial port to it (by the way i am using RAS API)
I am setting the device type to serial but the com port is not attached to the connection created.
If i try to create the same connection using the wizard that is provided with Win XP than it gives me the option to select the serial port as a means of communication. Once i create this connection and i run my program i get the desired output so it looks like the COM ports need to be configured for RAS. Is there any way to do that programatically or run a script?

Any help will be greately appreciated!!!
<br />
<br />
<br />
	LPRASENTRY lpRasEntry = NULL;<br />
        DWORD cb = sizeof(RASENTRY);<br />
	DWORD dwRet;<br />
	DWORD dwBufferSize = 0;<br />
	<br />
<br />
	<br />
	RasGetEntryProperties(NULL, "", NULL, &dwBufferSize, NULL, NULL);<br />
	if(dwBufferSize == 0)<br />
		return FALSE;<br />
<br />
	lpRasEntry = (LPRASENTRY)HeapAlloc(GetProcessHeap(),      HEAP_ZERO_MEMORY, dwBufferSize);<br />
	if (lpRasEntry == NULL)<br />
		return FALSE;<br />
<br />
	lpRasEntry->dwSize = dwBufferSize;<br />
	lpRasEntry->dwfOptions = RasEntry.dwfOptions;	<br />
	lpRasEntry->dwfNetProtocols = RASNP_Ip;<br />
	lpRasEntry->dwFramingProtocol = RASFP_Ppp;<br />
	lpRasEntry->dwType = RASET_Direct;<br />
	strcpy(lpRasEntry->szDeviceType, RASDT_Serial);	<br />
	<br />
	<br />
	strcpy(lpRasEntry->szDeviceName, ports[0].name);<br />
	dwRet = RasSetEntryProperties(NULL, strEntryName,lpRasEntry, dwBufferSize, NULL, 0);<br />
<br />
	HeapFree(GetProcessHeap(), 0, (LPVOID)lpRasEntry);<br />

GeneralInternal Complier Error in VC++ 1.52 Pin
LongHornGuy4-May-05 23:23
LongHornGuy4-May-05 23:23 
GeneralRe: Internal Complier Error in VC++ 1.52 Pin
David Crow5-May-05 2:35
David Crow5-May-05 2:35 
General'ICC_STANDARD_CLASSES' : undeclared identifier Pin
stolid_rock4-May-05 22:54
stolid_rock4-May-05 22:54 
GeneralRe: 'ICC_STANDARD_CLASSES' : undeclared identifier Pin
David Crow5-May-05 2:38
David Crow5-May-05 2:38 
GeneralRe: 'ICC_STANDARD_CLASSES' : undeclared identifier Pin
Michael Dunn5-May-05 6:36
sitebuilderMichael Dunn5-May-05 6:36 
Generalconstructor in private section Pin
Rajesh_K_Sharma4-May-05 22:35
Rajesh_K_Sharma4-May-05 22:35 
GeneralRe: constructor in private section Pin
«_Superman_»4-May-05 22:51
professional«_Superman_»4-May-05 22:51 
GeneralRe: constructor in private section Pin
Priyank Bolia4-May-05 23:51
Priyank Bolia4-May-05 23:51 
GeneralRe: constructor in private section Pin
Zdeslav Vojkovic5-May-05 0:51
Zdeslav Vojkovic5-May-05 0:51 
GeneralRe: constructor in private section Pin
Priyank Bolia5-May-05 2:59
Priyank Bolia5-May-05 2:59 
GeneralRe: constructor in private section Pin
Zdeslav Vojkovic6-May-05 2:12
Zdeslav Vojkovic6-May-05 2:12 
GeneralRe: constructor in private section Pin
toxcct5-May-05 0:53
toxcct5-May-05 0:53 
QuestionHow to stop Recording..? Pin
mpallavi4-May-05 22:07
mpallavi4-May-05 22:07 
GeneralMS Word Automation Pin
Imtiaz Murtaza4-May-05 21:32
Imtiaz Murtaza4-May-05 21:32 
QuestionHow to create this button? Pin
exploreman4-May-05 21:30
exploreman4-May-05 21:30 
AnswerRe: How to create this button? Pin
includeh105-May-05 0:17
includeh105-May-05 0:17 
QuestionHow to execute a data manipulation query Pin
mikobi4-May-05 20:57
mikobi4-May-05 20:57 

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.