|
I had to look it up, but yes, it's one of them quadriwhatevers.
|
|
|
|
|
|
i know it's bad form to plug your own products, but this will do it[^]. though it's not free (not really expensive, either).
the DLL download package contains an app called ISDemo.exe, which does quad->quad warps.
|
|
|
|
|
As retriving the font name I need to retrieve glyf information from the ttf file. look at the code below this is not full code just a piece of code
void TTFReader::ReadGlyf()
{
setPosition(m_glyfOffset);//get glyf offset from the ttf file
for(int c=0 ;c < m_glyphs.size();c++)
{
int gl = m_glyphs[c];
//unsigned short k = readWORD();
unsigned short numberOfContours = readWORD();
unsigned short minx1 = readWORD();
unsigned short miny1 = readWORD();
unsigned short maxx1 = readWORD();
unsigned short maxy1 = readWORD();
setPosition(m_glyfOffset+m_ttf_pos);
gl = m_glyphs[c];
}
}
my code is not working correctly mean not giving the exact value for eg the number of contours for one glyph.
|
|
|
|
|
Dear All,
Can anybody tell me how to know a Hard Disk Drive(Including External USB Hard Disk) has S.M.A.R.T support or not?
Thanks
|
|
|
|
|
Have you looked at the WMI Win32_DiskDrive class?
"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
|
|
|
|
|
Yes.It gives informations on Hard Disk Drives.But it doesn't show whether a Hard Disk Drive has S.M.A.R.T support or not.
Thanks
|
|
|
|
|
Abinash Mohanty wrote: But it doesn't show whether a Hard Disk Drive has S.M.A.R.T support or not.
So what is the Capabilities field (with a value of 10) for?
"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
|
|
|
|
|
Hi to all,
I am facing one problem is that I am used VC++ 6 in that i have created one MFC based application,In that i added the static library but when I create one object from one its class in one function ,the function at the time of exit it gives me error followed,
Unhandled exception at 0x... (mfc42.dll) in test.exe: 0x.... : Privileged instruction.
So plz check that I hope that I will reach towards answer by using ur help.
|
|
|
|
|
Have you tried stepping into the function where the exception occurs?
Hint: The debugger...
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
|
Well, it is high time that you set up breakpoints and start debugging.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I have a problem when I set the text of a static text control. I do it with this code:
TCHAR buffer[sizeOfBuffer];
..............................
m_ProgressText.SetWindowText(buffer);
But the static control displays the text up to a point and many squares after that. The text might have newlines, but I don't know if that's the problem.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
can you show your code for initializing the contents of buffer variable
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
I get it from a file (a pipe actually) with ReadFile. It comes as ASKII text, which I then convert to Unicode and pass to SetWindowText.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
I just checked and it turned out ReadFile doesn't terminate the string, so the problem is solved
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
I guessed the problem would be with populating the buffer ...
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
MFC, STUDIO 2008, MDI-project
Christ has arisen!
There are 2 classes:
class CADO_MDIView : public CscrollView
class CAdodc_MDI : public Cdialog
В class CADO_MDIView имеем
CString m_s5(“YYYYYYYYYYY”);
MessageBox(m_s);
// ADO_MDIView.cpp : implementation of the CADO_MDIView class
#include "stdafx.h"
#include "ADO_MDI.h"
#include "ADO_MDIDoc.h"
#include "CntrItem.h"
#include "ADO_MDIView.h"
#include "Adodc_MDI.h"
// Adodc_MDI.cpp : implementation file
#include "stdafx.h"
#include "ADO_MDI.h"
//-1 #include "ADO_MDIView.h"
#include "Adodc_MDI.h"
//-3 #include "ADO_MDIView.h"
CADO_MDIView dlg_View; // adodc_mdi.cpp(211)
dlg_View.m_s5;
--------------------------------------
ado_mdiview.h(23) : error C2143: syntax error : missing ';' before '*'
ado_mdiview.h(23) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
ado_mdiview.h(23) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
ado_mdiview.h(23) : warning C4183: 'GetDocument': missing return type; assumed to be a member function returning 'int'
adodc_mdi.cpp(211) : error C2248: 'CADO_MDIView::CADO_MDIView' : cannot access protected member declared in class 'CADO_MDIView'
ado_mdi\ado_mdiview.h(18) : see declaration of 'CADO_MDIView::CADO_MDIView'
ado_mdi\ado_mdiview.h(15) : see declaration of 'CADO_MDIView'
--------------------------------------
// Attributes
public:
CADO_MDIDoc* GetDocument() const; // ado_mdiview.h(23)
--------------------------------------
class CADO_MDIView : public CScrollView
{
protected: // create from serialization only
CADO_MDIView(); // ado_mdi\ado_mdiview.h(18)
|
|
|
|
|
Well, you have errors in your ado_mdiview.h . What else?
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 have two applications running in parallel.I want to know the events generated in one application (because of
user's action on dialog controls)in the other application.
Those two applications are not communicating with each other directly.But the second application has the info of
dialog control ID's of the first application.
Is it possible to know the events generated in other application.?
Please tell me how can I do it.
Regards,
Sunil Kumar
|
|
|
|
|
sunilkumar.d wrote: Is it possible to know the events generated in other application.?
Well, yes - Spy++ can do it.
I suspect you need to create a global Windows hook that gets injected into the first application which can send information to the second one.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi Stuart,
Thanks for the reply.
Can I get any detailed info on how to do this?
Regards,
Sunil Kumar
|
|
|
|
|
Try this article[^] - CP has lots of useful articles that are just a search away - learn how to use the resources you have available to you - at your fingertips!
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi guys,
I have a following problem. I'm trying to read a range of data information from the following .dat file specified below.
I'm using the ifStream to read in the data from the Info.dat file. I have created the Student class object S[4], then using it to set the data that I've read in using variables. It is also a need for while loop to be used in the program. However, the problem is that it does not work out well.
My intended output is as such:
output:
------------
Alan <br />
no of subjects taken: 4<br />
no of passes :3<br />
total credits : 17 and so on.
Really appreciate the help.
Info.dat
Alan English 4 F Maths 3 P Science 5 P Geo 5 P
Danny English 2 P Maths 3 P Science 4 P Geo 2 P
Jane English 1 F Maths 3 F Science 3 P Computing 8 P
Keith English 5 P Maths 3 P Science 5 P Literature 4 P
int main()<br />
{<br />
Student S[4];
<br />
<br />
int count, credits, totalCred;<br />
string stud, module;<br />
char pass;<br />
<br />
int Cols;<br />
int Rows; <br />
<br />
Cols = 0;<br />
Rows = 0;<br />
<br />
<br />
count = 0;<br />
totalCU = 0;<br />
<br />
ifstream inFile;<br />
<br />
inFile.open("Info.dat");<br />
<br />
if (inFile.fail()){<br />
cout<<"ERROR: File cannot be opened!"<<endl;<br />
getchar();<br />
exit(1);<br />
}<br />
<br />
<br />
if (inFile.good()){<br />
<br />
<br />
<br />
while (Rows < 4){<br />
<br />
inFile>>stud;<br />
<br />
<br />
S[Rows].setName(stud); <br />
<br />
<br />
while (Cols < 4){ <br />
inFile >>module>>credits>>pass;<br />
<br />
S[Rows].setCode(module, Cols);<br />
...<br />
<br />
if (pass == 'P'){<br />
count++;<br />
}<br />
<br />
totalCred = totalCred + credits;<br />
<br />
Cols++;<br />
}<br />
<br />
<br />
S[Rows].setCount(count);<br />
<br />
<br />
<br />
<br />
<br />
<br />
Rows++;<br />
<br />
<br />
}<br />
}<br />
<br />
inFile.close();
DA: http://www.pohcbsonic.deviantart.com/
Blog: http://www.pohcbsonicx.blogspot.com/
Homepage: http://www.pohcbsonic.tripod.com/
modified on Tuesday, April 21, 2009 12:42 AM
|
|
|
|
|
pohcb_sonic wrote: if (pf == 'P'){
What is pf ? Where is it assigned a value?
pohcb_sonic wrote: totalCU = 0;
Where is this declared?
pohcb_sonic wrote: S[Cols].setCode(module, Cols);
Shouldn't this be:
S[Rows].setCode(module, Cols); pohcb_sonic wrote: while (Cols < 4)
When does Cols ever get reset so that this while() loop can run again for the next student?
pohcb_sonic wrote: totalCred = totalCred + credits;
Does totalCred accumulate for all four students?
What does your code do if more students are added, or a student adds/drops a class? Hint: it won't work.
All that aside, is your intent to do this in C using a few C++ objects, or create your own C++ classes and use the STL?
"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
|
|
|
|