|
i am using vs2008.
i did install the redistributable package on the machine..and still the same problem persists....
|
|
|
|
|
Did you install the redistributable package for VC2008 ?
Otherwise, as someone else mentioned, another solution would be to statically link to the C-runtime and MFC dlls.
|
|
|
|
|
Code Block 1
int iWindExtX = 3500;
int iWindExtY = 4375;
pDC->SetMapMode (MM_ISOTROPIC);
pDC->SetWindowOrg(0,0);
pDC->SetViewportOrg(0,0);
pDC->SetWindowExt(iWindExtX , iWindExtY);
pDC->SetViewportExt(972, 1404);
m_pDC->Rectangle(0, 0, iWindExtX, iWindExtY);
Code Block 2
int iWindExtX = 2500;
int iWindExtY = 4500;
pDC->SetMapMode (MM_ISOTROPIC);
pDC->SetWindowOrg(0,0);
pDC->SetViewportOrg(0,0);
pDC->SetWindowExt(iWindExtX , iWindExtY);
pDC->SetViewportExt(972, 1404);
m_pDC->Rectangle(0, 0, iWindExtX, iWindExtY);
In the above two code blocks the window extend size only differs.
My question is whether drawn rectangle using above two code blocks are of same size?
If differs then please tell me how?
|
|
|
|
|
|
Hi,
I want to read all the entries that are applied through group policy using wmi.
How can i do that ?????????????
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
|
|
|
|
|
Hello to all,
can anyone provide me the different IOCTL codes for FTDI driver. I am using FT232BM chip and want IOCTL codes of FTDI driver to change lattency time of the driver.It is really very urgent so plz help me out.
Thanks and Regards,
Anay
|
|
|
|
|
Don't you have some kind of documentation which was supplied with the chip ? I'm afraid those codes are specific to the manufacturer so, unless somebody already worked with this chip, nobody here will be able to help you...
|
|
|
|
|
As Cédric already mentioned above and I mentioned here[^], you should consult the vendor, or FTDI in this case, and the documentation they provide.
Iain Clarke suggested nearly half a year ago here[^] that you should use the D2XX solution since it is easier to use. The API of the DLL documented in this PDF[^] also contains a function called FT_SetLatencyTimer() and I think it would reasonable to assume that the function does set the latency timer...
I guess I must have misunderstood something because all I did was to Google for "FTDI" and the first hit was the home page of FTDI where I found this, to my understanding, useful information.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Hi All,
Please help me in this issue...
///using vc++///
I want to get the C M Y K values from a tiff file. I already getting the RGB values using Image class(gdi +).. Please share your ideas..
Regards,
Spk
|
|
|
|
|
You don't need to get the CMYK values directly from the TIFF file if you already have the RGB values, because the RGB values can be converted to CMYK values. You can find an information for this conversion here[^].
Nuri
|
|
|
|
|
|
No problem man! Cheers! 
|
|
|
|
|
CMYK colors are device-specific. doing the simple RGB->CMYK conversion (as linked in the reply above) is an approximation to CMYK, but not a very good one. it will be OK for some images, but total crap for many.
if you want to convert RGB to CMYK with any kind of accuracy and consistency, you need to know two things: the color profile of the device that created the RGB image and the color profile of the device that will render the image. then you can use a CMS (Color Management System) to convert between the two.
MSDN[^]
i've had good luck with little CMS[^]
|
|
|
|
|
Thank you for this useful information Chris!
In the past i've been done some RBG->CMYK conversions and everything was OK.
But now I understand that this was an approximation and I was a lucky man.
Thanks again!
Nuri
|
|
|
|
|
It seems like Microsoft's image functions will read a CMYK file, but it's immediately converted to RGB. Aurigma.com makes class libraries that will read CMYK images as CMYK, without conversion. Their class libraries also provide image processing and conversion.
|
|
|
|
|
Hi All
I am geting debug assertion failed Line 3232 in file dbcore.cpp.Code is here
Database database;
try
{
if(database.OpenEx(_T("Driver={MySQL ODBC 5.1 Driver};Server=localhost;Database=;User=root; Password=root;Option=3;"), CDatabase::noOdbcDialog))
{
AfxMessageBox("Connection Successfully");
CString szSql = "SHOW DATABASES";
CRecordset rs(&database);
rs.Open( CRecordset::forwardOnly, szSql);
while (!rs.IsEOF())
{
CString szBuf;
rs.GetFieldValue("DATABASE", szBuf);
rs.MoveNext();
}
rs.Close();
}
}
catch(CException *e)
{
AfxMessageBox("Connection Failed");
}
i am geting assertion in this line
rs.Open( CRecordset::forwardOnly, szSql);
Debug assertion failed Line 3232 in file dbcore.cpp.
I see line 3232 in dbcore.cpp file.There i found this syntax
ASSERT(m_nFields != 0);
Can any one tell how can i solve that debug assertion.
Plz help me
|
|
|
|
|
|
Thanks for reply.
I use CDBException class for catch the error.But it's showing same Assertion.
|
|
|
|
|
Your query didn't have any output fields.
Probably something wrong with the query.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Ok but same query i have check in mysql,then it's working fine.If you have any more query then plz give me.
|
|
|
|
|
See if this [^] helps.
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 CPallini
Thanks for reply.may i know where is concept of my question in your post?Plz help me
|
|
|
|
|
It looks like you've to change the flag "Ignore # in table name" in your ODBC driver in order to make the statement 'SHOW DATABASES ' work.
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]
|
|
|
|
|
So i change
CString szSql = "SHOW DATABASES"; to this
szSql = "SHOW DATABASES from mysql",
or
rs.Open( CRecordset::forwardOnly, szSql); to this
rs.Open( _T("Driver={MySQL ODBC 5.1 Driver};Server=localhost;Database=;User=root; Password=root;Option=3;"),szSql,CRecordset::forwardOnly);
Both are givesame debug assertion.
Plz help me
|
|
|
|
|
Ummmmm - "SHOW DATABASES" isn't SQL? It IS a MySQL command - but that doesn't necessarily make it something you can execute using ODBC?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|