|
dear all
after i debug my code, the erros displayed here: cannot convert parameter 1 from 'double [5]' to 'double'
how to solve this problem, anyone can give me suggestion. thanks
gentleguy
|
|
|
|
|
you are trying to assign an array to a double type variable. Iterate through the elements in the array and then you can assign the value at an index to a double type variable
BTW it would have been better if you could have posted the code snippet
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
modified on Monday, July 21, 2008 12:50 AM
|
|
|
|
|
gentleguy wrote: anyone can give me suggestion
Yes: Post the relevant code.
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]
|
|
|
|
|
If I didn't start to know you... I would say you are evil :P
Regards.
--------
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
Rating helpfull answers is nice, but saying thanks can be even nicer.
modified on Monday, July 21, 2008 5:50 AM
|
|
|
|
|
Nelek wrote: If I didn't start to know you... I would say you are evil
Actually you don't know me well, I'm actually evil!
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]
|
|
|
|
|
Ok... confusion solved
Regards.
--------
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
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Hello,
does someone have information about creating iso files ? I think for the first time a normal iso file with an iso9660 system (so no joliet support or else) is enaugh, but i cannot find any useful information.
I get an information from ECMA but, it describes the format very bad and too easy. So i didn't find a right way to get into it.
Thanks for help.
bye,
gabbana
|
|
|
|
|
Perhaps start by looking here[^]. Note that I found this with a few simple Google searches.
Steve
|
|
|
|
|
Yes well thats an option but not suitable, because i want to do this on a lowel level.
My application will start writing iso images directly using SPTI and mmc commands. The problem with the imapi would be to produce special iso images. As the specifications say, i have some bytes at the beginning for free use before the image starts, and this is what i cannot do with the imapi i think.
So i need to do all the stuff by functsions like ReadFile,WriteFile...
Thanks.
|
|
|
|
|
Are there no other information available ? I spend about 2hours again searching different keywords with google without luck.
So if someony have an idea, please help me!
Thanks again,
bye,
gabbana
|
|
|
|
|
I need help with visual c++.
cacls(Access Control List )
i try to use function :
"system("cacls ..../e /d Everyone")
to lock any file in my computer
but when i do it for the first time to any file i can't unlock the file again
"system("cacls ..../e /p Everyone:f")
|
|
|
|
|
Michael Adel wrote: ...i can't unlock the file again
What's the error? Can you issue that command manually?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
i have a list control
its CListCtrl
When i drag scroll bar with mouse the rows will get scrolled fine
but when i click in the middle of the scroll bar the rows get discarded
I attached the image… u can understand what I am saying by viewing the picture( I donno how to attach image in here... how can i do that)?
here is the link i attached the image in codeguru
http://www.codeguru.com/forum/showthread.php?p=1743407#post1743407[^]
What is the problem in here and how to rectify?
Any body has got any idea?
Please help me out
Thanx in advance
|
|
|
|
|
Can you check the values of "line" and "page" scroll in your control? It seems that it doesn't match, and that the control is not erasing the previous lines. BTW, a bit of your code (creation and/or both click messages) would be helpfull
Regards.
--------
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
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Hello -
Does anyone know how an anti-virus software registers itself with windows (i.e. Windows recognizes valid anti-virus software in Security Center)? Is this done through the system registry, or monitored through reports in API calls? Any information would be helpful.
Thanks!
|
|
|
|
|
Hello,
i want to resize a loaded bitmap and i thought about to use
the windows method StretchBlt.
I can create a Bitmap out of a ByteArray and I can stretch it
according to the size of the window where it will be displayed
That's my way how i create a bitmap out of a bytearray.
you can see that i use StretchBlt.
CClientDC dc(pWnd);
CDC cdc;
CBitmap* pBitmap = NULL;
CBitmap* pOldBitmap = NULL;
cdc.CreateCompatibleDC(&dc);
dc.SetStretchBltMode(COLORONCOLOR);
::SetDIBits(NULL,hBitmap,0,dwHeight,pData,&Bitmapinfo,DIB_RGB_COLORS);
pBitmap = CBitmap::FromHandle(m_HBitmap);
pOldBitmap = cdc.SelectObject(pBitmap);
if(bStretchMode)
{
dc.StretchBlt(rect.TopLeft().x,rect.TopLeft().y,rect.Width(),rect.Height(),&cdc,0,0,m_iSrcWidth,m_iSrcHeight,SRCCOPY);
}
else
{
dc.BitBlt(rect.TopLeft().x,rect.TopLeft().y,rect.Width(),rect.Height(),&cdc,0,0,SRCCOPY);
}
cdc.SelectObject(pOldBitmap);
ReleaseDC(&cdc);
cdc.DeleteDC();
Now what I want is to load a bitmap from file, resize it and get a pointer
to the bytes of this resized bitmap. i dont need ti display the loaded
bitmap. the loaded bitmap is a binary bitmap,just black and white.
I load the image with this code
HBITMAP hBmp = (HBITMAP) ::LoadImage(NULL,
filename.GetBuffer(),
IMAGE_BITMAP,
0, 0,
LR_LOADFROMFILE |
LR_CREATEDIBSECTION);
BITMAP BM;
GetObject (hBmp,sizeof (BM),&BM);
CBitmap* pBmp = CBitmap::FromHandle(hBmp);
So, any suggestions ?
greetings,
cmos
|
|
|
|
|
cmos wrote: any suggestions ?
Yes.
Maybe
Create a second DIBsection, the size and bit-depth you want
Create a memory DC
Select the DIBSection into the new DC
StretchBlt the source bitmap to the memory DC, just like in your code above
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I need to read data between Starting of header and Ending of header
and have to write it on another file.
for EX Data between GS and GE at one para of file
and Data between ST and SE at one para of file.
~ is the end point of line .
Using MFC how i need to do this ?
The Txt file is below mentioned.
TUV *00* *00* *08*prov1 *14*BChome *020710*0600*U*00400*000000001*0*P*
GS*HS*prov1*BChome*20020710*0600*00001*T*004020~
ST*270*00001~
BHT*0022*13*10001*20020710*060000~
HL*1**20*1~
NM1*1P*2*PROVIDER1*****NI*111111111~
HL*2*1*21*1~
NM1*PR*2*BLUE CROSS HOME*****08*222222222~
HL*3*2*22~
NM1*IL*1*SMITH*JOHN*Q***MI*A33333333~
EQ*01~
SE*10*00001~
GE*1*00001~
TEA*1*000000001~
Thanks in advance,
Preethi
|
|
|
|
|
This looks like an EDI (835?) transaction.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
What exactly is your problem. What are you trying to parse.
Regards
Bram van Kampen
|
|
|
|
|
Hi,
I'm looking for a tutorial about Unit testing integrated in Visual studio.
I know that Visual Studio 2008 Team suite has the ability to write unit test(the problem is that
The unit test is written in managed C++ while my code is written in unmanaged c++).
Is there any tutorial?
How about another tools(for unmanaged code)?
With best regards,
Eli
|
|
|
|
|
|
|
I use
WideCharToMultiByte(CP_ACP,0,pBuf,len,pBuf_MBCS,n,NULL,NULL);
to convert.
\n sometimes is converted to 0D 0A , and sometimes to 0A .
Who knows what's the problem?
system
|
|
|
|
|
How do you know that? What is your input string and what about the output one?
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]
|
|
|
|