|
From documentation:
This function returns S_OK on success. Other possible values include the following.
Return code | description |
---|
E_NOINTERFACE | The object does not support the specified interface. | E_POINTER | The stream is not valid. For example, it may be NULL. |
So what's the actual return value you got?
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
Returning as E_FAIL. but same image datai have used in C# using xmlreader it works fine.
|
|
|
|
|
That's in sharp contrast with the documentation. What is the numerical value?
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
Numerical value means is it hr return value. if not how do i get it numerical value
|
|
|
|
|
Hi
I am using DWORD to fine numerical value. I getting this value (2147500037) conver into Hex(80004005). it says that (#define OLE_E_NOTRUNNING _HRESULT_TYPEDEF_(0x80040005L));
|
|
|
|
|
Gopal_Kanchana wrote: Numerical value means is it hr return value
Yes I would like to know hr numerical value.
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]
|
|
|
|
|
Hello everyone,
I am using std::map<cstring, cmystruct=""> in my application. I am searching for CMyStruct based on the CString using find function. But sometimes find function is returning null iterator even when there is strcture obj with specified key.
Can anyone help me in finding the solution?
|
|
|
|
|
Posting the relevant code would possibly help.
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,
here is how I used
std::map<cstring, cmystruct="">mapVar;
void Myfun1()
{
...
CString strTemp = "str1";
mapVar[strTemp] = myStructObj1;
}
void MyFun2()
{
map<CString, CMyStruct>::const_iterator itr;
Cstring strTemp = "str1";
itr = mapVar.find(strTemp);
....
}
Sometimes it is working fine but sometimes it is not working.
|
|
|
|
|
Lakshmi_p wrote: sometimes find function is returning null iterator even when there is strcture obj with specified ke
Umm, that's odd.
If the key doesn't exist in the sequence std::map::find() returns end() and not NULL .
Have you verified that you haven't added a NULL pointer for the key you're looking for? If the answer to this question is 'no', don't bother answering the following.
How have you declared your map? Post some code (preferrably properly formatted using <pre></pre> tags)
How do you add elements to the sequence? (Code again)
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Hello
Well what i want to do is restore original page protection flags, searching on google i readed that virtualquery and virtualqueryeax are used to do this but no detailed info or example could anyone point me somewhere or post a sample with some random address will really apriciate it thnx
|
|
|
|
|
Had you Googled virtualqueryeax you would have found this[^].
|
|
|
|
|
pls send me a program that can add edit and browse a data that you input on your database program please i need itt very badly
|
|
|
|
|
OK, sent.
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]
|
|
|
|
|
Please read the posting guidelines.
|
|
|
|
|
Froztbyte666 wrote: your database
My database?
Froztbyte666 wrote: i need itt very badly
How badly?
"willing to sell your soul to the devil"-badly or "might pay ten bucks"-badly?
|
|
|
|
|
Michael Schubert wrote: "willing to sell your soul to the devil"-badly or "might pay ten bucks"-badly?
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]
|
|
|
|
|
Froztbyte666 wrote: please i need itt very badly
You certainly need something very badly
|
|
|
|
|
Hello everybody,
I'm working on a small personal project and I need to create some simple sheet music. Basically, I generate some tones and I would like to save the results on my computer in some format, preferably in .jpg or .pdf.
The programming language is C++...I googled a while, but didn't find anything, so I ask you guys: do you know something that can help me? =)
Thanks in advance =)
--
Emir
|
|
|
|
|
Do you want build a GUI for drawing musical symbols (and then save the image on file)? Is it a quite complex project: good luck!
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]
|
|
|
|
|
@Pallini
I've got something else in mind, just want the computer to generate a few notes, which would be saved on the disk as a regular music sheet. It's for personal use =)
|
|
|
|
|
Had some googling for you, and found a C# solution, hope you get some idea from that.
Here [^]
If that doesn't worked
Here is the direct link[^]
|
|
|
|
|
There seems to be an misunderstanding. I do not want a virtual piano, which would record my playings, but rather a class or so that can convert some numbers into musical notes. =)
Still looking for the solution =O
Please help.
|
|
|
|
|
Have you tried RTMidi or JDKMidi libraries? These help you generate MIDI files from midi instructions.
On the otherhand, if you would like to program directly at the Music Note level, you can certainly find the CFugue to be your best option. You can find good examples of it here: http://gpalem.web.officelive.com/CFugue.html Currently you can save your output as MIDI. Saving to sheet music is still under development, though.
All the best.
Gopalakrishna http://gpalem.web.officelive.com
|
|
|
|
|
Dear all,
I have a problem in Visual C++ 6.0.
I made a project using Dialog Based, not Single Document Type.
I want to make a rectangle that its color able to change when I clicked a button.
For draw the rectangle, I used this code.
__________________________________________________________
dc.Rectangle(10,10,208,92);
CRect RectBackground(10,10,208,92);
CBrush brush;
brush.CreateSolidBrush(RGB(red,green,blue));
dc.FillRect(RectBackground,&brush);
----------------------------------------------------------
I entered those code to class::OnPaint(), so OnPaint function become:
____________________________________________________________
void CGambarDlg::OnPaint()
{
if (IsIconic())
{
CPaintDC dc(this); // device context for painting
SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0);
// Center icon in client rectangle
int cxIcon = GetSystemMetrics(SM_CXICON);
int cyIcon = GetSystemMetrics(SM_CYICON);
CRect rect;
GetClientRect(&rect);
int x = (rect.Width() - cxIcon + 1) / 2;
int y = (rect.Height() - cyIcon + 1) / 2;
// Draw the icon
dc.DrawIcon(x, y, m_hIcon);
}
else
{
CPaintDC dc(this); // device context for painting
[color = blue]
// Background Rectangle
dc.Rectangle(10,10,208,92);
CRect RectBackground(10,10,208,92);
CBrush brush;
brush.CreateSolidBrush(RGB(red,green,blue));
dc.FillRect(RectBackground,&brush);
[\color]
CDialog::OnPaint();
}
}
-------------------------------------------------------------------------
It produce a black rectangle when I added
___________________________
red = green = blue = 0;
---------------------------
in class::OnInitDialog() fuction.
I think, when I add a button n change "red", "green", and "blue" values, the color of rectangle will change. But it doesn't work.
Code in my button function are:
_____________________________________________
void CGambarDlg::OnButton1()
{
red = green = blue = 255;
OnPaint();
}
---------------------------------------------
Please help me to solve this problem...
Thank you before..
Eka Candra
modified on Thursday, September 24, 2009 5:18 AM
|
|
|
|