|
I only have VS 2005 on this machine so i will try to remember. You should be able to look at the help for GetPrivateProfileString() and see what header it is defined in. If you include that header you should be able to use the function. make sure that you do not turn off the standard libs getting linked in.
And this question would have probably have been answered faster in the Visual C++ forum and not in the Managed C++.NET one since you are trying to stay away from .NET.
Steve Maier, MCSD MCAD
|
|
|
|
|
hi,
i did like to get some suggestions on how to sync video playback on different machines!?
lets say i have connected 4 pcs via ethernet and each of them should play a part of a video at the same time...how can i achive that they stay frame sync all the time?
i know that i can select the audiocard on each machine to be the reference clock! but this doesnt help when using multiple machines!
any ideas are welcome
thx & greets
Natarius
|
|
|
|
|
How is this a managed C++ question ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
i couldn't find a directx forum...and as i am programming it with managed c++, i posted it here!
|
|
|
|
|
Oh, OK
Most posts in this forum are not to do with MC++. Why did you use MC++ ?
What are you using to play videos ? DirectX ? Windows Media Player ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
i am planing to use the vmr9 from directshow
|
|
|
|
|
Don't. The latest version of DirectShow is full of bugs. I've written an article on CP, listing the ones I've found, other people seem to keep adding them.
I ended up rewriting my app to use Windows Media Player.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
i need to do video mixing....so i dont have much possibilitys!
so, how would you sync videos over multiple machines??
|
|
|
|
|
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.
|
|
|
|