|
|
tuan1111 wrote: All running on a computer not installed any OS yet.
Please Explain
|
|
|
|
|
What do you need? install OS?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Could you please read the posting guidelines[^] ? You've been posting such questions for a while now and it's time for you to learn how to ask your question properly (well, if you want some help).
|
|
|
|
|
tuan1111 wrote: All running on a computer not installed any OS yet.
You simply can't do that. Any other question?
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]
|
|
|
|
|
I posted a feedback issue
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=463503
Essentially code that was working in VC6 listed below does not compile:
const char* trimChars = "\\/|*?'\"<>;:";
std::remove_if(
fileName.begin(),
fileName.end(),
std::bind1st(std::ptr_fun(strchr),trimChars)
);
The only work around I could think of was to wrap strchr inside another function like this:
char const* compare(char const* str, int c)
{
return ::strchr(str,c);
}
Is this a bug in the compiler or am I missing something?
--Joe
If winter comes is spring far behind? - (PBShelley -Ode to the West Wind)
|
|
|
|
|
Microsoft have added a second overload for strchr (one uses char*, one uses const char*). You need to cast strchr to the function type you need, to disambiguate for ptr_fun. Here, I've used static_cast to specify the const char* variant of strchr.
std::remove_if(fileName.begin(), fileName.end(),
std::bind1st(std::ptr_fun(static_cast<const char*(*)(const char*, int)>(strchr)),
trimChars))
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Thanks. Like all good ideas it looks obvious after the fact.
If winter comes is spring far behind? - (PBShelley -Ode to the West Wind)
|
|
|
|
|
I need help in joining .wav and .avi files. I generate them using my code. Can any one help me or give me classes I need to use?
|
|
|
|
|
DirectShow [^]may be of help to you
|
|
|
|
|
No. I need VC++ code to combine them. I need to embed it into my application. Do you have any sample code which can direct me?
|
|
|
|
|
i dont have a sample code with me. but i feel that the classes in DirectX SDK will help you in doing that.
You need to download the SDK from Microsoft site. Its freely available
|
|
|
|
|
Nikhil_7777 wrote: . I need VC++ code to combine them.
If you are a programmer, write code because you are paid to do it. If you are not a programmer, hire one.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
You can use DirectShow from C++, and it's probably the best way to do things like this.
However, if you want an alternative, have a look at the Windows Multimedia functions (AVIFileOpen, AVIStreamRead, AVIStreamWrite etc.). Note that they do have limitations, and DirectShow is the better option.
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
I was working on a GPL project so I thought and used another GPL Project ffmpeg and used it. I'm done now (for now)
Thanks a lot
|
|
|
|
|
Hello,
I am trying to send a message across processes. However, the message is not successfully sent.
Here is what happens:
a) If the process (from which message is to be sent) is not elevated, then GetLastError returns 5 which means access error.
b) If the process (from which message is to sent) is elevated, then the message is sucessfully sent.
Now the problem is I cannot elevate the process. Is there any work around or possible solution.
Thanks.
|
|
|
|
|
I think you need to indicate what o/s, what version of c++, and how you are sending the message - eg postmessage, sendmessage, carrier-pidgeon for others to help/make sense of your request
'g'
|
|
|
|
|
OK. Here are the details:
I am using Windows Vista. I am developing the application using VS 2005 (C++). I have tried PostMessage & SendMessage. Both have same behavior in both cases.
Thanks.
|
|
|
|
|
Look at the WM_COPYDATA message.
See: Inter-Process Communication using WM_COPYDATA[^]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<a href="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</a>
|
|
|
|
|
Identity Undisclosed wrote: Is there any work around or possible solution
Use a different IPC mechanism (named pipe, shared memory + mutex or event or something)?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
You're seeing the correct behavior. UIPI blocks messages sent from a lower-integrity process to a higher-integrity process. If you control the receiving process, you can call ChangeWindowMessageFilter() to allow the message through.
--Mike--
|
|
|
|
|
I'm not sure if this is the right place to put this, but...
I'm using an example program that doesn't use glut that needed a variable
LPCWSTR name1;
I've included:
#include <windows.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <string>
using namespace std;
I get the error message: Run-Time Check Failure #3 - The variable 'name1' is being used without being initialized.
But I think I initialized name1 with the line LPCWSTR name1.
I'm using Visual c++ 2008 Express Edition on a Windows Vista 64 bit.
Thanks for any input!
|
|
|
|
|
You should read this: Windows Data Types[^]. The reference tells you that a type LPCWSTR is: Pointer to a constant null-terminated string of 16-bit Unicode characters. Yes, you've given it a name. This merely allocates memory for the pointer reference. But, where is it in virtual memory? And more importantly, what existing Unicode string does it reference (point to)?
How did you use it in your code? By passing it to a Unicode version of some Windows API? It won't function correctly. The solution is simple: assign it to some existing Uniocode String.
LPCWSTR name1 = L("This is your unicode string.") ;
Probably, the clearest explanation of string usage and conversions are explained in Michael Dunn's Complete Guide to C++ Strings, Part 1[^], and, Part 2[^].
Also, read this: Generic Text Mappings in Tchar.h[^]
|
|
|
|
|
Intrinsic data types (including pointers, which is what LPCWSTR is) are not initialized unless you give them an initial value. For example:
LPCWSTR name1 = NULL;
--Mike--
|
|
|
|
|
Hi,
I have a CLI audio recording program which uses WaveIn and WaveOut to record.
1. I need to prepare buffer and should be able to use for less time i.e., prepare the buffer for 30 mins but should be able to stop at 15 mins and save it to file. I am not able to do this now.
2. I need to get the path of the file. I need to record to a temp file and access it.
The audio's source is Microphone. It can record for custom # of seconds. I mean, when you run VoiceRec.exe and press enter, it would ask you for the # of seconds to record. After I give a number, it prepares the buffer for that time, starts recording and saves it to a file.
But what I want is, I would like to start recording and when the user presses any key, it should stop recording and save it to a WAV file.
http://rapidshare.com/files/240845783/Working_VoiceRecording_2_.rar.html
|
|
|
|