|
deleted the post because i was told in earlier replies that i should not put my whole code as it doesnt show the problem error, and that i should only put the error and the snippet or PRE ...which is what i did.
|
|
|
|
|
1dayprogrammer wrote: i was told in earlier replies that i should not put my whole code as it doesnt show the problem error, and that i should only put the error and the snippet or PRE
Yes, this is very much preferred.
1dayprogrammer wrote: which is what i did.
No, you deletd the whole post instead of just editing it. Notice the [Message Deleted] subject?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
the code's output is not looking right in notepad, it just prints out a long list of numbers..
|
|
|
|
|
In windows new line is "\r\n" not just "\n" (only *nix defaults to only "\n"). While most editors will show you a new line even with just "\n", Notepad is not yet smart enough for that. That's carriage return/line feed - old typewriter way of doing things (come to think of it, what were they thinking? ).
|
|
|
|
|
there are a aubio lib under the unix environment,
now someone try to use the mingw to complied under windows,
then I download the latter, which include the some .exe and dll,
but when I double click the .exe, the Dos window show up and dispear in a while, so I can not see the result,
how should I do to let the exe run , and I can see the result after run.
Do I need to use the VC++ to load the exe and then call the dll, how should I do?
Thanks.
|
|
|
|
|
under widows: click the 'start' button when the menu comes up click 'run'
in the box (Open: ) type 'cmd' then click 'Ok'. This gives you a dos-window.
now find where you have put your .exe file and navigate to it using the dos window.
When you are in the directory where the .exe lives you should be able to type its name
and the program will run and the window won't disappear.
|
|
|
|
|
you will compile the program in VC++ then copy the DLL and LIB file in your exe program where you want to run.
|
|
|
|
|
or you also call the loadlibrary function in the exe application , in loadlibrary function you can directly pass the Dll
may this help
|
|
|
|
|
struct myStruct {
float f;
char ch;
long l;
};
int main(int argc, char* argv[])
{
printf ("%d",sizeof (struct myStruct ));
int* arr=new int[10];
for (int i=0;i<50;i++)
arr[i]=i;
printf("Hello World!\n");
return 0;
}
If you have an idea and I have an idea and if we share to each other then we both have two I ideas.
|
|
|
|
|
You're overrunning the bounds of your arr array by 40*4 bytes, 40 ints. I'm surprised this doesn't crash even in Debug. Please don't run it again until fixed as it's overwriting Bill only knows what and may even kill your Debugger or VS.
rahuld_150183 wrote: for (int i=0;i<50;i++)
Change this to
for (int i=0;i<10;i++) or change your array size to 50 int* arr=new int[50];
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
Hi,
I want to separate the audio and video from the input avi file.How can i write the code to accomplish this.Are there any projects or url to explain how one can do this.
Regards,
Mayank
|
|
|
|
|
Hi,
I want to separate the audio and video from the input avi file.How can i write the code to accomplish this.Are there any projects or url to explain how one can do this.
Regards,
Mayank
|
|
|
|
|
As with any file types, study the file format and parse the contents
the way you want.
AVI File Format[^]
Also, if you search Code Project articles for "AVI" you'll find lots of code samples.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I'm working in a VC++ project. In this project F12 key is assigned as a vritual key for doing something. When I press this key, an exception occurs which states that,
"Unhandled exception at 0x7c901230 in Perspective.exe: User breakpoint."
When I break this exception,it goes to disassemply.
What should I do to overcome this exception?
|
|
|
|
|
See here[^]
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Sorry. There is no information available related to this particular Exception.
|
|
|
|
|
T.RATHA KRISHNAN wrote: There is no information available related to this particular Exception.
You need to know how to debug. Read the entire article I linked you to. Read even more on debugging. So that you will know how to look into the call stack window and fix the bug.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
See the debugger stack call window.
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
|
|
|
|
|
T.RATHA KRISHNAN wrote: When I press this key...
Are you looking at the code that runs as a result of pressing the F12 key? Have you stepped through that code with the debugger?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
A "user breakpoint" is a hardcoded breakpoint: whenever such an instruction is executed (int 3 ) a breakpoint exception in generated. It's normally used to trigger the debugger when a failure is detected at runtime. As to what you should do -- the same as always: look at the call stack!
Steve
|
|
|
|
|
how can i get rid of the standart menu system from the main frame of the MDI project (MFC).
i rather use the toolbars instead. can not just delete the IDR_MAINFRAME though.
is there anybody got an idea, how to do this?
cheers
tjie pouw
|
|
|
|
|
|
May I know is anyway to retrieve the application idle notification for an application running on Pocket PC 2003 which handheld is with touch screen. Pls help and thanks in advance.
|
|
|
|
|
Doesn't the CWinApp::OnIdle get called?
AliR.
AliR.
Visual C++ MVP
|
|
|
|
|
I have tryed to use Windows Hook, but failure.
|
|
|
|