|
AFAIK yes, it is possible, but how accurate it is... depends on code.
Can you show some related lines?
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
AnayKulkarni wrote: progress bar is getting displayed on dialog box but it is not showing the process of progress
You can create a function in the modeless dialog's class that updates the progress bar's state. Call that function at various points in your process.
Judy
|
|
|
|
|
AnayKulkarni wrote: ...but it is not showing the process of progress.
Do you have code in place to do the updating?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hi all,
Can anybody help me in converting EXIF format to 24 bit BMP format?,
I got the following details When i checked about the format of the jpg file
1. JPEG FOrmat : EXIF
2. EXIF version : 0220
3. Encoding used : Baseline
kkr
|
|
|
|
|
Will this[^] helpful ?
Regards,
Paresh.
|
|
|
|
|
If you don't want to do the JPEG decompression yourself, you could use
GDI+.
For example, using the shared Visual C++ class CImage (which uses GDI+ for loading/saving)...
CImage img;
img.Load(_T("C:\\Path\\MyEXIFfile.jpg"));
img.Save(_T("C:\\Path\\MyEXIFfile.bmp"), ImageFormatBMP);
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi,
Im trying to loop through a string to get all layout of words in a forward manner and then search for patterns elsewhere.
I first created this:
spacePos.push_back(0);
for(int j = 0; j<input.length()+1; j++)
="" {
="" if="" (input[j]="=" char(32)="" ||="" j="=" input.length()){
="" spacepos.push_back(j);
="" }
="" }
basically="" pushes="" integers="" onto="" a="" vector="" of="" ints,="" with="" the="" start="" and="" end="" position,="" also="" where="" any="" spaces="" are.
then="" i="" try="" ot="" loop="" as="" so:
="" for(vector<int="">::iterator ii = spacePos.begin(); ii!=spacePos.end(); ii++)
{
for(vector<int>::iterator ii2 = spacePos.begin(); ii2!=spacePos.end(); ii2++)
{
if (*ii2 == 0 || *ii >= *ii2) continue;
if (input.substr(*ii, *ii2) != "")
{
//other code
}
}
}
so if the input line was "hello i am" it would 'hopefuly' do this>
"hello"
"hello i"
"hello i am"
"i"
"i am"
etc
but the problem is, i'm counting the spaces in the first for loop and storing them and after the first iterator of the for loop for ii, it's going out of sync and the longer the string the more this affect occurs:
"hello"
"hello i"
"hello i am"
" i"
" i am"
i tried trimming but it just causes so many problems with long strings so i really want to sort this out in the first for loop where i obtain all the space positions.
Does anyone have any ideas? or maybe even a better way to do what i want?
Cheers
|
|
|
|
|
The first thing to verify is that spacePos contains exactly what you think it should. If it doesn't, then the other two for() loops are irrelevant.
admgamer wrote: if (*ii2 == 0 || *ii >= *ii2) continue;
if (input.substr(*ii, *ii2) != "")
{
//other code
}
What is this snippet of code supposed to do?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
i am using vc2005 and the code is compiled in unicode mode. How to disable it?
KIRAN PINJARLA
|
|
|
|
|
To disable unicode support and use multi-byte support instead, go to your project properties (right-click on your project and select properties under Solution Explorer), then go to "Configuration Properties" in the treeview on the left, select "General", and change "Character Set" from "Use Unicode" to "Use Multi-byte character set" from the property list on the right.
|
|
|
|
|
Thank you so much.
Adi Vishayam
|
|
|
|
|
I need one more help. I am debugging some pre written code. I found
#using<somex.dll> in that. while i am compiling its giving an error
fatal error C1190: managed targeted code requires a '/clr' option
What does it mean.
Adi Vishayam
|
|
|
|
|
Kastapadi.Saadhinchaali wrote: What does it mean.
See here.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Choose the item yourproject Properties of the menu Project
(yourproject stands for the name of the current active project),
then select Configuration Properties->General in the newly appeared window.
Finally change the Character Set property.
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.
|
|
|
|
|
Don't. Windows NT APIs are entirely Unicode-native - if you run an ANSI application on Windows NT-based operating systems (NT 4.0, Windows 2000, XP, Server 2003, Vista and later) all your strings get converted back to Unicode before being processed, and if asking for string values the results will have to be converted back to ANSI from Unicode.
Also, you will find it much more difficult to localize your application. Some scripts are Unicode-only, there is no equivalent ANSI code page.
Right now you should only think about compiling an ANSI application if running on Windows 98 is a requirement - and these OS usage share statistics[^] are showing less than 1% usage, barely more than Linux - and if that is a requirement, you should consider looking into the Microsoft Layer for Unicode[^], which allows programs compiled for Unicode to run on Win9X.
DoEvents : Generating unexpected recursion since 1991
|
|
|
|
|
Hello All,
i am working on application using directx with VC++. when i change resolution setting than my graphics gets distorted.
i want to set fix aspect ratio for my application.
if any body have idea about that please share with me.
thanks
bankey
|
|
|
|
|
A way would be to find out a coeficient to relate the needed size with the actual resolution. Then get the desktop apearance and apply the needed multiplier to your graphic.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
In my project I need to write text to file. For that I need to display the Save dialog and there user should be able to create folder and enter file name to save the file in that location. How can I do?
Actually I need to display the Save dialog on click to One command button.
|
|
|
|
|
When you show save dialog CFileDialog m(0); m.DoModal(); you can check return value of Domodal and then use of GetFileName();,user can make folder in this dialog.
|
|
|
|
|
In addition to Hamid's answer, the Win32 API way is to use GetSaveFileName
Judy
|
|
|
|
|
Hello,
I am having problem with SQLBindParameter().
I have done the following
UCHAR query3[30] = "{call tryproc1(?)}";
int UI = 1;
SDWORD ind2=SQL_NTS;
retcode = SQLBindParameter(hstmt1,
1,SQL_PARAM_INPUT,
SQL_C_SHORT,SQL_NUMERIC,
1,0,&UI,0,&ind2);
retcode = SQLExecDirect(hstmt1,query3,SQL_NTS);
In the above query3 string if I replace ? with 1 then the query is executed and the procedure but the question mark doesn't work.
What must be the problem?
Please help.
Pritha
|
|
|
|
|
|
Hello,
I am having problem with SQLBindParameter().
I have done the following
UCHAR query3[30] = "{call tryproc1(?)}";
int UI = 1;
SDWORD ind2=SQL_NTS;
retcode = SQLBindParameter(hstmt1,
1,SQL_PARAM_INPUT,
SQL_C_SHORT,SQL_NUMERIC,
1,0,&UI,0,&ind2);
retcode = SQLExecDirect(hstmt1,query3,SQL_NTS);
In the above query3 string if I replace ? with 1 then the query is executed and the procedure but the question mark doesn't work.
What must be the problem?
Please help.
Pritha
|
|
|
|
|
prithaa wrote: I am having problem with SQLBindParameter()...What must be the problem?
The problem is that you are not checking the return value of SQLBindParameter() . When it fails, it makes no sense to then call SQLExecDirect() .
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I use VS2005.
But the problem is that,when I debug a program to some codes,VS usually tell me that there is no source code.Why? The .h and .cpp files are all included.
Thanks.
GOOD LUCK
|
|
|
|