|
|
MrMcIntyre wrote: Never call me lazy or most importantly stupid as I am more intelligent in my Mathematics, English and Reading Skills so never again do you EVER DARE and call me stupid.
Your website says otherwise about your English skills. So if that's how you want to portray your English skills to the world, it screams "stupid".
You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
To me, you seemms just a troll.
Your reputation is self-referencing.
Facts are you're not going to try to understand what has been told.
Enjoy with your reputation!
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
It'd be beneficial to everyone if you could keep your conversations subjective. This forum is specific for discussing issues related to C/C++/MFC programming.
Nobody cares about who you are. I'm being really polite to you, but if your future posts do not follow the guidelines[^], it may even be completely removed off this board.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
I can feel the pain of you employees...
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, I just programmed an audio player using bitmaps for the GUI and used the DirectShow functions for playing media files but I do not have much knowledge about the internals of this DirectShow SDK. I want some articles or tutorials that will take me through the madlib mp3 decoder so that I can understand how my program works. Anyone know of some books or tutorials that describes the usage of madlib mp3 decoder, and possibly the links? Please help.
|
|
|
|
|
Did you think of Googling? I did and found this[^].
|
|
|
|
|
After compiling the code given below the following error shows....
main.c:4: error: expected ':', ',', ';', '}' or '__attribute__' before '=' token
#include <stdio.h>
struct struct_keywords {
char c_keywords[6][10] = {"int", "char", "static" , /* ERROR SHOWS HERE */
"struct", "union", "return"};
};
typedef struct struct_keywords kewords_t;
int main(int argc ,char *argv) {
kewords_t *struct_ptr;
return 0;
}
What may be the error ?????
With regards
|
|
|
|
|
Your initialisers should be outside of the struct definition thus:
struct struct_keywords
{
char c_keywords[6][10];
} mystruct =
{
"int", "char", "static",
"struct", "union", "return"
};
|
|
|
|
|
Thanks ...using ur code I cleared my errors in the program
Thanking u

|
|
|
|
|
|
int main(int argc ,char *argv)
{
kewords_t struct_ptr;
struct_ptr.c_keywords = {"int", "char", "static" , "struct", "union", "return"};
}
|
|
|
|
|
myprogarm.c: In function 'main':
myprogarm.c:17: error: expected expression before '{' token
#include <stdio.h>
struct struct_keywords {
char c_keywords[6][10];
};
typedef struct struct_keywords kewords_t;
int main(int argc ,char *argv) {
kewords_t *struct_ptr;
struct_ptr->c_keywords = {"int", "char", "static" , "struct", "union", "return"};
return 0;
}
Still showing error ...How to clear
myprogarm.c: In function 'main':
myprogarm.c:17: error: expected expression before '{' token
|
|
|
|
|
This is not correct, for a start struct_ptr has not been initialised to point to anything. I always try compiling my code suggestions before posting here.
|
|
|
|
|
help me, help me, help me, my headache, how to retrieving hicon through the name of system folder, for ins. the name of "my computer"
i just need name matched way, because maybe you change the name of my computer, thank you very much!
i can survival as you in.
|
|
|
|
|
I did not understand. You are trying to get a handle to a specific icon ?
What does this have to do with the computer name ?
Easy Profiler : Now open source !
http://www.codeproject.com/KB/cpp/easyprofiler.aspx
|
|
|
|
|
|
Hi,
I am using the List control and populating data coming as resultset into Dialog list.One of the field should be checkbox which work based on condition. If condition is true then only show the checkbox otherwise hide the checkbox.So some row have check box and rest don't. Could you please suggest way to achieve it. I tried to paint unwanted check box but it start showing when someone click on hidden checkbox. Appreciate you time.
Thanks
Pankaj
|
|
|
|
|
use GetDlgItem(ID_OF_CHECKBOX)->ShowWindow(SW_HIDE)
HTH
|
|
|
|
|
Whenever I am getting the ID list not the checkbox.
|
|
|
|
|
Hi all
in my application some time print function not working.
i m calling this for print
//CView::OnFilePrint();
and for preview
//CView::OnFilePrintPreview();
but some times when i colling these function these not responded.
nothing is happen there,than if i restart the machine its working fine.
please provide me help for this.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Le@rner wrote: i m calling this for print
//CView::OnFilePrint();
and for preview
//CView::OnFilePrintPreview();
Those are not functions that you call directly. You implement them so that the framework can call them as needed. See Technical Note 30 for more.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
In addition to David Crow's answer, there are much more things going on than just calling the functions.
You also have OnPreparePrinting , OnPrepareDC and many other things working in a depper part, that you don't code directly.
If you need to restart your machine in order to make it working another time, one cause could be a bad use of CDC, so it gets problems and it doesn't work until the OS is started another time.
I strongly recommend you to go step by step in printing, there is a lot of things to consider and that can give problems. Here in codeproject you can find some very good articles about printing, take a look on them.
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
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
actully i m already taking help of this article
[]Another ListView print (preview) sample.[^]
please help me for this.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
With the information you have given is almost impossible to help you.
you should give more details, debugging your application and seeing what happens when it hangs, putting a bit of code...
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
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|