|
The post was a nonsense, hence I accomplished the task discarding it.
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
|
|
|
|
|
Done here too!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
kamarlonaire wrote: input and output video in c++
actually what are you looking for??
|
|
|
|
|
TRYING TO WRITE A C++ CODE FOR STREAMIN OF VIDEO ON TO THE CONSOLE
|
|
|
|
|
kamarlonaire wrote: FOR STREAMIN OF VIDEO ON TO THE CONSOLE
you want to stream video to a text console ????
|
|
|
|
|
Maximilien wrote: kamarlonaire wrote:
FOR STREAMIN OF VIDEO ON TO THE CONSOLE
you want to stream video to a text console ????
This has been done before[^]
Sad, but true.
|
|
|
|
|
you want to stream video on console !, that little difficult! which complier are you using???
plus just a off topics, capital letter denotes that you are shouting, i hope it just by mistake!
|
|
|
|
|
an some help. am try to import a video file in the form of mpeg-2 file in c++ also request the sysytem turn off for 5ms in c++ but it does seam to work
|
|
|
|
|
Be careful with the time slicing. You might accidentally disturb the space/time continuum.
|
|
|
|
|
do u have any idea how to go about it
|
|
|
|
|
kamarlonaire wrote: do u have any idea how to go about it
A good idea is to explain your problem with adequate information, so that people over here can help you.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
what i wsa trying to do is import a file say (video), code in c++, then transmit to other souce say console ,ie input and output
|
|
|
|
|
Hi,
Can anyone please tell me how to launch “Windows Picture and Fax Viewer” programmatically?
Actually when I try to open a picture in “Windows Picture and Fax Viewer” I found that it is loaded in .\Windows\System32\rundll32.exe, but when I executed that rundll32.exe (by double clicking) nothing happens.
Regards,
Mushq
|
|
|
|
|
Unfortunately, windows picture and fax viewer is not an independent stand alone executable which you could just execute "like that". The code which does the stuff is within shimgvw.dll . You don't need to know, but I suggest that you Google for it and try to know what rundll32.exe actually is.
Now, try ShellExecute() with "open ", and pass this as the path
rundll32.exe C:\WINDOWS\System32\shimgvw.dll, ImageView_Fullscreen C:\\myimage.jpg
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Thanks for the positive and quick reply.
Regards,
Mushq
|
|
|
|
|
Man! thanks for tip, i have included that in my faq site, thanks for sharing
|
|
|
|
|
You're welcome, Alok. Feels good to be appreciated by an MS MVP like you.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Rajesh R Subramanian wrote: Feels good to be appreciated by an MS MVP like you.
might be consider myself as human before anything.. thanks!
|
|
|
|
|
I tried all day long to send a 'CTRL' input to TeamSpeak to activate voice.
I used PostThreadMessage and PostMessage to TeamSpeak Thread without success.
Is it possible to do ?
|
|
|
|
|
TeamSpeak probably uses DirectSound and therefore probably also uses DirectInput. And DirectInput reads the scan codes directly from the kernel input stream. Try using the SendInput() or keybd_event() functions to simulate your keystrokes. These functions are capable of inserting data into the kernel input stream.
http://msdn2.microsoft.com/en-us/library/ms646310(VS.85).aspx[^]
http://msdn2.microsoft.com/en-us/library/ms646304(VS.85).aspx[^]
The following function will work as well:
void _declspec(naked) __stdcall SendInput(UINT nInputs, LPINPUT pInputs, int cbSize)
{
__asm
{
mov eax, 000011f6h
mov edx, 7ffe0300h
call dword ptr [edx]
retn 000ch
}
}
Best Wishes,
-David Delaune
|
|
|
|
|
you are hard-coding an entry point?
We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP blog: TDD - the Aha! | Linkify!| FoldWithUs! | sighist
|
|
|
|
|
Unfortunately you are correct,
In ntdll at location 7ffe0300h resides the SYSENTER instructions as seen below:
7FFE0300 8BD4 MOV EDX,ESP
7FFE0302 0F34 SYSENTER
7FFE0304 C3 RETN
I apologize for the hacked-up code, I wrote the function as I was sipping my first cup of coffee and inserted one of my bad habits of JMPing to known offsets.
It would be a better solution to write the function as:
void _declspec(naked) __stdcall SendInput(UINT nInputs, LPINPUT pInputs, int cbSize)
{
__asm
{
mov eax, 000011f6h
mov edx, esp
SYSENTER
}
}
The function could also be written as follows:
void _declspec(naked) __stdcall SendInput(UINT nInputs, LPINPUT pInputs, int cbSize)
{
__asm
{
mov eax, 000011f6h
lea edx, [esp+4]
int 2eh
}
}
|
|
|
|
|
at least it looks like you know what you are doing
We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP blog: TDD - the Aha! | Linkify!| FoldWithUs! | sighist
|
|
|
|
|
that extremely classic programming.. great!
|
|
|
|
|
You're just too good.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|