|
If I call PostMessage() inside MidiInProc() function, there is an error saying:
error C2352: 'CWnd::PostMessageA' : illegal call of non-static member function But the documentation for MidiInProc() says "Applications should not call any system-defined functions except for some functions like PostMessage() ".
Any help would be greatly appreciable!!
Best Regards,
Suman
|
|
|
|
|
this error C2352 occurs if
A static member function called a nonstatic member function. Or, a nonstatic member function was called from outside the class as a static function.
The following sample generates C2352:<br />
class CMyClass<br />
{<br />
public:<br />
static void func1();<br />
void func2();<br />
static void func3()<br />
{<br />
func1();
func2();
}<br />
};<br />
<br />
int main()<br />
{<br />
}<br />
The following sample generates C2352:<br />
class MyClass<br />
{<br />
public:<br />
void MyFunc()<br />
{<br />
}<br />
<br />
static void MyFunc2()<br />
{<br />
}<br />
<br />
};<br />
<br />
int main()<br />
{<br />
MyClass::MyFunc();
}<br />
I hope you inderstand what you need to change...I must confess I gave you details from MSDN Library only
There are only two kinds of people who are really fascinating-people who know absolutely everything, and people who know absolutely nothing.
Oscar Wilde (1854-1900)
Regards...
Shouvik
|
|
|
|
|
I want to call a function directly or by posting a user defined message when particular message MM_MIM_LONGDATA comes in MidiInProc() .
I will check your suggestion.
Thanks for your help!!
Best Regards,
Suman
|
|
|
|
|
Hi
Documentation says PostMessage() API;
not the CWnd member function;
|
|
|
|
|
If you check the help for "MidiInProc" in Help Menu --> Index of VC .Net 2003 IDE, you can see the same documentation I saw under "Remarks".
Thanks for the help!!
Best Regards,
Suman
|
|
|
|
|
hi dear,
i need VC++ technical interview question and answers....
is anybody knows any link...
please send me
Thanks,
Mani...
Life is short live it up
|
|
|
|
|
go to http://www.codeproject.com/useritems/cppfaq25apr8jun.asp[^]
And more you can Google. You would surely find manny of them.
even www.vyomworld.com[^] would have many tutorials and interview questions.
ALL THE BEST
There are only two kinds of people who are really fascinating-people who know absolutely everything, and people who know absolutely nothing.
Oscar Wilde (1854-1900)
Regards...
Shouvik
|
|
|
|
|
|
Thank u Jonathan and shouvik.d
|
|
|
|
|
What do you need,exactly about vc++?
|
|
|
|
|
I have created my client exe and server exe. Both are working fine, connection establish properly, message parsing is work properly. But prblem arise at the time of closing. I have used CSocket class and worked on vc++6.0 and Platfoem SDK sp2. Whenever i kill client exe from task manager, OnClose method of Server gets called, but, despite kill the exe when i restart my pc when exe is running condition the OnClose method of Server does not called and vceversa, same thing happens on both the end. Please give me suggestion if you have any idea or any different way to do this
abhi
|
|
|
|
|
AbhijitAkude wrote: any different way to do this
Use the Winsock2 API rather than CSocket. And make sure you find an article about the proper handling for closing sockets. Oh... and then read it of course.
|
|
|
|
|
Hi..All..
am using the method getsubitemrect.
CRect rect;
getsubitemrect(nitem,nSubitem,LVIR_BOUNDS,rect);
but am not getting the correct boundaries i mean rectangle of sub item.
Can any one suggest me if there is any other way to get sub item's rectangle..
thanq..
|
|
|
|
|
sheshidar wrote: but am not getting the correct boundaries i mean rectangle of sub item.
How are you verifying this?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi all,
How i should be able to create xml file using IXMLDOMNode.
Regards
|
|
|
|
|
Maynka wrote: How i should be able to create xml file using IXMLDOMNode
You can't. You need a IXMLDOMDocument to create an XML file.
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.
|
|
|
|
|
Using IXMLDOMDocument HOW CAN I DO THAT:
|
|
|
|
|
|
you're just one big tease
Yours Truly, The One and Only!
|
|
|
|
|
Well, a little effort must be done by the OP too
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 show you how to read and create an xml document and finally save it to file
http://www.awprofessional.com/articles/article.asp?p=169461&seqNum=1
Yours Truly, The One and Only!
|
|
|
|
|
|
I want to check that in target machine already register somefile.OCX or not.
How can I write the code for this issue?
Thanks
|
|
|
|
|
Hi
you have to check that in the registry;
so write code for that
|
|
|
|
|
If you know the relevant GUID s you can call CoGetClassObject or CoCreateInstance and check the return 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.
|
|
|
|