|
Yes, the old brain only working on one cylinder...confusing string with char*.
|
|
|
|
|
noticed when moving around the protected names...
protected:
string m_weight;
string m_name;
string m_gender;
the problem moves to gender. ect...
very very strange
|
|
|
|
|
Even stranger ... I have copied your code, compiled and run it and it works perfectly! May I suggest the extracts you have posted lack some information relevant to the problem.
|
|
|
|
|
|
What do you mean by lock?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
Send the EM_SETREADONLY [^] message to the edit box.
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]
|
|
|
|
|
How to create an HBITMAP from a window's HDC?
|
|
|
|
|
CreateCompatibleBitmap [^].
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]
|
|
|
|
|
NO, I want that it is like the LoadBitmap function.
|
|
|
|
|
vcguileaner wrote: NO, I want that it is like the LoadBitmap function.
What do you mean? Do you want to copy the window client area to a bitmap?
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]
|
|
|
|
|
|
See, for instance, here [^].
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]
|
|
|
|
|
i want to get an HBITMAP like LoadBitmap function.
|
|
|
|
|
Well, the sample code in the link I provided, shows how to.
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]
|
|
|
|
|
it writes an image file rather than returns an HBITMAP.
|
|
|
|
|
What a lazy guy you are: if you stop copying from the sample code just before the following lines
GetObject(hbmScreen,sizeof(BITMAP),&bmpScreen);
Then you have your requested HBTIMAP and no more.
BTW: The image file was for free
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]
|
|
|
|
|
Now, now - there's no need to shout.
|
|
|
|
|
At first you should learn what this handles and the beloved BITMAPINFO are representing and than you can use CreateCompatibleBitmap() and GetDiBits()
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
How to do?
|
|
|
|
|
|
Hi,
I am using GLUI Ver 2.3.5 for my project.I need to implement password field (i.e., the characters should be shown as *******).Please suggest if this can be implemented using glui ver 2.3.5.
Thanks in advance,
Govind
|
|
|
|
|
What does this have to do with C/C++/MFC. Please go to the GLUI website and ask for help.
|
|
|
|
|
Hi,
I have a object for a class example with me. And i want to get the class dynamically. That is based on the object i have to get the class name.
And one more problem with my java application, I will get a class name when object is created. based on that class name I have create a one more object. How it possible. I read one method getclassname() in object package. But how can address this one please help me any one it is urgent.
sampath-padamatinti
|
|
|
|
|
sampath-padamatinti wrote:
I have a object for a class example with me. And i want to get the class dynamically. That is based on the object i have to get the class name.
The short answer is no, you can't (you have to implement your own mechanism for this task).
sampath-padamatinti wrote: And one more problem with my java application
Do you know this is the Visual C++/MFC forum? Moreover, do you know there is a Java forum [^] at CP ?
sampath-padamatinti wrote: But how can address this one please help me any one it is urgent.
'urgentz' requests go straight into the recycle bin.
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 are posting in the C++ forum but you are mentioning Java in your post. So, which language are you talking about ? If it is Java, please post in the Java forum.
sampath-padamatinti wrote: I have a object for a class example with me. And i want to get the class dynamically. That is based on the object i have to get the class name.
In Java? If yes, you want to retrieve the class or the class name of the object? You can do something like this (Java):
String className = myObject.getClass().getSimpleName();
sampath-padamatinti wrote: And one more problem with my java application, I will get a class name when object is created. based on that class name I have create a one more object. How it possible. I read one method getclassname() in object package. But how can address this one please help me any one it is urgent.
Could you give an example of what you are trying to do ? I didn't understand your question.
BTW, specifying that your question is "urgent" is considered rude. Why is your question more urgent than other questions ? Are you paying people to reply you ?
|
|
|
|