|
Well you cannot include .rc in static lib. cmk too said to include in exe.
It is not possible
so as we suggested you can either create the dialog dynamically or include .rc file in exe.
These are the only options in front of you.
Величие не Бога может быть недооценена.
|
|
|
|
|
That fine.
Its not easy to create dialog dynamically as we have lots of dialogs(with so many controls in it) in the .rc file.
|
|
|
|
|
Then you have include your .rc file to test.exe workspace.
Unfortunately you cannot add .rc in static lib, it wont work
Величие не Бога может быть недооценена.
|
|
|
|
|
My project is to detect the eye from the face image.the project is similar with your project. Open cv is a new software for me.. Can I get a coding to detect the eye from the face image and show it in a form of square shape.I hope you can help me. I had loaded the face image.. and then I must detect the eye but i don't have the accurate coding to detect the eye. Can you help me to solve this problem??
|
|
|
|
|
|
Hi all, can comeone help me with this? I am having error with it. Thanks alot
CStdioFile fp2(_T("C:/abc"), CFile::modeRead | CFile::shareExclusive);
CString fp2_rdtxt;
while (fp2.Read(fp2_rdtxt, fp2_rdtxt.GetLength()) != EOF)
{
fp2_rdtxt.Format("%lf %lf %lf\n", &a, &b, &c);
.........
.........
}
fp2.Close();
|
|
|
|
|
Nicholas Amh wrote: Hi all, can comeone help me with this? I am having error with it. Thanks alot
Well you don't explain what your error is and I'm not an expert in MFC, but I can guess from the code above that you are fairly new to this. The line
while (fp2.Read(fp2_rdtxt, fp2_rdtxt.GetLength()) != EOF)
uses the GetLength() method on fp2_rdtxt, but you have not initialised the variable so it has no length. Hence you will not be able to read data into it. The statement
fp2_rdtxt.Format("%lf %lf %lf\n", &a, &b, &c);
will also not work in my view.
I suggest you spend some more time with the documentation and learn the fundamentals of these classes and their methods.
|
|
|
|
|
I am having error that shown below
Unhandled exception at 0x7c812afb in GUI2.exe: Microsoft C++ exception: CFileException at memory location 0x015ff79c..
fp2.Read(text, text.Getlength()) can't work
|
|
|
|
|
Nicholas Amh wrote: fp2.Read(text, text.Getlength()) can't work
That's what I previously explained to you. Please read the documentation and learn how to use variables, classes, their properties and methods.
|
|
|
|
|
CStdioFile ipFile;
if(ipFile.Open(_T("C:\\abc.txt"), CFile::modeRead | CFile::shareExclusive | CFile::typeText) == 0)
{
cout<<"unable to open file.";
return 0;
}
CString str;
while( ipFile.ReadString(str) != NULL)
{
cout<<str<<endl;
}
ipFile.Close();
This code works inside your project? no?
|
|
|
|
|
Hi, Thanks for helping out. But it don't work.
|
|
|
|
|
some error, exception or just wrong output?
|
|
|
|
|
Thank you theCPkid. I knew where is the error. I can't put CFile::shareExculsive or shareDenyRead ot etc. Thanks alot
|
|
|
|
|
glad your problem is solved now.
|
|
|
|
|
Anyone know how to color the background , Text and the border of the an owner drawn CButton ?
|
|
|
|
|
[this]shows how to set text color. inside the same function, you can draw a background color and border.
|
|
|
|
|
|
Have a look at this[^]
- ns ami -
|
|
|
|
|
There is no simple set functions to change the color of a button. You have to owner draw it. She the Owner Draw Button Step-by-Step [^] article.
modified on Wednesday, October 21, 2009 8:04 AM
|
|
|
|
|
No.
You can use Shell buttons
|
|
|
|
|
|
Hi All,
I am using visio2003 to draw a class diagram , in that for a class i have given a method and for that i have WPARAM and LPARAM as the parameters .But in visio there is no option to give WPARAM and LPARAM as parameters in method for a class.Can anyone tell me how to do it.
Thanks,
Hari
|
|
|
|
|
Hi All,
I need very basic program in c using UTF charecter.
For example:
Give the input as UTF character and Print the same input as a output.
Thanks in Advance..........................
Mohan T
|
|
|
|
|
Is this using microsoft products. If so then why the need for C rather than C++. Might be able to help
Iain
|
|
|
|
|
Thanks for ur reply...But we created all codes in C..only this part pending......
Mohan T
|
|
|
|