|
class looks fine. make sure you haven't written past the ends of either of those arrays, though.
|
|
|
|
|
I don't know, you didn't provide the class implementation code.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
This might happen if you continue to use the pointer after using delete. After delete, set the pointer to 0, to make it easier to catch this.
|
|
|
|
|
Any reason you are using char arrays instead of something like CString?
|
|
|
|
|
Because that is a right (warranted by the constitution) of the native developer?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
God forbid I infringe upon anyone's rights
However,
char sSnpDesc[50]; sounds like some sort of description, and I've seen descriptions longer than 50 chars.
|
|
|
|
|
It looks just "A snapshot in the family album". I don't know if Daddy had more than 50 characters.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
In World of Warcraft the maximum number of characters you can create over all servers is 50, so this definition looks perfectly valid to me!
|
|
|
|
|
|
If you specify the exception, it may provide more information for us to give you feedback.
Make sure of a few things:
-You're not using the pointer after delete
-You're not calling delete on something that has already been deallocated
-You're not calling delete on someone else's private member
-You're not deallocating across DLL boundries
|
|
|
|
|
Hi,
In my hook application ,while i am trying to connect throgh myconnect function i am getting the error Error: 183,Error: 10014..
I am redirecting the connect through proxy..
my connect call is
sockaddr_in *inName = (sockaddr_in *)(name);
inName->sin_family = AF_INET;
inName->sin_addr.s_addr = inet_addr("192.168.1.5");
inName->sin_port = htons(80);
int iResult = orig_connect(s, (struct sockaddr*)&inName, sizeof(inName));
Pls help me to solve this problem.
|
|
|
|
|
Please note you are passing the address of inName that is already a pointer to a sockaddr struct.
Change:
vkgktm wrote: int iResult = orig_connect(s, (struct sockaddr*)&inName, sizeof(inName));
to
int iResult = orig_connect(s, inName, sizeof(*inName));
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi CPallini,
Thanks for your reeply..
I changed
int iResult = orig_connect(s, (struct sockaddr*)&inName, sizeof(inName));
to
int iResult = orig_connect(s, inName, sizeof(*inName));
But i am getting the error message
error C2664: int (SOCKET,const sockaddr *,int) : cannot convert parameter 2 from sockaddr_in to const sockaddr
|
|
|
|
|
try
int iResult = orig_connect(s, (const sockaddr *) inName, sizeof(*inName));
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
i am still getting the same error 10014
|
|
|
|
|
Well, in order to get better help, can you please provide a link to the documentation of the orig_connect function? I cannot find anything about on the web.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
hi Now that error gone i am able to connect to proxy but from the proxy i am getting the message Request denied what it means..where is the error..
|
|
|
|
|
"But all I can do is hand it to you": Google search for "proxy request denied"[^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
hi thanks for your replies it helped me a lot thanks.
|
|
|
|
|
You are welcome.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi,
I want to get handle of an already opened window.
For this
I can not use FindWindow() API as Window's title is not known.
And also, I can not use Class name as it is not a registered class.
Can anybody tell me how to solve this issue?
Thanks in advance.
Regards
MSR
|
|
|
|
|
As far as I know, every window must belong to a registered class.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi, thanks for the reply.
But here we are not regidtering class explicitly. This is the code
CDlg* pDlg = new CDlg;
DialogBoxParam(hInt, MAKEINTRESOURCE(IDD_DLG),
hWnd, (DLGPROC)(*pDlg ).WindowMapProc, (LPARAM)pDlg);
I have tried using
FindWindow("CDlg", NULL); But it is not working.
Now , how to go forward to find IDD_DLG.
Regards
MSR
|
|
|
|
|
Your windows is child of the hWnd one and as such must be searched for.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Use
EnumWindows
EnumChildWindows
and look for #32778 class name
use the SPY++ to test it
Mithrill
|
|
|
|