|
superman
i just need upnp.lib file.
first thing that search engine for upnp found is your answer link.
superman
|
|
|
|
|
Wouldn't you get it the same way you get any other windows dev lib? :shrugs:
That is to say, go here[^] and download the windows SDK.
From Superman's link, you can see it's been supported since Windows ME, so any SDK released between then and now should do the trick nicely.
Make it work. Then do it better - Andrei Straut
|
|
|
|
|
in windows sdk you can find UPnP.h
but youcant find upnp.lib in lib
problem is here
|
|
|
|
|
Friends,
I have created two application Server and Client connected with Socket(TCP/IP). Now If i send the data from client to server then i getting error in this line ar.WriteObject(&m_sListOut);" . I have cited the code below.
Code:
pSocket->creat();
pSocket->Connect(IPaddr,Port);
m_File = new CSocketFile(pSocket);
m_pArchIn = new CArchive(m_File,CArchive::load);
m_pArchOut = new CArchive(m_File,CArchive::store);
void SendDataToServer( )
{
CTransData oData; oData.m_sListOut.AddTail(sPackData);
pSocket->SendData(&oData);
}
void SendData(CTransData *pData)
{
if (m_pArchOut != NULL)
{
TRY
{
pData->Serialize(*m_pArchOut);
m_pArchOut->Flush();
}
CATCH(CFileException, e)
{
m_pArchOut->Abort();
delete m_pArchOut;
m_pArchOut = NULL;
}
END_CATCH
}
}
CTransData.cpp
void CTransData::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
ar.WriteObject(&m_sListOut);
}
else
{
m_sListIn = (CStringList*)ar.ReadObject(RUNTIME_CLASS(CStringList));
}
} I have written same code in the Server side application and server is able to send the data to client without any problem. In case of Client, could not send the data to server side. Knidly help me to fix this problem
|
|
|
|
|
ar.WriteObject(&m_sListOut);
You need to provide full details of what that error is.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
When this line "ar.WriteObject(&m_sListOut);" encountered
getting Error:
Debug Assertion Failed!
File: f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\map_pp.cpp
|
|
|
|
|
You need to use your debugger to check the stack trace and find out where your program is calling out to this module, and what is causing the assertion.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Trying to implement HtmlView in Dialog based app but getting pDisp is NULL;
IDispatch * pDisp = GetHtmlDocument();
What is the problem please guide.
|
|
|
|
|
The above does not explain much beyond what is shown in the documentation[^]. Are you certain that your view has a current loaded document?
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Call Navigate2("about.blank", 0, "_self") before GetHtmlDocument()
|
|
|
|
|
I need to add a list control to my dialog box for the windows CE.6 device, such that the list contains some set of words.....can somebody help me out ??
|
|
|
|
|
Exactly what trouble are you having? Are you able to add other controls to the dialog? Is this an IDE or C/C++ (i.e., code) issue?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
Friends,
I want to transfer structure data using socket in MFC. but i unable to transfer the data. Knidly help me to transfer data using TCP/IP socket. If possible kindly give sample code.
Thanks and Regards,
S.Shanmuga Raja
|
|
|
|
|
Just send it as a stream of bytes. As long as both ends of the socket use the same packing then you should have no problems.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
1. Define a message structure. This will consist of either binary or text data.
2. Write and API/code that sends and receives.
3. Then call your API passing your structure.
The specifics of 1 depend on your business needs.
The specifics of 2 depend on the original structure and how you write 2.
|
|
|
|
|
So I'd like to use colors in my "debug" windows during debugging. Is this possible? It would be really nice because I would be able to color different types out output messages...
I'd like to say something like
SetTraceColor(BLUE);
TRACE("blabla");
Thank you
93/93
modified 26-Oct-12 7:39am.
|
|
|
|
|
Damn! Visual Studio 6 !!!
I would be surprised if that version even supports add-ons or customization.
Nihil obstat
|
|
|
|
|
You can add-ins BTW.
But that was not even the question. I just wanna see colored Output text. Isn't it possible out of the box?
93/93
|
|
|
|
|
I don't think you can do it.
The only add-in I've seen doing it is for VS2012.
Good luck.
Nihil obstat
|
|
|
|
|
Hi,
I need to apply DS_SYSMODAL style while creating a modeless dialog at runtime based on a registry key setting.And also undo this style from dialog at runtime. When DS_SYSMODAL is set, Windows is internally setting it to WS_EX_TOPMOST.
Now Can anyone tell me how I should do the same.
I have used ModifyStyleEx as below but it didnt seem to have any impact.
if(blnSysModal)
{
m_dlg1->ModifyStyleEx(0,WS_EX_TOPMOST);
}
else
{
m_dlg1->ModifyStyleEx(WS_EX_TOPMOST,0);
}
Any help on the same would be appreciated.
Thanks
Satya
Today is a gift, that's why it is called the present.
|
|
|
|
|
DS_SYSMODAL is not used any more, it is no longer possible to have system modal dialogs.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
hi
how would i go about creating a directshow filter that would disolve between 2 video sources when activated
(fade out first video while fading in second)
kenny
|
|
|
|
|
Here is my code:
BOOL CDemoDlg::OnInitDialog()
{
CDialog::OnInitDialog();
SetIcon(m_hIcon, TRUE); SetIcon(m_hIcon, FALSE);
CRect rect;
GetClientRect(rect);
CWnd wnd;
BOOL bRet = wnd.CreateControl(_T("WMPlayer.OCX"), NULL, WS_VISIBLE, rect, this, 19089);
return TRUE; }
I run the code wich VC++ 6.0, everything is OK. But when run the same code under Visual C++ 2010, the handle of
wnd (namely
m_hWnd ) is always NULL. Besides, the return value bRet is TRUE(namely success).
I'm confused. Anyone can help me?
|
|
|
|
|
CWnd wnd;
BOOL bRet = wnd.CreateControl(_T("WMPlayer.OCX"), NULL, WS_VISIBLE, rect, this, 19089);
return TRUE;
As soon as you return from this function wnd goes out of scope and is destroyed.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
As you see, this is just a Demo.
I run the code one by one line in Debug mode.
So, I can watch the instant value.
|
|
|
|