|
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.
|
|
|
|
|
HI all
please tell me is this possible to hide vertical scrollbar from printpreview window in mfc.
please provide me help and guidance regarding this.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Hi All,
Please Help me with this issue.
How to access the balloon tooltip that comes when a device is connected to the system? I need to change the caption of that dialog.
Iam using VS 2005
Regards,
Spk
modified on Wednesday, December 30, 2009 10:47 PM
|
|
|
|
|
int main()
{
printf("Enter 0 or 1 :");
scanf("%d",&i_choice);
if ( i_choice ==0 )
for( ;i_count_1 < i_number;)
{-------
------
}
if (choice == 1)
for( ;i <= i_number;)
{-------
------
}
Here I raed a user input ( 0 or 1)
So as per i/p I've to change the condition in my for loop.
if choice ==1 the condition must be (i <= i_number)
if choice == 0 the condition must be (i_count_1 < i_number)
I don't know how to use #define with this program.
anybody can help me....
Krish
|
|
|
|
|
You don't need #define in your code sample, but you need a switch(i_choice) .
Maxwell Chen
|
|
|
|