|
Dunno. I synched them across multiple instances of WMP on the one machine by setting up a timer that checked if they were more than a given distance appart, then I reset the position of the player that wasn't playing audio. Doing it across multiple machines presents problems with that approach, if the machines are all also playing the audio.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
only one machine would be playing audio! so thats no problem!
i thought of it too, to sync them manualy with a timer! but i have no idea how this will work over network! what latency does an winsock connection produce on a local network?
if it is that high that it causes problems, how to measure the latency so i can compensate??
natarius
ps: i was not planning to use manged dx...cause the video/audio part of it sucks!! i would use the interop way to access the vmr9
|
|
|
|
|
I doubt the latency would be noticable, but you could send info about when the reading was taken, then the only problem you have is syncing the machines clocks.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
hmmmm....another possibility could be to sync the audio cards of the machines digitaly (via spdif) and to make the audiocard the reference clock for video!! that way video should be always in perfect sync!
what do you think??
|
|
|
|
|
Sounds good to me
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
|
Hello everybody!
I have a question. Anybody knows why managed function calls faster in MC++ rather than unmanaged function (defined with #pragma umanaged )? The differences is about 4 times slower.
Thanks for your answers!
Z-Mechanic.
|
|
|
|
|
If you are compiling a managed application, any unmanaged code, is handled by the Interop Marshaler. It makes a number of additional operations to make the coding of the application appear seamless. Actually, it creates data buffers and loads your data, copying the data to other buffers and casting to compatible .NET types. I'm simplifying a little. But, it's much slower, especially if you have alot of data to transfer.
|
|
|
|
|
ppl plz someone help me ......
i want to access anY area in ram from my own application
that is developed in VC++ MFC....
can someone help me ????
aNy class for TDat ???
|
|
|
|
|
I am having a service which is running under default system account. From within the service i am trying to get the file version of a file which is available in the network path (say the path is "\\xyz\C$\Winnt\System32\calc.exe") using GetFileVersionInfo() function.
The function fails since the service is running in the SYSTEM account and i had connected to the remote host ("\\xyz\C$") as ADMINISTRATOR.
Please help me with some other way of obtaining the file version for a remote file from the service.
|
|
|
|
|
Can someone please supply me with the
string fromat to get rid of a leading zero.
String str = S"0.4";
String::Format({0????}, str); (or whatever)
to result in S".4"
Thanks much!
WedgeSoft
|
|
|
|
|
OK -- I solved my own problem...
I got the follow two to work
Single sgl = 0.4;
Console::WriteLine(sgl.ToString(".0"));
String* str = String::Format("{0}", sgl.ToString(".0"));
Console::WriteLine(str);
But could not get any form of String::Format Method
of the form {index[,alignment][:formatString]} to work.
(See String.Format Method .NET Framework Class Library documation)
String* tens = String::Format("{0:.0}", sgl.ToString());
WedgeSoft
|
|
|
|
|
how can i make a edialer in c++ i.e to detect the incoming calls and dial outgoing calls
|
|
|
|
|
*sigh* I need to create a standard disclaimer to post in this forum. 99% of the questions posted here have nothing to do with managed C++, and this is no exception.
And because you posted anonymously, you probably won't get an email telling you this, and so the question will go on to be unanswered.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Can anyone explain to me a method by which a system could dynamically store an array (or even better a vector) of objects, with this allocation being triggered by a GLUT library function like glutMotionFunc(foo);
thanks
Ben
|
|
|
|
|
*sigh* I need to create a standard disclaimer to post in this forum. 99% of the questions posted here have nothing to do with managed C++, and this is no exception.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
I meet some problem when I compiled this code:
double x1=
float x=float(6426.81125084);
TRACE("\n%f",x);
The result was: 6426.811035, was it incorrect???????
But when I used:
float x=float(6.81125084);
TRACE("\n%f",x);
The result was: 6.811251, was it correct??????Thanks.
|
|
|
|
|
Where is the float being turned into a double ?
Sorry dude, floating point math is not exact. Fixed point is, but you need to impliment that yourself.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
How do I send a keyboard event to my application?
I want to control the cursor position in a
numericUpDown (or domainUpDown) control. (I
have thought to do so with a keyboard event.
Perhaps there is a better way.)
WedgeSoft
|
|
|
|
|
|
Well! Thank you.
I will go check that site out. My knowledge
of MC++, thus far, comes from three sources:
A book I read (Managed C++ .Net Development"),
the VS .NET 2003 Documents, and CodeProject.
Now, I'll add another. Sorry you think the
question somewhat stupid. But glad you
chose to answer, and yes, it does
seem more questions are asked than answered.
PS:
Checked it out: Same doc as I have on disk.
I just could not find it. Sometimes hard to
search for what you don't know, and I did not
think of "SendKey" -- I did try a lot of other
things like "key" "keyboard" "key event" and
such.
Thanks again.
WedgeSoft
|
|
|
|
|
For some reason, when in any sort of Managed C++ class library I use the new keyword on any non-GC object, it gives me an error during linking:
error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int)" (??2@$$FYAPAXI@Z)
Strangely though, I don't get the same error in a console application.
For example, char* c = new char; gives me the error, but String* string = new String("hi"); doesn't. Same error goes for non-__gc classes -- but only in class library projects.
Anyone have any ideas?
If not, does anyone have a way of a way to get VMR9[^] to interface in C#? I'm currently making a managed wrapper for it, because I can't find its COM dll.
Thanks in advance.
|
|
|
|
|
I have written a simple program for internet communication, but when I try to assign a specific port for the connection, winsock still connects the two programs, but over a different port. When I raise or lower the port number, the actual port number increments by 256. This is really confusing, can anyone help?
Democracy for the USA!
|
|
|
|
|
I have a graphics card which supports two monitors (love it!).
But the driver causes MANY lines of the following to be
displayed in my debug output window (.Net 2003 standard edition).
'DesignFrom.exe': Unloaded 'C:\WINDOWS\system32\nviewimg.dll'
'DesignFrom.exe': Unloaded 'C:\WINDOWS\system32\msimg32.dll'
'DesignFrom.exe': Loaded 'C:\WINDOWS\system32\nviewimg.dll', No symbols loaded.
'DesignFrom.exe': Loaded 'C:\WINDOWS\system32\msimg32.dll', No symbols loaded.
Please, how do I turn these lines off?
WedgeSoft
|
|
|
|
|
I have recalled, how I fixed the above in MFC
// Loaded as an ASSERT so only is loaded in DEBUG
ASSERT( ::LoadLibrary( _T("nviewimg.dll") ) );
ASSERT( ::LoadLibrary( _T("msimg32.dll") ) );
So I tried in MC++ and found that ASSERT does not work.
So I have:
#ifdef _DEBUG
LoadLibrary( _T("nviewimg.dll") );
LoadLibrary( _T("msimg32.dll") );
#endif
And it works!
Is there a BETTER way -- nicer code?
WedgeSoft
|
|
|
|