|
That article deals with passing a socket to a thread.
What I'm trying to do is create the socket inside the thread.
I can detect that the thread is being run, but the moment
I call Create, it crashes the program.
I get the following stack :
CMapPtrToPtr::GetValueAt(void * 0x00000744) line 179 + 3 bytes
CAsyncSocket::LookupHandle(unsigned int 0x00000744, int 0x00000000) line 385 + 15 bytes
CAsyncSocket::AttachHandle(unsigned int 0x00000744, CAsyncSocket * 0x00de7cf0 {CSocket}, int 0x00000000) line 407 + 13 bytes
CAsyncSocket::Socket(int 0x00000001, long 0x0000003f, int 0x00000000, int 0x00000002) line 557
CAsyncSocket::Create(unsigned int 0x00000000, int 0x00000001, long 0x0000003f, const char * 0x00000000) line 105 + 20 bytes
CSocket::Create(unsigned int 0x00000000, int 0x00000001, const char * 0x00000000) line 45 + 29 bytes
CMyThread::MyMessageHandler(unsigned int 0x00000401, long 0x00aa1180) line 570 + 17 bytes
CWinThread::DispatchThreadMessageEx(tagMSG * 0x00aa10c4 {msg=0x00000401 wp=0x00000401 lp=0x00aa1180}) line 652
CWinThread::PreTranslateMessage(tagMSG * 0x00aa10c4 {msg=0x00000401 wp=0x00000401 lp=0x00aa1180}) line 660 + 20 bytes
CWinThread::PumpMessage() line 841 + 30 bytes
CWinThread::Run() line 480 + 11 bytes
_AfxThreadEntry(void * 0x0011deec) line 125 + 11 bytes
_threadstartex(void * 0x00aa2f80) line 212 + 13 bytes
KERNEL32! 7
|
|
|
|
|
i need to create a payment form on web-page for users, i only know c++ and php.
which one is better between COM or PHP on web-page for credit card trnsaction?
any suggestion for security issues?
thanks
includeh10
|
|
|
|
|
|
Hi Dears,
I can find result of this code ,
unsigned int nPort = 0x7e00;
volatile unsigned char *exAddress;
exAddress =(volatile unsigned char *) nPort;
what is value for exAddress ?
Best regards.
|
|
|
|
|
|
somethings wrong!
exAdress is unsigned char! even though return 0x7e00???
|
|
|
|
|
|
Anyone has any clue what could be causing this ?
Message from VC++ 6.0 linker
error LNK2001: unresolved external symbol __imp__AlphaBlend@44
I'm starting to think this project is jinxed. First my little property headache and now this one.
Thanks for any input.
Best regards,
----------------
Lord Phoenix
----------------
|
|
|
|
|
|
Thanks, that did it.
Funny thing is I have a another project that uses this and I don't ever remember having to do this. Oh well, maybe I just forgot about it.
Again, thanks for your help.
----------------
Lord Phoenix
----------------
|
|
|
|
|
|
Hi There,
I am using the Microsoft Web Browser ActiveX control component in a
a dialog container to display a web page in Visual C++ 6.0. Basically the web page
on the server is small rectagular area and thus the full IE acreen
area is not required. Despite disabling the member variable's for the
WebBrowser class Horizontal and Vertical scroll bars through EnableScrollBarCtrl
the Web container page produces a greyed out disabled scroll bar. Is there
any way over riding this and preventing it being displayed. Do I have to access
the COM interfaces and set the property that way.
Regards
Rezwan
|
|
|
|
|
use tag if the page is yours.
includeh10
|
|
|
|
|
We have tried this and we own the webpage but a greyed out scroll
bar appears on the right of the screen any ideas?
includeh10 wrote:
use tag if the page is yours.
|
|
|
|
|
Dear (whatever you want),
I have two questions:
1. I'm trying to make an active Document Server application in MFC in the VS2003.
The problem is that I don't have any MFC experience and I'm just longing for some easy programming with those arraylists and window forms. I think I could link my MFC project and my Managed C++ (or C#) with a CCW.
The question: Any hints or tips?
2.
The question: Is this the right discussion board?
thanks,
Paul
I would love to have a funny signature
|
|
|
|
|
Pauwl wrote:
...a CCW.
Computer Communications Workshop
Close Combat Weapon
Command/Control Workstation
COM Callable Wrapper
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
lol
DavidCrow wrote:
Close Combat Weapon
lol
Sorry I was refering to the Wrapper.
*still chuckles*
Paul
|
|
|
|
|
|
|
|
Can i get help on xml parser which convert xml file to wbxml using mfc class.
Thank you.
|
|
|
|
|
I HAVE CREATED A XML USING IXMLDOMDOCUMENT.NOW I WANT FETCH A NODE . WHICH FUNCTION IS USED TO FETCH A NODE
|
|
|
|
|
let consider your XML to be something like this
<xml>
<cp>
<article>visual c++ is best</article>
<author>best</author>
</cp>
<cp>
<article>learning VC</article>
<author>Mes</author>
</cp>
</xml>
Now Assume you loaded it into your interface
IXMLDOMDocument object say pXmlDom
now for enumerating the data/node inside the XMLObject Read this little piece of code.
<font color=#008000>
CComPtr<MSXML2::IXMLDOMNodeList> pNodeList=NULL;
<font color=#008000>
CStringArray arrArticleName,arrAuthor;
<font color=#008000>
pNodeList=pXmlDom.getElementsByTagName(L"cp");
USES_CONVERSIONS;<font color=#008000>
<font color=#008000>
if(pNodeList)
{
<font color=#008000>
for(long i=0;i<pNodeList->Getlength();i++)
{
<font color=#008000>
arrArticleName.AddString(W2T(pNodeList->Getitem(i)->selectSingleNode(L"article")->text));
<font color=#008000>
arrAuthor.AddString(W2T(pNodeList->Getitem(i)->selectSingleNode(L"author")->text));
}
}
Now arrAuthor , arrArticleName will contain the data of nodes
[Vote One Here, Complete my Survey....]
Alok Gupta visit me at http://www.thisisalok.tk
"I Think Believe this Will Help"
|
|
|
|
|
ALOK
YESTARDAY I WAS TRYING getElementsByTagName(); FUNCTION.BUT I COULDNOT UNDESTAND IXMLDOMNodeList.but now what I HAVE UNDERSTOOD IS THAT WHAT TAG NAME,SAY <cap>, I MENTION IN THE ARGUMENT OF getElementsByTagName()
IXMLDOMNodeList OBJ=getElementsByTagName("CAP");
. THE OBJECT OF IXMLDOMNodeList,OBJ, KEEPS THE TRACK OF ALL THE TAG NAMED <cap>AND ITS CHILD NODE.IF I AM WRONG PLS RECTIFY IT
|
|
|
|
|