|
Damn, your steroid bananas are quite efficient
|
|
|
|
|
You should learn to use your debugger, it is much more efficient then asking questions on a forum.
Press F5 to start debugging and check where the crash occurs, this could already give you some information. Then put some breakpoints before the crash and debug once again to inspect the values of the different variables...
|
|
|
|
|
May I politely ask why didn't you answer Rajesh's question?
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]
|
|
|
|
|
Which implies that if you remove the custom control, the error should go away. Yes?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
ya it goes away as i remove control from my application
|
|
|
|
|
Does the control need to be registered?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
Rajesh R Subramanian wrote: May I politely ask you
So, you read the new sticky from Chris it seems
|
|
|
|
|
It's OK for me, but Carlo looks like a caged tiger.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Yup, I saw that. Not good for his nerves
|
|
|
|
|
No sarcasm, please.
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]
|
|
|
|
|
your information is too small to get an overview about the question.
and pin point your need so that it can be easily solved.
|
|
|
|
|
I have an application developed in mfc. Its a dialog based application. there is structure containing some members in it. I need to display the structure members in a listbox. how can i achive this?
|
|
|
|
|
Do you want to pass your structure directly to list box function and in according that list box is added with new item, is it your need?
if so then derive a class from CListBox and overload a function AddString()
say
CListBoxEx and your structure is
struct EXData
overload a function
int AddString( const EXData& MyStruct );
modified on Tuesday, July 14, 2009 7:28 AM
|
|
|
|
|
|
Thanks Guys. I have solved the problem.
|
|
|
|
|
read each item from structure one by one and append it to some string finally add string to list box.
|
|
|
|
|
Hello
I want to create a refernce vector of class object in vs 2008.I m doing in vs2002 like
vector<piece> &m1 = garment->get_m1();
Piece is my class.
but when i m doing same in vs 2008,It is creating problem during m1.push_back().
Actually,as i think it is not getting Initialized properly,
So,Is any different way to use refernce vectors of class objects?
|
|
|
|
|
I suppose you should elaborate a bit (and show more code).
BTW could you please use the code block button when posting code snippets?
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 need to clarify your question a bit.
First, please use the code block tags around your example code. Standard HTML does not render code properly
Secondly, you need to show the implementation (or a cut down version of it) of the get_m1 method
Thirdly, what is the problem that you are getting during m1.push_back ?
I'm not sure what you mean by a "reference vector of class objects".
Do you mean a vector of references to class objects? If you do then this will not compile since it is not possible to have a vector (or any other container) of references. The type for std::vector must be assignable[^], and references are not assignable. Use a vector of pointers to objects instead.
Or do you mean a reference to a vector of class objects? This is at least legal and should work, e.g.
class Piece
{
};
class Garment
{
public:
std::vector<Piece>& get_m1()
{
return pieces;
}
private:
std::vector<Piece> pieces;
};
static void foo()
{
Garment garment;
std::vector<Piece>& m1 = garment.get_m1();
Piece piece1;
m1.push_back(piece1);
}
Graham
Librarians rule, Ook!
|
|
|
|
|
Hi All.
I have a problem with opening an html file. The file is UTF-8 encoded.
My code is
ShellExecute(NULL, L"open", L"C:/PROGRAM FILES/MOZILLA FIREFOX/FIREFOX.EXE", L"file:///C:/DOCUME~1/MACADA~1/LOCALS~1/Temp/index.htm", NULL, SW_SHOWNORMAL);
it returns a value greater than 32 (success). But it opens a blank page.
When i look the page sources i can see that there is "Unicode conversion problem" is written in body tag.
If i try to open another file (ANSI encoded) it works properly.
Anyone have an idea?
Thanks,
Venera
|
|
|
|
|
What are your character encoding settings in FF? Have you tried IE with that file?
|
|
|
|
|
FF character encoding is set to Western but even setting to Unicode (UTF-8) does not help.
The same behavior is in IE.
|
|
|
|
|
OK, what happens when you open the file directly in FF or IE?
|
|
|
|
|
|
Have you tried without the "file:///"?
|
|
|
|