|
for example i want use from peocess or thread handle.
-- modified at 3:04 Wednesday 11th October, 2006
|
|
|
|
|
so it seems you need GetModuleFileName
|
|
|
|
|
|
I guess she want to gets procceses and then get path of their and in the end insert this path to <codecreateprocess< code="">
|
|
|
|
|
dear Aqueel thank you very much.
its true.
|
|
|
|
|
Hi everyone,
I had build a graph with the following,
IGraphBuilder *pGraph ;
IMediaControl *pMediaControl ;
IVideoWindow *pVidWin ;
IMediaEventEx *pEvent;
I tried to play many files continuously so i created a list ctrl , its playing fine, BUT the problem i was facing is when one file is played and going to next file i release the above variables, so i am getting a blank screen like a flash.... i dont want that blank screen on the playing screen ... can anyone help me with this ... the movement from one file to other should be without the blank screen
Thanks in advance
With Regards
Raja Bose
|
|
|
|
|
do a google search for GMFBridge written by Geraint Davies. His ClipPlayer example sounds like what you are looking for.
cje
|
|
|
|
|
Thank you very much for replying
hmmm i will search for that and if i have any more queries i will inform.
Once again thanks.....
With regards
Raja Bose
|
|
|
|
|
hi.i write 2 program on 2 different computer,program 1 send data packet(sucj as "S15.00P")very fast(per 10ms).i use winsock for send & receive data.i use OnReceive Message of winsock to read buffer.but this message is very slow,i have data in buffer,but by use OnReceive i can't read data FROM BUFFER.please help me how can i read data from buffer very fast.i want a real time reading buffer.sender send data per 10ms & i want read data from buffer in 10ms in receiver.also i use CAsyncSocket class in visual c++ 6 in a MFC project
tnx
|
|
|
|
|
Try a separate thread dedicated to JUST socket I/O.
Use WSAEventSelect() to have an event object signaled on FD_READ (and maybe FD_CLOSE).
Use this event to wake your I/O thread and recv ALL received bytes (call recv until you get
WSAEWOULDBLOCK error), adding the received bytes to a buffer each call. Loop and wait again on the
event. Let another thread process the received data.
This works very fast even on TCP/IP because you are keeping the receive buffer flushed.
Much better than doing it on the UI thread through Windows messages like you are now.
Mark
|
|
|
|
|
hello,
I have a Table which has no. of columns.
I want to insert values into only 2 columns....
how to achive this..
INSERT INTO table-Name(Column-name1, column-name2) Values(value1,value2)
i used this one..bur shows errror in insert into statement.
Born To Code
|
|
|
|
|
Hi,
The values you supplied must be formatted with valid qualifiers that matches the DATA TYPE of the column where you want to insert it to.
Example if Column-name1 is a date then value1 should be like #value1#
if it is a string value1 should be 'value1'
Hope this help.
Angbo2006
|
|
|
|
|
Is this[^] helpful for you
|
|
|
|
|
rahul.shendurnikar wrote: i used this one..bur shows errror in insert into statement.
What error?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
hi,
i am using mfc activex control wizard. I want to know how to split the bounding rectangle of the specified window in to two and to call the already created two dialog boxes on the splitted window.
thanx in advance,
zari
|
|
|
|
|
Hi
In my application i need to run another .exe thru a button click..Please help how i will do this...
Thanx In advance
birajendu
CyberG India
Delhi
India
|
|
|
|
|
See ShellExecute or CreateProcess
|
|
|
|
|
thanx...i think CreateProcesses is the right option for my need.
birajendu
CyberG India
Delhi
India
|
|
|
|
|
|
use win32's createProcess(....) function... call this function in the MFC's button click handler function.. it will run new exe as a seperate process... refer MSDN for detailed documentation.
|
|
|
|
|
Hi i want to import favourites of current user who logged in , into the current working directory(for exampl my application runs from F:\ drive, then i want to import into F:\ drive), and i want to export from current working directory to Favourites?
How can i do it?
|
|
|
|
|
Have a look at <a href="http://www.codeproject.com/script/comments/forums.asp?msg=1705667&forumid=1647&mode=all&userid=1817418#xx1705667xx">SHGetSpecialFolderPath</a>[<a href="http://www.codeproject.com/script/comments/forums.asp?msg=1705667&forumid=1647&mode=all&userid=1817418#xx1705667xx" target="_blank" title="New Window">^</a>], GetCurrentDirectory and CopyFile
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
How do i can change keyboard language between my installed languages?
Please give me the code.Thanks.
|
|
|
|
|
I met a strange problem.
This is my code
#include "stdafx.h"
#include <iostream>
#include <windows.h>
#include <mmsystem.h>
#pragma comment(lib, "winmm.lib")
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
DWORD datasize = 48000;
HWAVEIN mh;
WAVEFORMATEX wf;
wf.wFormatTag=WAVE_FORMAT_PCM;
wf.nChannels=1;
wf.nSamplesPerSec=8000;
wf.nAvgBytesPerSec=8000;
wf.nBlockAlign=1;
wf.wBitsPerSample=8;
wf.cbSize=0;
int r;// = ;
cout << "poo1";
int k = waveInOpen(&mh,WAVE_MAPPER,&wf,NULL,0L,CALLBACK_WINDOW);
cout << k;
cout << "poo2";
if (k == MMSYSERR_NOERROR)
cout << "success";
else
cout << "fail";
cout << "poo7";
//WAVEHDR mp;
//mp.dwFlags=0;
//mp.dwUser=0;
//mp.dwLoops=0;
//mp.dwBytesRecorded=0;
//mp.lpData = (char *)GlobalLock( GlobalAlloc(GMEM_MOVEABLE|GMEM_SHARE, datasize) );
//memset(mp.lpData, 0, datasize );
//mp.dwBufferLength = datasize;
//int p = waveInPrepareHeader( mh, &mp, sizeof(WAVEHDR) );
//cout << p;
cout << "poo4";
//waveInAddBuffer
int i ;
r= waveInGetNumDev();
cout << "poo5";
cout << r ;
cin >> i ;
//cout << " " << endl;
return 0;
}
and It runs the result following
poo0poosuccesspoo3
It's strange.
I change the code, but the program dont know.
Can somebody help me?
minihotto
|
|
|
|
|
#include<iostream.h>
#include<afxwin.h>
#include<mmsystem.h>
#pragma comment(lib, "winmm.lib")
int main(int argc, _TCHAR*argv[])
{
DWORD datasize = 48000;
HWAVEIN mh;
WAVEFORMATEX wf;
wf.wFormatTag=WAVE_FORMAT_PCM;
wf.nChannels=1;
wf.nSamplesPerSec=8000;
wf.nAvgBytesPerSec=8000;
wf.nBlockAlign=1;
wf.wBitsPerSample=8;
wf.cbSize=0;
int r;// = ;
cout << "poo1";
int k = ::waveInOpen(&mh,WAVE_MAPPER,&wf,NULL,0L,CALLBACK_WINDOW);
cout << k;
cout << "poo2";
if (k == MMSYSERR_NOERROR)
cout << "success";
else
cout << "fail";
cout << "poo7";
cout << "poo4";
//waveInAddBuffer
int i ;
r= waveInGetNumDevs();
cout << "poo5";
cout << r ;
cin >> i ;
//cout << " " << endl;
return 0;
}
Try out
mythili
|
|
|
|