Click here to Skip to main content
15,900,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SetWindowText function error Pin
KARFER11-Jan-09 9:44
KARFER11-Jan-09 9:44 
AnswerRe: SetWindowText function error Pin
Stephen Hewitt11-Jan-09 4:11
Stephen Hewitt11-Jan-09 4:11 
QuestionFind All databases in a SQL Server Instance using VC++ 6.0 Pin
unniks10-Jan-09 16:53
unniks10-Jan-09 16:53 
AnswerRe: Find All databases in a SQL Server Instance using VC++ 6.0 Pin
Hamid_RT11-Jan-09 2:01
Hamid_RT11-Jan-09 2:01 
GeneralRe: Find All databases in a SQL Server Instance using VC++ 6.0 Pin
unniks11-Jan-09 5:06
unniks11-Jan-09 5:06 
AnswerRe: Find All databases in a SQL Server Instance using VC++ 6.0 Pin
David Crow12-Jan-09 3:27
David Crow12-Jan-09 3:27 
AnswerRe: Find All databases in a SQL Server Instance using VC++ 6.0 Pin
Member 8157212-Jan-09 22:19
Member 8157212-Jan-09 22:19 
QuestionQuestion about Inject DLL Redirect wsock Pin
VB_Crazy10-Jan-09 16:42
VB_Crazy10-Jan-09 16:42 
<br />
typedef int (WSAAPI *Pconnect)<br />
	(SOCKET s, struct sockaddr *name, int *namelen);<br />
<br />
<br />
int WSAAPI myconnect(SOCKET s, struct sockaddr *name,  int *namelen)<br />
	#define SIN(name) ((struct sockaddr_in *)(name))<br />
{<br />
   struct sockaddr_in *paddr =(struct sockaddr_in *)name;<br />
<br />
   char *ip =inet_ntoa(SIN(name)->sin_addr);<br />
   int port =ntohs(paddr->sin_port);<br />
<br />
		if (port == 101) <br />
			{<br />
				SIN(name)->sin_addr.s_addr  =  0x0100007f;<br />
				return ((Pconnect)hookconnect.pTrampoline)(s, name, namelen);<br />
			}<br />
<br />
	return ((Pconnect)hookconnect.pTrampoline)(s, name, namelen);<br />
}<br />
<br />


I found this function to redirect everytime application try to connect 101 port and connect localhost, but i have to listen same port as the application is, is there a way to edit this function make to connect diff. port?

thank you
AnswerRe: Question about Inject DLL Redirect wsock Pin
Code-o-mat11-Jan-09 8:48
Code-o-mat11-Jan-09 8:48 
GeneralRe: Question about Inject DLL Redirect wsock Pin
VB_Crazy12-Jan-09 0:26
VB_Crazy12-Jan-09 0:26 
GeneralRe: Question about Inject DLL Redirect wsock Pin
Code-o-mat12-Jan-09 0:38
Code-o-mat12-Jan-09 0:38 
AnswerRe: Question about Inject DLL Redirect wsock Pin
VB_Crazy12-Jan-09 22:42
VB_Crazy12-Jan-09 22:42 
QuestionList control ignores FindItem? Pin
nobaq10-Jan-09 10:12
nobaq10-Jan-09 10:12 
AnswerRe: List control ignores FindItem? Pin
Stuart Dootson10-Jan-09 13:52
professionalStuart Dootson10-Jan-09 13:52 
QuestionRe: List control ignores FindItem? Pin
nobaq11-Jan-09 4:41
nobaq11-Jan-09 4:41 
QuestionRe: List control ignores FindItem? Pin
nobaq11-Jan-09 4:50
nobaq11-Jan-09 4:50 
AnswerRe: List control ignores FindItem? Pin
Stuart Dootson11-Jan-09 5:11
professionalStuart Dootson11-Jan-09 5:11 
QuestionPNG on button Pin
kiranin10-Jan-09 6:29
kiranin10-Jan-09 6:29 
AnswerRe: PNG on button Pin
Richard Andrew x6410-Jan-09 6:42
professionalRichard Andrew x6410-Jan-09 6:42 
GeneralRe: PNG on button Pin
kiranin10-Jan-09 7:18
kiranin10-Jan-09 7:18 
AnswerRe: PNG on button Pin
Hamid_RT10-Jan-09 7:50
Hamid_RT10-Jan-09 7:50 
AnswerRe: PNG on button Pin
CPallini10-Jan-09 10:48
mveCPallini10-Jan-09 10:48 
AnswerRe: PNG on button Pin
Iain Clarke, Warrior Programmer11-Jan-09 23:12
Iain Clarke, Warrior Programmer11-Jan-09 23:12 
QuestionSimple Question: Where to store global object? Pin
nobaq10-Jan-09 5:47
nobaq10-Jan-09 5:47 
AnswerRe: Simple Question: Where to store global object? Pin
Richard Andrew x6410-Jan-09 6:08
professionalRichard Andrew x6410-Jan-09 6:08 

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.