|
|
|
Hamid. wrote: You asked on the wrong forum it was better you asked (Managed) C++/CLI[^].
i just going to do same.. you beat me this time!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Do you want to learning C++.Net?
|
|
|
|
|
Hamid. wrote: Do you want to learning C++.Net
yea want to.. any online tutor
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
If you remember we have a member on the codeproject Mr Nishant Sivakumar it has a good site see C++/CLI [^] for start.;)
|
|
|
|
|
Hamid. wrote: If you remember we have a member on the codeproject Mr Nishant Sivakumar it has a good site see C++/CLI [^] for start.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Thx
|
|
|
|
|
|
Hello again.
Hope someone can help me with this.
The program will form the whole picture by dragging small images and auto snapping.
Do you have any idea how to do this?
Or even a link to a sample program with the same function.
Thank you.
|
|
|
|
|
Hello.
I have a buncha files that were written in C in unix. It uses a few libraries that I don't have using Visual Studio 2005 (Win). How do I compile the files into a .dll under VC++ in Win?
|
|
|
|
|
If these files use unix libraries, then there is no way to port them for windows, unless you rewrite the parts which are system dependant.
|
|
|
|
|
Cedric Moonen wrote: If these files use unix libraries, then there is no way to port them for windows, unless you rewrite the parts which are system dependant
i have heard of some minigw type stuff who could compile library written in unix for windows enviornment!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
ThatsAlok wrote: i have heard of some minigw
Yes, but he asked specifically for VC++2005.
*Probably* he can compile and run his Unix-code with Mingw. It then remains a Unix-Program on a Wrapper around Windows.
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
Hi, i have an SDI App, and i want to add some buttons dynamically(by NEW operator) to CFormView based Form. I don't know how to add my code to those buttons.
|
|
|
|
|
zarraza wrote: don't know how to add my code to those buttons.
When a button is clicked the button will send a WM_COMMAND message to the parent and the wparam of that message will be having BN_CLICKED.
Suppose you created the button with id 1234, do the processing as follows
overied the oncommand function of the CFormview through class wizard. Then inside that function check whether the HIWORD is BN_CLICKED and LOWORD is 1234..
<br />
if( HIWORD( wParam ) == BN_CLICKED && LOWORD(wParam) == 1234 )<br />
{<br />
AfxMessageBox( "Buttom is clicked" );<br />
}
|
|
|
|
|
Further to this you can utilise the MFC MessageMap to do this. Just add the ON_BN_CLICKED manually outside of the AFX_MSG_MAP comments. To keep things neat I always place my manual stuff relative to the MFC Wizard stuff here shown in italics
in the class declaration
//}AFX_MSG
void OnMyDynamicButton();
DECLARE_MESSAGE_MAP()
in the message map
//}}AFX_MSG_MAP
ON_BN_CLICKED(1234, OnMyDynamicButton)
END_MESSAGE_MAP()
void CMyFormView::OnMyDynamicButton()
{
// your button code
}
|
|
|
|
|
|
Hello
I am writing a class and need a way to catch the exception when some variables are used without being initialized. I'm working in standard c++ but compile it in visual c++ 2005. As far as I can remember I would use this technique in vc6.0:
<br />
if(class_variable==NULL)<br />
but now i get the compile error: "Run-Time Check Failure #3 - The variable 'class_variable' is being used without being defined. "
I will wait for your answer and would appreciate it.
by regards Shahin Namini
-- modified at 16:10 Wednesday 17th October, 2007
|
|
|
|
|
shahin namini wrote: I am writing a class and need a way to catch the exception when some variables are used without being declared.
Declared? Do you mean initialized? Otherwise you would get a compiler error.
shahin namini wrote: "Run-Time Check Failure #3 - The variable 'class_variable' is being used without being defined. "
Hehe, so even MS people don't know the difference between "defined" and "initialized".
|
|
|
|
|
you are right and thanks for notation. The first one was my blunder and i corrected it. anyway have got any idea about my problem?
|
|
|
|
|
why not just initialize them ?
|
|
|
|
|
This class does the computations of a 2d ellipsoid, modelling the earth and has lots of variables which are very likely not being initialized. so I thought I would throw the exception whenever i call a function which requires one of the parameters not being initialized yet. have got any comment?
|
|
|
|
|
How would you differentiate between an initialized variable vs. a variable having an invalid value?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
the is no concept of "uninitialized" built into C++. either you initialize the variables yourself or you live with the effects of random garbage in your program.
just initialize the variables.
|
|
|
|