|
You're welcome.
Luc Pattyn [My Articles] Nil Volentibus Arduum
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Please use <PRE> tags for code snippets, they improve readability. CP Vanity has been updated to V2.3
modified on Friday, June 10, 2011 8:45 PM
|
|
|
|
|
Just downloaded latest version of CP Vanity, great work, congratulations.
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]
|
|
|
|
|
you're welcome 2.
Luc Pattyn [My Articles] Nil Volentibus Arduum
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Please use <PRE> tags for code snippets, they improve readability. CP Vanity has been updated to V2.3
|
|
|
|
|
Try this -
va_list args;
va_start(args, s_Format);
char s_Out[1024];
sprintf(s_Out, s_Format, va_arg(args, char*));
|
|
|
|
|
this way also works 
|
|
|
|
|
Hi!
I've to open a web page inside a Dialog(not as a popup) using ShellExecute. I've to use ShellExecute why because Navigate() function works only if IE is present in a System.Is this possible with ShellExecute? Or is there any other alternative?
|
|
|
|
|
|
barneyman wrote: you can't use ShellExecute like that
Ok. I realized that after posting the topic. Now what I want is to open my web page in a separate browser window. I don't want to open inside an already opened window. How to do this with ShellExecute?
|
|
|
|
|
|
I can understand what's said there. But I don't know what parameter values to pass to ShellExecute to accomplish my task. I need some information about parameters(change in coding).
|
|
|
|
|
ShellExecute(NULL, "open", "http://www.microsoft.com", NULL, NULL, SW_SHOWNORMAL);
replace www.microsoft.com with where you want to go to
|
|
|
|
|
This opens inside an already opened window. I want to open the web page in a separate browser window.
|
|
|
|
|
try
ShellExecute(NULL, "open", "http://www.microsoft.com", "-new", NULL, SW_SHOWNORMAL);
|
|
|
|
|
This opens in a new browser window if already an window is not there. If it's there, my web page is opened in the exisiting browser window. Can we have control over the size of the browser with ShellExecute?
|
|
|
|
|
unfortunately, you don't have a lot of control
|
|
|
|
|
pix_programmer wrote: Can we have control over the size of the browser with ShellExecute?
Isn't that what the sixth argument is for?
"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
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
|
|
|
|
|
What value has to be set to this parameter, so that my web page is opened in a smaller browser window than the normal?
modified on Wednesday, June 1, 2011 9:22 AM
|
|
|
|
|
There are only 12 possibilities, and some of those do not apply (e.g., SW_HIDE ). In less time than it takes to read this post (and respond), you can have over half of them tested.
"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
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
|
|
|
|
|
If you want to open the URL in IE even if it is not set as default browser:
ShellExecute(NULL,"open","iexplore.exe", csUrlToOpen, NULL, SW_SHOW);
Regards
--
"Programming is an art that fights back!"
|
|
|
|
|
Hi all,
some special extra charaters like "
" are displayed while reading the xml file using CFile.
i dont want that 
 extra charaters.
Code:
----
int iSz = 0;
DWORD dwFileRead;
int len = (int)file.GetLength();
DWORD dwOffset=0;
char* ReadAsciiBuf = new char[len+1];
_TCHAR* Readbuf = new _TCHAR[len+1];
file.SeekToBegin();
dwFileRead = file.Read(ReadAsciiBuf+dwOffset,len);
memset(Readbuf, 0, (file.GetLength() + 1) * sizeof(TCHAR));
iSz = Mymbstowcs(Readbuf,ReadAsciiBuf,len);
strTempResult = Readbuf;
file.Close();
help me out.
|
|
|
|
|
they're escaped characters in the XML and they're perfectly valid (http://www.w3.org/TR/1999/WD-xml-c14n-19991109.html#charescaping[^])
you're going to either have to translate them, or use an alternative xml parsing library
my advice would be to use an alternative library, the effort taken to learn how to use one will be significantly less, and more rewarding, than trying to write your own, especially if you wish to consume XML generated by a third party product
|
|
|
|
|
Question 1:
I create one CDockablePane wnd and dock it in the bottom of the parent wnd. The default CDockablePane height is too short and I want to resize the height of the CDP. How to do that?
Btw, if the CDP is docked in the left/right side of the parent wnd, it works well after setting new width.
Question 2:
How to make the CDP floating when initialized. The CDP is initially docked in one side when created? I want to make it floating after it is created in the specified position with an initial size.
I feel very hard to control the CDP programmatically, like floating, resizing and moving with MFC. I found one artical from MS website about docking window management programmatically. But it is for C# Winform, not for MFC.
Still two days no replys come in. Seems not to poplular on CDockablePane class.
Can anyone give help?
NOTE: Ohh.... nobody is interested in CDP usage....Why? Not a good object, is it?
modified on Friday, June 3, 2011 5:49 AM
|
|
|
|
|
Hello,
I am VC++/MFC developer. I know how to create COM ATL. But I am unable to find way to create MFC COM dll. Please suggest me way to create MFC COM.
Regards
|
|
|
|
|
|
Perfect 5 Thanks
"Every Little Smile can touch Somebody's Heart...
May we find Hundreds of Reasons to Smile Everyday... and
May WE be the Reason for someone else to smile always!" (ICAN)
"Your thoughts are the architects of your destiny."
|
|
|
|