|
Michael Dunn wrote:
considering that MFC 6 is so old and pre-dates even IE 5
Do you happen to know if the MFC that ships with VC.NET has been imrpoved (updated) to expose more of the new ComCtl32 features? Maybe not this problem specifically, but how about images in CListCtrls or the new thumbnails view, etc.
Even more off-topic, is this one of the reasons everyone seems to be using WTL now a days?
|
|
|
|
|
Hi there!
I 'm writing a project that converts MSO file content int to my own language ( Vietnamese). But I don't know how to read and write to them. Is any body help me?
Thanks
Jason Chang
tmsnhien@yahoo.com
|
|
|
|
|
Each Office application exposes a COM interface. Using automation, you should be able to do what you need.
|
|
|
|
|
Thanks for reply!
May you say more clearly please. I know that this problem can be solved by COM. I know "Excel?.Dll" "MSWord*.dll" can use for programming. But I don't know all of its function. And how to open MS Office file without opening MS Office Application.
Thanks
Jason Chang
tmsnhien@yahoo.com
|
|
|
|
|
Check out MSDN article Q178749.
|
|
|
|
|
How do I group Radio buttons using the Resource Editor?
|
|
|
|
|
in the dialog editor window thingy where you see the radio buttons, edit boxes, etc, right above the radio box is the Group Box Function. use that, and change the status of "Group" in the radio buttons properties to TRUE for the first radio button in the group.
if that makes any sense.
*.*
cin >> knowledge;
|
|
|
|
|
Thank You,
But their is not "Status" option in Visual Studio 6 Resource editor. Your help did show me the way. Select "Group" for the first control in the group and not selected in subsequent controls.
|
|
|
|
|
a group of radio buttons is defined by tab order, in which the first one has the "group" (and "tab stop"?) check box checked in the properties for the first checkbox button in the group you want to have.
It's not a visual group, more a logical grouping.
Maximilien Lincourt
"Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )
|
|
|
|
|
bonjour
j'aimerais bien savoir est ce que la fonction " load fromfile" existe en vc++?
|
|
|
|
|
pardon ? je comprend pas, peux-tu mettre en contexte ? load quoi ? et dans quoi ?
Maximilien Lincourt
"Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )
|
|
|
|
|
Welp its time to comment all my 10000000000 pages of cpp files, and i'd like to link to a certain area. Ie, i could say
"click here to go to this function"
and when they click on "here" it teleports them to the function source code.
Is it possible?
*.*
cin >> knowledge;
|
|
|
|
|
I don't know about in Visual C++ itself, but you can probably do something like this in doxygen.
--
Ian Darling
|
|
|
|
|
I'm using vc++.net 2k3
*.*
cin >> knowledge;
|
|
|
|
|
keegan wrote:
"click here to go to this function"
ED (see sig) provides this capability via. its Source Database.
Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
|
|
|
|
|
I have tried to create a CList of one/more CStringArray objects. If I try and add CStringArray to my CList I get the error:
error C2558: 'CStringArray' : no copy constructor available
Do I have derive from CStringArray and write copy constructor for my derived class? How come CStringArray does not already have copy constructor. Surely it knows the type of its elements so surely it should know how to copy itself?
|
|
|
|
|
Anonymous wrote:
Do I have derive from CStringArray and write copy constructor for my derived class?
Yes, in this case.
--
Ian Darling
|
|
|
|
|
ugh... STL makes this all so easy:
<br />
#include < string ><br />
#include < vector ><br />
#include < list ><br />
<br />
std::list< std::vector< std::string > > > myStringArrayList;<br />
CheeseWeasle
|
|
|
|
|
Sure does...all the level 4 compiler warnings are a pain though.
Although you can get rid of them, they shouldn't arise in the first place.
Anna
Homepage | My life in tears
"Be yourself - not what others think you should be"
- Marcia Graesch
"Anna's just a sexy-looking lesbian tart"
- A friend, trying to wind me up. It didn't work.
Trouble with resource IDs? Try the Resource ID Organiser Visual C++ Add-In
|
|
|
|
|
Hi,
I need to create a text field within a dialog box, where i want some data to be printed out (i.e., to show) .
How do I start ?
Thanks,
Deepak Samuel
|
|
|
|
|
I assume you already have a dialog working.
Got to the resource editor and add a static text control. Its ID is going to be IDC_STATIC change that to your own ID. Like IDC_MYTEXT. What you put as the text of the static control is going to be the text that is initially displayed.
Now, in one of your dialog message handler, wherever you want to change the text on the dialog, put the following:
CStatic* pText = (CStatic*) GetDlgItem(IDC_MYTEXT); //get a pointer to the control
pText->SetWindowText(“Hello World”); //set the text
When the message handler is called the text is going to change to Hello World.
This works with an edit box too. Make an Edit box on your resource template with ID IDC_MYEDIT. The following code will display the text.
CEdit* pEdit = (CEdit*) this->GetDlgItem(IDC_MYEDIT);
pEdit->SetWindowText("Hello World");
I hope this helps.
Lorenz Prem
Microsoft Corporation
|
|
|
|
|
You might want to consider using an EDIT control instead of a STATIC, and then set the ReadOnly property on it. The advantage is that users will be able to copy & scroll the data in the control. If you don't plan on displaying all that much data, then maybe the STATIC is the right way to go.
|
|
|
|
|
Jeez, even the guys at MS don't know about SetDlgItemText .
I don't know about you, but I find a one-liner much more readable:
SetDlgItemText( IDC_MYEDIT, _T( "Hello World" ) );
Also, there's no need to cast to a CEdit or CStatic pointer if you're just going to be calling a method implemented on CWnd.
|
|
|
|
|
I agree that your solution is much more elegant and readable, but getting a pointer to the control is also a vital step in many other not so basic scenarios.
I figure I better answer the question the way it is most useful, not necessarily in the shortest way. That includes the cast, which might be necessary for other things besides setting the text.
Lorenz Prem
Microsoft Corporation
|
|
|
|
|
Wow!!!
Lorenz Prem
Microsoft Corporation
Does that mean that we are getting an official MSFTs responce now?
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|