|
Hi
There are 2 similiar(I think) options in MFC App. Wizard.
In one step we can set Compound Document Support and in Advanced Features
page we can check Automation.
But aren't all of them them to support COM technology?
Why are there 2 different places to add support?
What is the difference between these 2 options?
Thanks..
|
|
|
|
|
Hey Friends
I remember i saw some toolkit which had a demo of a bubble bar (not sure what's the name exactly)
but this is how it worked
Some small Icons on the bottom of a dialog box
Now when i moved mouse, the icon nearest to the icon became bigger & other icons nearby became relatively bigger
Sort of ripple effect (not exactly ripple but something like that)
Any body has an idea of something like this?
What's it called?
Name?
any url?
or anything like that
Regards
|
|
|
|
|
The effect you're thinking of is the Dock from Mac OS X. There have been many different implementations of that effect by many different developers.
|
|
|
|
|
yeah got it
thanks
do u know any sdk / link that offers the effect?
|
|
|
|
|
I have a console C++ application that reads standard input and writes standard output. I want to run (i.e., debug) the program under the IDE, using a text file that I want to redirect to the program, and want the output to redirect to (over)write a text file.
Going to the project properties, and under "Comand Arguments" typing
"<in.txt>out.txt" (without the quotes) does not work. Neither does
"<..\in.txt >..\out.txt"
What am I doing wrong?
Thanks!
Tom
|
|
|
|
|
Do you have something similar to the following in your code:
fread(..., stdin);
fwrite(..., stdout); If so, can you implement something like this instead:
FILE *in;
FILE *out;
if (argc == 1)
{
in = stdin;
out = stdout;
}
else
{
in = fopen(argv[1], "r");
out = fopen(argv[2], "w");
}
fread(..., in);
fwrite(..., out);
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Thanks, David, but that's not the problem.
The program works from the command line, e.g.,
prog.exe <in.txt >out.txt
What I want to know is how do you set
this up within Visual studio? I would
have thought setting up the command arguments
from within VS would do the trick--but I have
not figured it out.
Again, thanks,
Tom
|
|
|
|
|
hain wrote: The program works from the command line, e.g.,
prog.exe out.txt
What I want to know is how do you set
this up within Visual studio? Given this scenario, just add out.txt to the Program Arguments box in the project's settings.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Apparently the rendering of the code was not right in my last message.
What I want to do (from within VS) is
prog.exe <in.txt >out.txt<br />
<br />
where < and > are the redirection symbols.
|
|
|
|
|
You can't do that within the IDE.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hmmm...
I'm very surprised/disappointed.
Thanks,
Tom
|
|
|
|
|
OS: win2000
VC: VC6
defaults are win32 debug and release, I can not find place to build an UNICODE exe in project settings.
How to build an UNICODE MFC exe project?
|
|
|
|
|
Replace _MBCS with _UNICODE in the preprocessor definitions.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
|
includeh10 wrote: t is not working.
Interesting.
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]
|
|
|
|
|
includeh10 wrote: it is not working.
Well, what is that supposed to mean? At best, I can tell you that 'it ought to work'.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Mr.Univoter starts boring me.
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]
|
|
|
|
|
CPallini wrote: Mr.Univoter starts boring me.
But its not serious problem for you because you cant see that votes. 
|
|
|
|
|
Hey man, you're wrong, I have the CPMRU as par of my MVP 's toolkit.
http://www.codeproject.com/script/Forums/preview.aspx?prefix=ctl00$MC$
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]
|
|
|
|
|
Make the _MBCS -> UNICODE change as mentioned, but for an executable, you will also need to change the entry point to wWinMainCRTStartup (Project | Settings -> Link tab)
|
|
|
|
|
Hello,
like in title described i have this problem!
That because, if i click in my CListCtrl i try to find what is the text in this cell!
I do it now like this:
LPNMLISTVIEW lpItem = (LPNMLISTVIEW)pNMHDR;
LVITEM lvItem;
lvItem.mask = LVIF_TEXT;
lvItem.iItem = lpItem->iItem;
lvItem.iSubItem = lpItem->iSubItem;
this->m_cListAll.GetItem(&lvItem);
CString csItemText;
CString csIndex;
csIndex = m_cListAll.GetItemText(lpItem->iItem, 0);
csItemText= m_cListAll.GetItemText(lpItem->iItem, 1);
Thanks for Help!
termal
|
|
|
|
|
termal wrote: // this works(but why not the sample above with LVITEM?):
Try this and see what happens
LVITEM lvItem = {0};<br />
led mike
|
|
|
|
|
Hi,
thanks for answer, but this dont woks!
regards
termal
|
|
|
|
|
When you debug that code what is the value of lpItem->iSubItem ?
led mike
|
|
|
|
|
Why not use the code that works? If you're using MFC, let MFC do the work.
You can also trace into the working code and see how it differs from your code.
Back to your broken code...
The docs for LVM_GETITEM state:
"If the LVIF_TEXT flag is set in the mask member of the LVITEM structure,
the pszText member must point to a valid buffer and the cchTextMax member
must be set to the number of characters in that buffer. Applications should
not assume that the text will necessarily be placed in the specified buffer.
The control may instead change the pszText member of the structure to point
to the new text rather than place it in the buffer."
How much of that have you implemented correctly?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|