|
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
|
|
|
|
|
I try to create thread from thread under FMC.
But sometime it not work (hang).
Maybe someone did it before ???
brainiax@wp.pl
|
|
|
|
|
Post the code that spawns the thread inside another thread.
Kuphryn
|
|
|
|
|
Hi!
I write a console execute in vc. It is called by other command line. How can i make vc ide into debug it when it is been called? How can set a break in some lines?
I believe it is definitely possilbe in vc, but i don't know how to operate.
Thanks!
|
|
|
|
|
To my knowledge, Visual Studio must start the application in order to debug it.
|
|
|
|
|
put __asm{ int 3 }; at the beginning of the code!
when the exception is raised, attach visual studio debugger to it, voila
Don't try it, just do it!
|
|
|
|
|
I am conecting to MYSQL database which is on the server using following code.
CDatabase m_dbftp;
m_dbftp.OpenEx(sDSNName,CDatabase::noOdbcDialog | CDatabase::useCursorLib );
Connection is done properly. I want to catch the exception
when server is disconnected.
I am using following code
catch(CDBException* pEx )
{
CString sz;
if ( pEx->m_nRetCode == AFX_SQL_ERROR_CONNECT_FAIL )
AfxMessageBox("myconnection failed");
}
It dose not work
Problem is m_nRetCode contains -1 instead of
AFX_SQL_ERROR_CONNECT_FAIL .
I am not able to identify if server is disconnected .? How to do it.
|
|
|
|
|
I see a sentence like below:
private Mutex[] m_mutex;
It seems very strange for me
What is its meaning?
Help
Thank you
|
|
|
|
|
Short for MUTual EXclusion. These are used to non-recursively synchronize access to shared resources. Eg: in order to protect a critical section, you can use a mutex, which will ensure that only one thread at a time can lock it.
|
|
|
|