|
waveInOpen waveOutOpen etc... GOOGLE/MSDN
|
|
|
|
|
How can i capture serial communication timeout error.
regards
Chezhian
|
|
|
|
|
I've been recently assigned a project in which i have to convert a PowerPoint Slide (.ppt file) into a shockwave file (.swf). Can anyone help me how to perform this task? Or is there any site from where i can get the .dlls alongwith each function explanation for this particular action?
Adeel
|
|
|
|
|
|
Friends,
I am in search of a custom list control available here at Codeproject but i can't find it. Please tell me if you know about such control. Here is what i am looking for:
In VC 6 IDE, go to Tools->Options, a property sheet will appear. Switch to the page "Directories". Here you find a list box type control in the middle. We can add new directories in it and switch existing items up and down. I am looking for this control. Please tell me if you know about any such implementation.
Imtiaz
|
|
|
|
|
|
Is this a control that you have seen here in the past?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
The control i am looking for is like this commercial one. Strange i was unable to find any open source implementation.
Imtiaz
|
|
|
|
|
|
I've imported a lot of type libs, but now I like to create an own one. I've searched for artickles here at CP but no success...
any tip where to start?
_____________________________
...and justice for all
APe
|
|
|
|
|
Use MIDL commandline tool!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
::Stupid Question Alert::
Compiling my application with warning level 4, I get a fair number of “warning C4100: (param name here) unreferenced formal parameter”.
Is this something I should concern myself with or just ignore it? It was helpful in catching a couple of variables that where declared but unused.
-------------------------------
|
|
|
|
|
No it's not a problem, just asking you if your function prototype has a mistake in it or not. I think you can get it to keep quiet by doing somthing like this:
void Function(int foo)
{
foo;
}
Joel Holdsworth
Wanna give me a job this summer?
Check out my online CV and project history[^] - now available in MSWord format![^]
|
|
|
|
|
Joel Holdsworth wrote:
I think you can get it to keep quiet by doing somthing like this:
void Function(int foo)<br />
{ <br />
foo;
}
<br />
I had started doing that then thought um that might be bad, let’s see what every one else says. All of the function prototypes that I have created myself are fine. It mostly just the message over rides that cause this problem.
Thanks much Joel
-------------------------------
|
|
|
|
|
Yeah you just rewminded me the other way to deal with the problem (probably more efficiant too) i this.
Say my function has to be have the parameters WPARAM followed by LPARAM, you don't have to give these names:
int Function2(WPARAM, LPARAM param2)
{
param2 += 6;
} You see the WPARAM is still present in the parameter list, but is not referenced at all. I think the optimiser should reduce the two methods to producing the same code, but this way is a little more elegant.
Joel Holdsworth
Wanna give me a job this summer?
Check out my online CV and project history[^] - now available in MSWord format![^]
|
|
|
|
|
Yea that’s how I send messages when I don’t need the first param (WPARAM).
It’s the params from over ridded messages that’s causing the problems.
-------------------------------
|
|
|
|
|
I've used
<br />
void Function(int param1, int param2)<br />
{<br />
UNREFERENCED_PARAMETER(param2);<br />
}<br />
and
<br />
void Function(int param1, int )<br />
{<br />
}<br />
I think there's another macro, can't remember it offhand.
Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!
|
|
|
|
|
Jack Squirrel wrote:
void Function(int param1, int param2)
{
UNREFERENCED_PARAMETER(param2);
}
I like that one. Pretty clear that, that param is not used.
-------------------------------
|
|
|
|
|
Jack Squirrel wrote:
I think there's another macro, can't remember it offhand.
MFC's macros: "UNUSED" and "UNUSED_ALWAYS" will do that trick for you too
I also got the blogging virus..[^]
|
|
|
|
|
This is the best way thought
void Function(int param1, int /*param2*/)
{
}
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Papa wrote:
void Function(int param1, int /*param2*/)
{
}
Yea know some how I bet your correct.
Anyone else know for sure?
Thx Much
-------------------------------
|
|
|
|
|
The bug slayer, John Robbins, in his Debugging Applications for Microsoft .NET and Microsoft Windows (Great book btw)
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Sounds good.
Now that I’m at home and free to wander the net I found an article at
http://msdn.microsoft.com/msdnmag/issues/05/05/CAtWork/default.aspx[^]
Which comments on this very subject. They say it doesn’t really matter. I’m inclined to think that commenting the section out is a "little" cleaner way to go about it (after some experimentation).
-------------------------------
|
|
|
|
|
I know that these macros often resolve to
param = param;
which is a junk code just to reference the param.
The commenting of the param just instruct the compiler to *not see* the param in order to skip the warning
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Is there a simple way I can find out how much memory (Private Bytes) my app currently has (in code, that is)
--
Help me! I'm turning into a grapefruit!
Buzzwords!
|
|
|
|