|
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 ?
|
|
|
|
|
I thought thr may be knwoledge geeks who work apart frm money i think ur not one of thm thnk u.
And thr was some one who provided me the solution independent of money thnks.
sampath-padamatinti
|
|
|
|
|
sampath-padamatinti wrote: I thought thr may be knwoledge geeks who work apart frm money i think ur not one of thm thnk u.
And thr was some one who provided me the solution independent of money thnks.
No, I don't provide help here for money, nobody does it here. What I was saying is that requesting urgent help is considered extremly rude because why would your question be more urgent than others ? What I was saying is that since this is a website for which people help for free, you can't ask people to answer your question immediatlely.
I also already replied your question, even if it was badly formated and posted in the wrong forum.
Furthermore, avoid using txtspk, it is also considered rude.
|
|
|
|
|
sorry sir,
I am very harsh in previous mail. and thanks for your reply. thanks so much for valuable answer.....
sampath-padamatinti
|
|
|
|
|
Hi All,
I am using Visual studio 2008 and developing SDI MFC application. I would like to increase the height of the default menu. By default the menu height is 20 pixel but i want to increase it to more.
Can any one please help me how to do this?
Thanks in advance.
Mutpan.
|
|
|
|
|
That is a problem, but it can be done via owner drawn menus. But it is a bunch of work.
Consider doing other thing first.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
You may need to look at the HKCU\Control Panel\Desktop\WindowMetrics\MenuHeight value.
"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
|
|
|
|
|
No, very bad :never read registry
It's updated by SPI api
|
|
|
|
|
hello Friends
i m using OPENFILENAME for opening files from dialog but if i change view to thumbnail and then open again dialog then view goes to list view.It does not stays the same thumbnail view.Is any parameter for tht to keep staying in same view?
thanks & Regards
Yogesh
|
|
|
|
|
I am not sure if it can be done using some documented function. This article[^] describes a trick to do it.
-Saurabh
|
|
|
|
|
Thanks for ur reply Sourabh but I didnt get any Idea.The link u provided me is using MFC.Do u know any other way to hadle this?
|
|
|
|
|
Well, even though article is using MFC the you can use the idea to convert to code to Win32. The article uses GetParent, GetDlgItem and SendMessage functions to set the view. What is it that you don't undertand in the article. Check the code for CFileDlgEx::OnFileNameChange in the FileDlgEx.cpp file.
-Saurabh
|
|
|
|
|
Hello,
I want to charts using excel through vc++. I have included excel type library xl5en32.h but in these files _application class or _worksheet class doesnt exist . But the example that i have read of automation from codeproject or any other site use _application class for automation.
How should i go about in writing charts in vc++ with xl5en32.h file
Pritha
|
|
|
|
|
you have to include the right files. Check whether some dll or tlb are missed.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Hello,
Thank you for your reply
but which dll or tlb files to include.
I have included the excel type library what else should i include.
Pritha
|
|
|
|
|
Check every "#include" or "#import" of the sample.
I have a sample where this useful code could be found
#pragma message ("Make sure you go to Tools.Options.Directories and add the paths to mso97.dll and vbeext1.olb. Mso97.dll will usually be in c:\\\"Program Files\"\\\"Microsoft Office\"\\Office, and vbeext1.olb will be in c:\\\"Program Files\"\\\"Common Files\"\\\"Microsoft Shared\"\\VBA")
#import "mso9.dll" no_namespace rename("DocumentProperties", "DocumentPropertiesXL")
#import "vbe6ext.olb" no_namespace
#import "excel9.olb" rename("DialogBox", "DialogBoxXL") rename("RGB", "RBGXL") rename("DocumentProperties", "DocumentPropertiesXL") no_dual_interfaces
or this looks quiet fine: BasicExcel - A Class to Read and Write to Microsoft Excel[^]
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Hi All,
I am writing a Application where a UI thread has to fill a list box control .
Steps Done By me:
1.Created a Dialog Bases application with a list bOx and button(MyDlg.cpp).
2.Created a thread class(MyUIThread.cpp) and a controlling function(MyThreadhandler).
3.When i click the OK Button in the dialog i post a message and create the thread and in the Thread controlling fucntion i have to fill the ListBox.
4.Since the thread is in a different Class i am not able to get the member variable of the listbox in the thread controlling function(MyUIThread.cpp) and fill the List Box.
Can u tell me how will i get the member variable from the dialog class to the thread class.
Kindly Help me out here....
Thanks,
Hari
modified on Tuesday, September 22, 2009 12:30 AM
|
|
|
|
|
You can always pass the handle of the list box to the other class using methods.
Once you get the handle, you can create an object using the FromHandle[^] static method.
However, it is not a good idea to access controls from a thread other than the UI thread that owns the control.
The worker thread that you have must send the LB_ADDSTRING Message[^] to the UI thread when it wants to add a string to the list box.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Thanks for the quick reply!!!!
The static method u told returns a window pointer and how can a add string to the list box with the window pointer !!!!!
I have used CWnd::GetDlgItem to get the ListBox handle is that OK or should i do something else..
Can u tell me how to use LB_ADDSTRNG Message if Possible..
Thanks,
Hari
|
|
|
|
|
SendMessage(GetDlgItem(IDC_LIST1)->m_hWnd, LB_ADDSTRING, 0, _T("String to be Added"));
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
When i use GetDlgItem(IDC_LIST1)->m_hWnd it throws an assertion and m_hWnd is null ..... ASSERT(::IsWindow(m_hWnd));
Please tell me how to solve this problem...
Brief Steps to what i did in the program:
1.Derive a class from Cwinthread and add a thread controlling function
2.CDlg::OnBnOK
{
Create a UI thread;
Post a message to Thread Controlling fucntion.
}
3.In Thread controlling function Fill the List Box.
4. Here i am getting m_hwnd as NUll.
|
|
|
|