|
something like this ?
void CMyView::SomeFunc()
{
CMyDialog dlg;
if (dlg.DoModal() == IDOK)
{
m_myVar = dlg.m_editVar;
}
}
|
|
|
|
|
You can also pass the old value to its constructor as the initial value and make a "Get" method in the dialog class to return the new value.
|
|
|
|
|
|
void CMyView::SomeFunc()
{
CMyDialog dlg;
if (dlg.DoModal() == IDOK)
{
m_myVar = dlg.m_editVar;
}
}
This works fine for OK button but does not work for other buttons such as Connect having id IDCONNECT... any idea why?
if (dlg.DoModal()==IDCONNECT)
{// does not work
}
|
|
|
|
|
Hi all,
I am making my application unicode supporting one. i am using visual studio 2008.
when i try to write texts available as columns in my application in to a file using fwrite function, i am getting values like this..
239††††††††먠몭몭몭몭 test†††††††††††††††††††먠몭몭몭몭몭몭몭몭몭".. actually my column values are "239 test".
Can anyone help me why this is coming and how to get rid of this?
Code Snippet:
fwrite(Currentrow, Currentrow.GetLength()1, f) where Currentrow is CString...
Please let me know if am unclear...
Thanks,
Rakesh.
|
|
|
|
|
First thing is: If you're using MFC, why not use the CFile class instead?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi,
Is there a way to programmatically change the column width of CMFCPropertyGridCtrl?
|
|
|
|
|
Hi all,
I want to Read and Write to Microsoft Excel with xls and xlsx format.
i have read an article which works fine but its not support XLSX files.
BasicExcel - A Class to Read and Write to Microsoft Excel[^]
i want to read and write xlsx type files also.
please help me for this.
provide me any guidance and any example for xlsx files.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
|
I dont want to use any database or ODBC,please suggest me any other option for this.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
|
"_$h@nky_" wrote: i have read an article which works fine but its not support XLSX files.
XLSX follows an entirely different format[^]. So, you shouldn't expect BasicExcel to work with Excel 2007.
"_$h@nky_" wrote: provide me any guidance and any example for xlsx files.
See if How to automate Excel from C++ without using MFC or #import[^] helps you.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
This library http://www.libxl.com can read and write xls and xlsx formats directly. Perhaps it will be solution for you.
|
|
|
|
|
Hello,
I'm new in OpenGl Library.I'm trying to learn Opengl to use it in Visual C++ Windows Form Application .
I can't work application in here:Creating an OpenGL view on a Windows Form[^]I can build it.But never debugging in Visual Stduio 2008.Where can I change in this code?
Another problem of mine.How can I use Opengl in PictureBox toolbox in Visual Studio 2008.I didn't come across any document on internet.Do you know any document,tutorial,code example etc. about this topic?
Could you help me please?
|
|
|
|
|
hiiiiiiiiiiiiiiii i want to read & display bitmap image using c.plz help me uptilnow i open the image ,read it ,mesure its width , hight, type etc but I cant put it in the form of array iwant to display array o image as well as i/p image also so plz help me.
|
|
|
|
|
See, for instance [^].
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]
|
|
|
|
|
Hi ,
I am working on Access data base using MFC DAO classes.
Can I set/change the password of the data base programmatically.?
If yes please give me an idea.
Regards,
Sunil Kumar
|
|
|
|
|
Hi,
I have traverse all folder of Outlook in c# but not able to do same in c++.
please guide to do that.
Code is here
foreach (Microsoft.Office.Interop.Outlook.MAPIFolder folder in start)
{
node = node.Nodes.Add(folder.Name);
Microsoft.Office.Interop.Outlook.MAPIFolder found = TraverseTee(folder.Folders, name, bBuildTree, node);
node = node.Parent;
}
|
|
|
|
|
CFileFind can be called recursively to do the same
Величие не Бога может быть недооценена.
|
|
|
|
|
CFindFile traverse file but I want to traverse folder from outlook.
If this can happen with with please give any idea with code.
|
|
|
|
|
|
thank you for reply but no luck
|
|
|
|
|
Does this[^] help?
Regards,
Sandip.
|
|
|
|
|
|
I want to capture the desktop as an image just like printscreen function. Any Win32 API or MFC class that perform the task.
THANKS.
|
|
|
|