|
When it is speech, you dont need as many bits to represent the sound. if its 16, use 8 instead, or even lower perhaps.
|
|
|
|
|
coulde you give me some details?thanks a lot
|
|
|
|
|
Usually speech doesnt need alot of bits to be audible.
If you record speech with 16 bit, try and reduce it.
|
|
|
|
|
|
Hi!
I had created an OLE Automation Server ( the out put is in the form of DLL). How can I use that dll in the Client Machines.
Thanks in Advance.
|
|
|
|
|
Hi ,
Exports the functions u want from DLL!
Regards,
Vishal
|
|
|
|
|
Thanks Vishal,
But I'm not using Pure DLL.
STDAPI DllRegisterServer(void)<br />
{<br />
<small> AFX_MANAGE_STATE(AfxGetStaticModuleState());<br />
COleObjectFactory::UpdateRegistryAll();<br />
return S_OK;</small><br />
}
The above function is automatically implemented by the MFC class wizard.( During the add new class using class wizard, I had created a class which is derived from the CCmdTarget and also I added automation support for it)
But, I can't find any default code support for Dllunregister server. How do I implement code for DllunregisterServer.
|
|
|
|
|
i am getting this message "bad dll calling convention" when i am using openprocess from my vb code.
why?
|
|
|
|
|
Probably because functions exported from your DLL were not written in VB
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Hi all,
Im new to VC++, so i would like to ask how to write a data i store to a text file?
below are part of my code:
FILE *fp1;
Boolean Stats
if(Stats)
{
printf("number of my phone is %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n",
(PCHAR)(Phone->Data)[0],
(PCHAR)(Phone->Data)[1],
(PCHAR)(Phone->Data)[2],
/* how do i write the Data into My text file*/
fp1 = fopen("Phone.txt","w");
}
Thanx for the advance help.
thanx
|
|
|
|
|
Hi,
char str[1024];
wsprintf(str,"number of my phone is %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n",
(PCHAR)(Phone->Data)[0],
(PCHAR)(Phone->Data)[1],
(PCHAR)(Phone->Data)[2],.....);
fp1 = fopen("Phone.txt","w");
fwrite(str,...,fp);
is this you wanted ?
Regards,
Vishal
|
|
|
|
|
yes... Something like that....
fwrite(str,(PCHAR)(Phone->Data)[0],,fp);
there are some syntax problem...
thanx
|
|
|
|
|
Hi,
see the following example whhich writes 25 chars to (FILE*)stream
/* Write 25 characters to stream */
char list[25] = "a...z"
numwritten = fwrite(list, sizeof( char ), 25, stream );
in your case it should be
fwrite(str,sizeof(char),strlen(str),fp);
For more info. plz refer to MSDN documentation of fwrite, wsprintf etc.
Enjoy !
Regards,
Vishal
|
|
|
|
|
Hi,
Try this:
FILE *fp1;
char output[1024];
sprintf(output,"the number of my phone is %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n",
(PCHAR)(Phone->Data)[0],(PCHAR)(Phone->Data)[1],
(PCHAR)(Phone->Data)[2],.....);
fputs(output,fp1);
Eli.
|
|
|
|
|
dex_ter11 wrote:
/* how do i write the Data into My text file*/
How about using fprintf() ?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
How can you do this for other browsers like Netscape or Opera? Can this be done for other browsers?
http://www.codeproject.com/useritems/iemozilla.asp[^]
If it has been done can you tell where I can learn more about this or other good resource sites like the link above.
Thanks,
|
|
|
|
|
Hi,
I wrote the proxy app (WinSock) forwarding data from one socket to another. I listen for the client connection on the first socket, when the connection is established I create second socket and connect to the destination. Than I only forwarding data using these 2 sockets (client & destination).
My question: is it possible (after accept client connection) to bind client & destination sides without creating 2 sockets ? I mean, how to reroute connection only, without using my proxy to forward the data.
Thanks
------------------
PeterP
|
|
|
|
|
PeterP2004 wrote:
is it possible (after accept client connection) to bind client & destination sides without creating 2 sockets ? I mean, how to reroute connection only, without using my proxy to forward the data.
No, it's not possible. Once a socket is connected, it cannot be reconnected without being disconnected first, and the reconnection can only be initiated by the client.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I'm trying to get Bumbleebee Software's lex and yacc generator up and running. I'm pretty experienced with lex and yacc, but only on unix systems. The problem is, if I use Bumblebee's ParserWizard, I get a good grammar and can compile, but the resulting application (I'm building into a windows console application) always crashes. I've tried "empty" grammars. I've also tried a grammar that can only produce a single non-terminal, i.e., it should be able to match an input of "binky", and nothing else. No matter what I try, the resulting application always crashes. I've tried reading from stdin and from a file, with no luck. I wish I could copy and paste some of the examples provided with bumblebee (like the calculator grammar), but it seems that most of them are the grammar without an accompanying lexer. I had hoped that there would be a complete example that I could compile in ParserGenerator and then compile in Visual C++ and have a working application (no matter how simple). But, apparently, no luck there.
I would be immensely grateful for any of the following:
1. Any simple grammar (and lexer if needed) that I can compile in Bumblebee and then MSVC and run the resulting console app without a crash.
2. Advice, tips, suggestions on what is needed to get a working Bumblebee generated grammar and lexer. I obviously don't know why my parsers and lexers are not working. Could it be because under unix, anything not parsed gets dumped to stdout, and this is not acceptable in windows? Is it something else that I have not done properly?
Thanks for any help you can offer!
maxmaven
|
|
|
|
|
I haven't used Bumblebee, but I have recompiled the linux flex and bison source and used them under Windows. I've never had the resulting scanners/parsers crash (except for my coding errors of course). I dunno if that helps much, but I can say it's not because of Windows.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I want to create an installation program for my program.Cause it will use some System resource.
Can you tell me where I can get the sample code and
useful tips?
|
|
|
|
|
|
Hi!Larry Antram,
Thank you very much! It's just what I want.
Cheers!
momer
|
|
|
|
|
I have just added a menu to an MFC dialog box and it comes up and works, but it does not look good under Windows XP. With the default XP color scheme, the background of the dialog and the menu bar should be tan, but behind the menu text the menu bar is white. Around the text the menu bar is tan. The drop down menus look normal with white backgrounds and tan borders. I'm sure this is a frequently encountered problem, but I have not been able to find anyone else's solution. Can someone give me a clue?
-Uncle Vance
|
|
|
|
|
actually i'm not really can speak in english very well...
a week ago, i have recived a final project title. my title is "SOFTWARE ARCHITECTURE FOR MACHINE INTERFACE USING VISUAL C++". the problem is i did not know what the meaning of this title. what is the interface?? is that i must build a driver?? what are the best machine should i choose?? is that to hard to make this project?? is anybody can tell me what should i do?? where i can get the C++ code for solve this project??
i'm very² need help from anybody that can help me to finish my final project.
|
|
|
|