|
Yes, MFC doesn't impose any limits. The only limits are those imposed by Windows.
Dave.
|
|
|
|
|
Dear All,
Good Day... I built a program using MFC AppWizard(EXE), when i try to use the Global Object theApp in the Document Class it gives me an error Undeclared identifier.
how can i solve this.
NOTE: when i include the .CPP file that containing the decleraion it works but this is wrong i should not include a CPP file
Thank you all,
Best Regards
Mohammad Zakarni
|
|
|
|
|
theApp is defined locally in cpp file of your CWinApp derived class.
Use AfxGetApp() instead.
Pavel
Sonork 100.15206
|
|
|
|
|
Thank you... Very much
Best Regards,
Mohammad Zakarni
|
|
|
|
|
How can i include(embedd) a common dialog control in one of my property pages..???
Mad Coding
|
|
|
|
|
in resource edit, set the dialog as child.
in coding, create it as modalless with your page as parent.
note: modalless dialog must not be local varable.
includeh10
|
|
|
|
|
See these articles for ideas:/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Hi!
I have a simple SDI program, with a simple recordset. I want to my toolbar for exploring see and working in Print preview...
How i can do that?
Sorry for my poor english...
Thanks codeprojects!
|
|
|
|
|
i am having trouble with this coding. can any body give me pointers or hints to make it work? here is my code to skip:
struct data{
void open(ifstream&);
char name[30];
};
void open(ifstream& fin)
{
data input;
char temp;
int count=0;
fin.get(temp);
while(((temp!='\t') || (count==0)) && fin)
{
if(temp!='\t')
{
input.name[count]=temp;
count++;
}
fin.get(temp);
}
input.name[count]='\0';
cout<
|
|
|
|
|
I'd like to add a thumbnail view to the project:
http://www.codeproject.com/file/CFileFinderEx.asp
as written, it is trivial to change the search list to show details, small or large icons, or as a simple list. thumbnail view is another matter.
can someone set me on the right track? I would describe my programming experience as beginner.
Thank you.
|
|
|
|
|
|
I have text file "1.txt" and there are these below hex number in text file
"3688D9CC844E3F755"
If I want to add another hex number like "12B5B46CA713" at new line. How to write code to do that? Thank you.
|
|
|
|
|
You can use CreateFileMapping() method or the ReadFile functionalities from Win32 API. Read more in MSDN!!!
|
|
|
|
|
|
you can also use CStdioFile to do all these:
CStdioFile file<br />
file.Open(...);<br />
file.WriteString("1e34efad");<br />
file.Close();
-----------------------------
Mr.Whelk
-----------------------------
Zhuhai City ,Guangdong ,China
|
|
|
|
|
Is there a function in standard C++ library that converts a valid hexadecimal string into an integer? For example:
char sz[] = "0xffff";
DWORD dwDec = SomeFunc(sz);
Of course this can easily be done by writing a function by myself but I'm just asking...
|
|
|
|
|
char sz[] = "ffff";
long lDec = strtol(sz, NULL, 16);
--Mike--
"I'd rather you just give me a fish today, because even if you teach me how to fish, I won't do it. I'm lazy." -- Nish
Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
|
I access my statusbar embeded progressctrl as:
(((CMainFrame*)AfxGetMainWnd())->m_wndStatusBar.m_WzdProgressCtrl).StepIt();
I want it to reflect progress as I proceed in a function which itself calls long time consuming functions, several of them. How shall I call Stepit to reflect this progress? Some of the functions belong to other classes, not my View class.
|
|
|
|
|
if you have time consuming functions , its good to put them in a new thread
maybe you need to send a WM_PAINT or call the RedrawWindow of the progress control in order to reflect the changes made by the StepIt(), because if you have a very time consuming function in the main thread, the CPU will not process the windows messages until that function returns (i think)
_______________________________
Portal Imoguia Software Imoguia
MSN:maxsnts@hotmail.com
|
|
|
|
|
Actually, WM_PAINT is a message you never send yourself. RedrawWindow() is the correct way to make a window repaint.
--Mike--
"I'd rather you just give me a fish today, because even if you teach me how to fish, I won't do it. I'm lazy." -- Nish
Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
I was having trouble installing msadox.dll and msado25.tlb on the users machine. My app uses both. Can I distribute my app without these two and assume the user will have it automaticall?
Thanks
|
|
|
|
|
I don't think you need the .tlb file. These files are needed at compile-time, isn't?
If I'm wrong, please enlighten me
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|
|
I was using the Visual Basic packager and it included the tlb, so I really dont know...
Appreciate your help,
ns
|
|
|
|
|
no, its not a good idea to assume that the client have msadox.dll
_______________________________
Portal Imoguia Software Imoguia
MSN:maxsnts@hotmail.com
|
|
|
|