|
Ok the situation is this, Im doing some applications , the first one is an application with 3 buttons that also has an Ip control with that application I put the Ip adress of the application (Server) that is an audio application that capture Audio.
with the first application (the one with the 3 buttons, starting, stoping and exit button, I send one character to the audio application)
I took one audio capture application from the codeproject to use it on my project, the problem is that I dont know how to put support to windows sockets, the audio application is made it in Visual C++ in a MFC, somebody knows how to paste the code to give support to the sockets.
something like the wizzard does when you are generating the MFC application that you can add support to 3d buttons, and sockets.
and also, somebofy knows about another audio capture application that I could use to my project.
another question that I have, if somebody can help me, is that Im just starting in the world of the code, and the POO,
so I need to take this data ( the buffer of the captured audio and send it through the socket, but I dont know how to do it.
can I use the function RECV(s2, &buffer,1,0)
where s2 is the socket that Im using, but I dont know what to put in the other params)
if somebody could help me,
GOD BLESS YOU
my email is
rubencia@yahoo.com
thanx again to everybody
SHALOM
|
|
|
|
|
REU,
Is this homework? Be honest...
C. Gilley
Will program for food...
Whoever said children were cheaper by the dozen... lied.
|
|
|
|
|
Hi!Dear,
when building my project on vc++6.0,i got a link error.
It says:
"strmbasd.lib(wxdebug.obj):error LNK2001:unresolved symbol_imp_strrchr"
so,how to settle this problem?
thanks!
|
|
|
|
|
try using any of these LIBC.LIB or LIBCMT.LIB or MSVCRT.LIB ,make sure it is linked before strmbasd.lib
|
|
|
|
|
Hello,
I would to have an Dialog with PassQuerry...
The User shouldn't leave the Dialog and Click anything else on Desktop..
The Windowskey or STRG-ALT-ENTF, STRG-TAB and other Keys must be Inactive...
The User should Interact with the Dialog ONLY....
What's the answer???
Thanx,
Dachs
|
|
|
|
|
make that dialog system modal by checking system modal property.
I'm not sure about second point but, you can definitely trap those messages
|
|
|
|
|
prasad_som wrote:
make that dialog system modal by checking system modal property.
AFAIK, System Modal dialog no longer work in NT based System...
Sorry for correcting you again....
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
|
Ok the situation is this, Im doing some applications , the first one is an application with 3 buttons that also has an Ip control with that application I put the Ip adress of the application (Server) that is an audio application that capture Audio.
with the first application (the one with the 3 buttons, starting, stoping and exit button, I send one character to the audio application)
I took one audio capture application from the codeproject to use it on my project, the problem is that I dont know how to put support to windows sockets, the audio application is made it in Visual C++ in a MFC, somebody knows how to paste the code to give support to the sockets.
something like the wizzard does when you are generating the MFC application that you can add support to 3d buttons, and sockets.
and also, somebofy knows about another audio capture application that I could use to my project.
another question that I have, if somebody can help me, is that Im just starting in the world of the code, and the POO,
so I need to take this data ( the buffer of the captured audio and send it through the socket, but I dont know how to do it.
can I use the function RECV(s2, &buffer,1,0)
where s2 is the socket that Im using, but I dont know what to put in the other params)
if somebody could help me,
GOD BLESS YOU
my email is
rubencia@yahoo.com
thanx again to everybody
SHALOM
REUBEN JAIM
|
|
|
|
|
I have referred to the FAQ but the answer does not solve the problem actually...
Below is my code of creating srevice:
--------------------------------------------------------------------------------------------------
SC_HANDLE hService =
::CreateService(
handle, // handle to SCM database
servicename.c_str(), // name of the service to install
servicename.c_str(), // name that is displayed on SCM
SERVICE_ALL_ACCESS, // can be accessed only by administrators
SERVICE_WIN32_OWN_PROCESS, // service runs its own process
SERVICE_AUTO_START, // started by SCM when StartService() is called
SERVICE_ERROR_IGNORE, // error logged but service started
ss, // pathname of the executable
NULL, // service does not belong to any group
NULL, // service does not use a tag
NULL, // requires NtLmsSp and EventLog service to be running
".\\Administrator", // user name to log on
"s" // password
);
--------------------------------------------------------------------------------------------------
|
|
|
|
|
how to move the word sequntially from left to right in my window(vc++ application).
Sunsen
|
|
|
|
|
Where are these words displayed ? Drawn by yourself on the client area of a window, in an edit box, ... ??
For the first case, simply create a timer and at each time it fires, redraw the the window and put the text at another position.
|
|
|
|
|
use Getwindowrect, ScreentoClient then use MoveWindow using the rect. if u've placed the text in a control. or use CDC::TextOut(x,y,string)..
eg:
int x=100,y=100;
{
this->GetWindowDC()->TextOut(x,y,"codeproject");
x+=10;
}
Regards,
V
|
|
|
|
|
Vivekuniq wrote:
GetWindowDC()->TextOut(x,y,"codeproject");
Nice, Using that you can Write even on title of Window , NICE
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Plz Give the code to draw colourful dialog boxes.
means , to change back ground color and fore ground.
Plz give GUI of dialog boxes.
Reply Urgently
Praveen Chowdam Kumar
|
|
|
|
|
parims wrote:
Plz Give the code to draw colourful dialog boxes.
means , to change back ground color and fore ground.
Plz give GUI of dialog boxes.
OK.
Handle the OnEraseBkgnd() like this:
.... OnEraseBkgnd(CDC* pDC)
{
CRect rect;
GetClientRect(&rect);
pDC->FillSolidRect(&rect,RGB(255,0,0));
return TRUE;
}
The events list for a dialog box does not normally display this message to be handled in VC6. You need to change the "Filter for messages.." combo box to "Window".
Now the background will be bright Red.
To change the foreground, do you mean Static text etc?
Then you will need to subclass the CStatic, and handle its painting yourself. You can find many CStatic samples here on CP.
this is this.
|
|
|
|
|
there's no need to be so hurrying, because if anyone knows the answer, or if anyone want to answer you, you will stay in the same state.
moreover, you seem so hurry that i doubt you googled your problem, or even searched CodeProject for that.
CodeProject[^]
Google[^]
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
my plotting application draws data in a window 400 pixels high 600 pxl wide.....x axis represents seconds(1 sec=2 pixel) how to scale the y-axis to plot larger values larger than 400,
thanks
|
|
|
|
|
Hello,
The following formula will help you to determine the amount of y - value amounts per pixel you need to plot your largest value:
ValuesPerPixel = Height / (MaxValue /* + spacing */)
You must wonder why to add a spacing. This is because you don't want too look that your graph goes out of the screen. You want to top to be clearly visible.
Hope this helps.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Hi All
I am willing to take the back up of registry (Key, Subkeys & Data) to other place(it may be hard disk, CD\DVD, LAN or any other media). also restore it to any specified location.
How will I do this?
What is the path where registry entries are stored?
Please Reply.
Thanks & Regards.
|
|
|
|
|
rajeevktripathi wrote:
What is the path where registry entries are stored?
%windir%\system.dat
%windir%\user.dat
Your explorer may not show it by default unless you set to view hidden and system files through folder options-View
suhredayan There is no spoon.
|
|
|
|
|
suhredayan® wrote:
%windir%\system.dat
%windir%\user.dat
I can't find these files in my Computer.. my OS: Windows 2000 professional
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
ThatsAlok wrote:
I can't find these files in my Computer.. my OS: Windows 2000 professional
For win2000 it seems to be in a different way.
Hope this[^] link helps.
suhredayan There is no spoon.
-- modified at 8:25 Wednesday 14th September, 2005
|
|
|
|
|
Thanks for these replies......
Infact now I am able to read & enumerate all the sub keys and also data value.
Now the problem is that how could I save it to a file (as regedit editor shows) and again restore it to its original location?
Please reply.
Once agin thanks.
|
|
|
|
|
rajeevktripathi wrote:
Now the problem is that how could I save it to a file (as regedit editor shows) and again restore it to its original location?
Use RegSaveKey() and RegRestoreKey() for this.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|