|
|
Thanks for the help.
I am trying to use the following code to read an array of file names. However,
I found all the ftitle[i] used the same memery as ftitle[0]. So after the code read all the array, all array of ftitle[0],ftitle[1],ftitle[2] have all the same value of ftitle[2]: "dogfile3"
CString ftitle[10];
for (i=0;i
|
|
|
|
|
hi, I develop a com dll . that I register throught regsvr32.exe commmand
in command promped . but when i distribute my exe using this dll i want to
develop a application that copy that dll to system32 folder and register it
without using regsvr32.dll . how can i develop that setup application .
Trioum
|
|
|
|
|
The setup can be created by using InstallShield or any similar utility. And I think that you can write script in the InstallShield to automatically register the com dll. But still, it will be done using Regsvr32.
|
|
|
|
|
NishantB++ wrote: But still, it will be done using Regsvr32.
Not necessarily.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Simply call the DllRegisterServer[^] function exported from the dll you wish to register.
Steve
|
|
|
|
|
hi all,
i am developing one application in that i have to split media file by specified time interval, by specified size and by specified percentage.
i have already done for split file by specified time interval using wmsdk.
now i have to split media file by specified size.but i don't found any interfaces for the same. can anyone tell me any interface that help me to do same.
and it is possible or not?
hiren thakkar.
|
|
|
|
|
zakkas2483 wrote: now i have to split media file by specified size.but i don't found any interfaces for the same. can anyone tell me any interface that help me to do same.
This should be easier than what you've already done as it does not require any knowledge of the file's format.
1) Open the file you want to split
2) Read a certain number of bytes
3) Create new file
4) Write those bytes to new file
5) Close new file
6) Repeat at step 2 until no more bytes to read
Make sense?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Can we play these files after split?
|
|
|
|
|
No, of course not.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
But we need to play that split file. Then What?
|
|
|
|
|
Merge all the pieces back together to form the original file.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
but i have to play that all individual parts. is it possible or not? please help me out.
|
|
|
|
|
If you break a media file down into smaller files, each of those files will need some type of header information in order to be considered a media file in its own right. I do not know how to do this.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hi all
please tell me how can i know port number of my system
and other system in the network
thanks
|
|
|
|
|
Err, do you even know what a port is?
Waldermort
|
|
|
|
|
port is used to send data between to systems in the network
i think i know this
|
|
|
|
|
I think you don't know this.
The port element of an internet address associates an IP address with an application.
This allows more than one application to use an IP address at the same time on a system.
You are responsible for knowing the port numbers used by your applications.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
p_ wrote: please tell me how can i know port number of my system
and other system in the network
You mean you want to know 'IP-Address' of your system?
Regards,
Vijay.
God may not give us what we 'want', but he surely gives us what we 'need'.
|
|
|
|
|
Port number (80=http or ftp=21)or IP of your system ?
|
|
|
|
|
thanks sir
i use this code on a button but it did not give any response
CAsyncSocket m_sListener, m_sConnected;
UpdateData(TRUE);
m_sListener.Create(21);
if(m_sListener.Listen()==FALSE)
{
AfxMessageBox("Unable to Listen on that port,please try another port");
m_sListener.Close();
return;
}
m_sConnected.Create();
m_sConnected.Connect("10.179.22.75",21);
if( m_sListener.Listen()== FALSE)
{
AfxMessageBox("Unable to Listen ,please try another port");
m_sListener.Close();
return;
}
thanks
|
|
|
|
|
What was return value of Create and Listen if its 0 you got an error and better calling GetLastError for see error.
|
|
|
|
|
Your system has TCP/UDP port numbers 0 - 65535, and so does every other system in the network.
|
|
|
|
|
There is no generic answer to your question simply because YOU define the port number. It totally depends of what you are trying to do: if you try to make two of your programs communicate, then you supply the port number on which the server will listen and you use this same port number in your client application.
What are you trying to do exactly ? Without knowing that, we cannot help.
|
|
|
|
|
Hello,
if you dont know the port you should listen or connect.
you may check the port number that a program uses with netstat -a on command prompt. You gotta check manually what the port might be.
then you can do the coding.
Hope this helps.
Bekir.
|
|
|
|