|
Hey, I just came across this strange prototype.
This is really weird.
void comm_perror(int error, char *format, ...)
Does anyone have a clue to what the ... parameter is suppose to mean.
This is actually a real function in one of the source codes I was reviewing
If anyone has an answer to this question please keep me posted
Cheers,
Jay
-- modified at 17:08 Friday 7th July, 2006
|
|
|
|
|
|
Sir
Can any one tell is there any library which can help me
in solveing some problems in Coordiante geometry,Trignometry.
Fly Like An Eagle With MIGHTY POWER.
|
|
|
|
|
So, do you want to tell us which problems?
If all you want is sin, then just use math.h
|
|
|
|
|
CodeVarma wrote: in solveing some problems in Coordiante geometry,Trignometry.
In Math libarary there only function like cos,sin,tan... if you like more math function... you might try matlabs or boost library
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Any chance any one has an sample project where data from a CListCtrl
is stored and retrieved? I just cant get my own sample project to
work correctly and if I could see something work, then I could try
to mimic those features in my own program.
Please, any response any one can give me will be greatly appreciated.
Sincerely,
Danielle Brina
|
|
|
|
|
|
Hi I would like to know clearly about the date formating of CTime class.
_T("%b %d, %Y %I:%M:%S %p")
Like above I saw different formattings at different places.
Can Any one please kindly let me know what are those formats represents for.
Means which is represents sec and which is represents for min and etc like that.
And I need to know what are different formats available to use this.
This is urgent for me. Thanks a lot in advance.
Nice talking to you.
If you judge people, you have no time to love them. -- Mother Teresa
|
|
|
|
|
|
|
Hi Fellows
I've created an app that reads mp3 sounds. It works fine. I have a idea: I would like to set the volume of the music that is played. I don't have any idea about what interface I must to use or property or anything else.
To play my mp3 sounds I have these interfaces:
IGraphBuilder, IMediaControl, IMediaEvent, IMediaPosition.
I create the IGraphBuilder like this:
<br />
HRESULT hr = CoCreateInstance(CLSID_FilterGraph, NULL, CLSCTX_INPROC, IID_IGraphBuilder, (void**)&g_pMediaGraph);<br />
And the other interfaces like this
<br />
g_pMediaGraph->QueryInterface(IID_IMediaControl, (void**)&g_pMediaControl); g_pMediaGraph->QueryInterface(IID_IMediaEvent, (void**)&g_pMediaEvent); g_pMediaGraph->QueryInterface(IID_IMediaPosition, (void**)&g_pMediaPosition); g_pMediaGraph->RenderFile(wstrFileName, NULL);<br />
Where g_MediaGraph is my IgraphBuilder interface.
Do I need to use another interface instead any of these? If anyone knows a good resource, answer me.
|
|
|
|
|
|
Thanks a lot man, that's exactly what I needed.
|
|
|
|
|
Hi all. i am using this code to change color of listview item.
But unfortunetly it goes and changes color of all item instead
of only changing the color selected listview item. Could an expert
look at this and show me how i can only change color of selected
listview item instead of coloring all items in listview.Thanks
void CColor1Dlg::OnButton1() <br />
<br />
{<br />
<br />
HWND hPalWnd = ::FindWindow("my window class", NULL);<br />
<br />
HWND spilterwindow = FindWindowEx(hPalWnd, 0, "WTL_SplitterWindow", 0);<br />
<br />
spilterwindow = FindWindowEx(spilterwindow, 0, "WTL_SplitterWindow", 0);<br />
<br />
HWND ATL = FindWindowEx(spilterwindow, 0, "WTL_SplitterWindow", 0);<br />
<br />
HWND ATLWIN = FindWindowEx(ATL, 0, "atl:0053c8d0", 0);<br />
<br />
HWND Dialog = FindWindowEx(ATLWIN, 0, "SysListView32", 0);<br />
<br />
HWND Rich = FindWindowEx(Dialog, 0, "SysHeader32", 0);<br />
<br />
<br />
<br />
CButton *pButton1 = (CButton*)GetDlgItem(IDC_BUTTON1);<br />
<br />
COLORREF GetBkColor(IDC_BUTTON1);<br />
<br />
<br />
COLORREF color = 33023;<br />
<br />
TRACE("Color of the selected font = %8x\n", color);<br />
<br />
<br />
<br />
::SendMessage(Dialog, LVM_SETTEXTCOLOR, 0, color);<br />
<br />
<br />
<br />
}
-- modified at 12:16 Friday 7th July, 2006
|
|
|
|
|
That code looks like an absolute nightmare...
I think that in order to do what you want you would need to have to do custom draw for your list view.
|
|
|
|
|
could u help me how to make a code that custom draw for my list view.
I am not very expert in visual c++ so i be happy if u show how this can be done. Furthermore, why u say the code i a nightmare!! it does not crash any thing!!! it just does more then what i wanted it to do!
|
|
|
|
|
When it comes to doing anything out of the ordinary with a list control then Mike Dunn's article[^] is a must read.
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
|
How to check if ComboBox dropdown list is shown or not shown?
thanks.
|
|
|
|
|
GetDroppedState()
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
For a limited user on Windows XP, will regsvr32.exe be able to register a namespace extension? I tried and got error 0x80040201, but I'm not sure if this is an issue to do with the account being a limited user or not.
Any help would be greatly appreciated.
Thanks in advance!
Dave Kerr
codechamber@hotmail.com
http://www.codechamber.com
|
|
|
|
|
Dave Kerr wrote: I tried and got error 0x80040201, but I'm not sure if this is an issue to do with the account being a limited user or not.
It resolves to, "An event was unable to invoke any of the subscribers."
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hello,
I have some problems with the PlotXY functions in the NTGraph activeX, Here is the article about this ActiveX:
http://www.codeproject.com/miscctrl/ntgraph_activex.asp[^]
I'll upload for you the picture of the problem here:
http://img433.imageshack.us/img433/4972/untitled2ee.jpg[^]
the function I wrote there the code is: BOOL CGraphsXYAxisDlg::OnInitDialog()(This is the function in the general Dialog)
I sure the problem is there because when I earase the line it works fine.
I tried a few combinations of the point(x,y) but it doesn't work and the errer occurs.
Do you know how can I fix it?
Thank you all for your great help!
SnaidiS(Semion)
|
|
|
|
|
Incidentally the correct place to post these questions would actually be at the relevant article[^] itself.
The error message says Element not found . Do you actually have 3 elements for your graph? (ie. did you add 2 extra elements as the 1st was created automatically)
|
|
|
|
|
OK thank you! I think I found the problem..
SnaidiS(Semion)
|
|
|
|