|
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.
|
|
|
|
|
The wnd object has never had a window attached to it, so why would you expect it to have a valid handle?
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Then, it's a valid value in VC++ 6.0. I'm confused!
|
|
|
|
|
VC 6.0 is out of date and, as far as I am aware, no longer supported.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
How about VC 6.0? Does it give a valid handle (A NOT NULL Handle).
|
|
|
|
|
|
Delete(Take a backup if you want) the .tli and .tlh from the debug folder and rebuild the project. Make sure the delete files are created again.
Then check the CreateControl function. Use the GetLastError() to examine what went wrong.
|
|
|
|
|
Thanks for your reply. CreateControl succeeded with a return value:
TRUE ;
What my question is: why the handle of
wnd is still
NULL .
|
|
|
|
|
Falconapollo wrote: 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. Maybe something was fixed in subsequent versions of VS.
Have you tried making wnd a global variable or class member?
"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
|
|
|
|
|
Hello. I have a pointer which I want to assign to one of my member variables of class. Both the pointer and the object are of same type. How do I assign this pointer to this object. Here is what I mean
class ABC
{
ClassName obj1;
void AssignValue(ClassName* ptrValue)
{
obj1 = ptrValue;
}
};
But I am getting this error saying No operator "=" matches the operands. What do I do? Thanks for any input.
This world is going to explode due to international politics, SOON.
|
|
|
|