|
You'll probably need the DirectX SDK. DirectShow has some examples that capture from cameras and display the output in a window (see the playcap example)
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
Hello
please if anyone can help me in solving this prob.! I have to implement a C++ program which adds any 2 long numbers such as : 12345654151464 + 454645454 , or any other 2 similar numbers. I should use classes for this problem!
so any suggestion please ?
thank u !
|
|
|
|
|
use __int64 for big numbers, for very big numbers you have to code an own lib.
Don't try it, just do it!
|
|
|
|
|
OLE/COM DECIMALs can hold 96 bit numbers. Take a look at the docs in MSDN.
--
Ich steig dir nach.. Du riechst so gut.. Gleich hab ich dich!
|
|
|
|
|
How is it possible to get a program to play Midi \ Wav file when a button is pressed? I need my application to include 2-3 sound files which can be played when a button is pressed is this possible? if so how. And how do you display a bitmap on a button?
|
|
|
|
|
mavgoose wrote:
And how do you display a bitmap on a button?
Search Botton control in this site and find lots if exampls.
mavgoose wrote:
How is it possible to get a program to play Midi \ Wav file when a button is pressed?
Look into Audio part of this site.
Mazy
"A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope
|
|
|
|
|
sndPlaySound API
Don't try it, just do it!
|
|
|
|
|
The simplest way to play an audio file on windows is to use the PlaySound function.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_playsound.asp
Putting a bitmap on a button? Depends on whether you're using mfc, wtl, win32 api, .net or something else. There's probably a dozen tutorials on this site alone explaining it, though.
|
|
|
|
|
I have an username & password inside my exe file. I opened it with notepad and saw they are in pain text somewhere inside it. Somebody told me that there is an compiler option that encrypt variables or something like this. Is there such a thing exist or he sucks?
Mazy
"A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope
|
|
|
|
|
nothing like that... encrypt it using a PE crypter or just save the MD5(or other) hash of the password.
Don't try it, just do it!
|
|
|
|
|
Alexander M. wrote:
encrypt it using a PE crypter or just save the MD5(or other) hash of the password
Well, then the Key is visible and could be decrypted, but of course with a little more job.
Mazy
"A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope
|
|
|
|
|
no chance to decode MD5
Don't try it, just do it!
|
|
|
|
|
|
Thanks Mike and others for reply.
Mazy
"A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope
|
|
|
|
|
As far as I know, there is no such compiler option. Your 'somebody' may have been thinking of an option to obfuscate .NET code.
Software Zen: delete this;
|
|
|
|
|
If you embed a password directly into an exe, it will be insecure. You can play with it to make it less obvious (e.g. XOR against some other non-secret value), but nothing you can do will actually make it secure. If the exe has access to the password, so does anyone who has the exe.
|
|
|
|
|
If you absolutely must hard-code a password in the exe file, then I recommend you encrypt it, and then store the encrypted version in the exe. Then whenever you need to compare against it, encrypt the user-entered password and compare the encrypted passwords. I wouldn't do anything with plain-text passwords except encrypt them.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I have a SDI application with a splitter (left and right views). Left view is regular view(CView) created by the wizard. Right view is a form view with a pie chart drawed on it. Everytime i try to select File > New, it will give me assertion error. This is because of the pie chart, if i take out the drawing of the pie chart class on the right view then it works fine. However i need the pie chart to stay on there. How can i make this so when i hit File > New, it will try to open a new document on the Left view only and right view will not be reload or affected.
|
|
|
|
|
The trick here is to remember that debug asserts are your friend. Let the assert happen and use the debugger to examine the line that asserts. If it's deep in MFC (probably is) there are probably comments in the source explaining what's being asserted and why it might fail. It's those conditions you need to investigate to deal with the assert.
Rob Manderson
Colin Davies wrote: I'm sure Americans could use more of it, and thus reduce the world supply faster. This of course would be good, because the faster we run out globally, the less chance of pollution there will be. (Talking about the price of petrol) The Soapbox, March 5 2004
|
|
|
|
|
I'm creating a program which uses dialogs
but the problem is how do I attach them to one another ???
Must I make separate classes or do I need to add them to an excisting class??
|
|
|
|
|
What exactly do you mean by "attach them to one another"?
- Aaron
|
|
|
|
|
What I mean by that is that I wanna go from from dialog to another by using buttons as next and previous(sorry it had to be How Do I attacht dialogs to one another)
Can U help me???
|
|
|
|
|
You are thinking of a "wizard", I think.
Look up CPropertyPage / CPropertySheet in MSDN documentation. Or look in the Programmers
Guide section for something like "programming a wizard".
Iain.
|
|
|
|
|
Hi,
I need a help how to draw a waveform in VC++.
The serial data is inputted from the serial port, and the same data should be plotted in VC++.
My question is how to draw a waveform for a specific set of data in VC++.
Please can anyone help me in this regard.
|
|
|
|
|