|
Does anyone know of such a thing...?
I need the ability to use merge/split files in and out of a single file. I've looked at the classes here at CP and have determined they won't do.
Free for commercial use is also a requirement.
I am already using CBlowfish, and zlib for encryption and compression, so all I need is a simple lib that will tar files for me crypto++ is to over kill...
Anyone know of anything...?
Thanks in advance
Cheers
I'm drinking triples, seeing double and acting single
|
|
|
|
|
|
Look like something i'd be interested in....thank you very much.
Although I just read a post on here and supposedly zlib offers tar compression??? I could swear I read somewhere that zlib doesn't...
u wouldn't happen to know if it does would you...?
Thanks
I'm drinking triples, seeing double and acting single
|
|
|
|
|
zlib only allows a single stream to be compressed. tar is not a compression format; it is an archive format that joins a number of files together to create a single file.
zlib itself doesn't have any functions for dealing with tar files (at least judging from the manual at http://www.gzip.org/zlib/manual.html[^]). The Unix tar command handles .tar.gz files by calling gzip as a separate process.
- Mike
|
|
|
|
|
how do start up programs work and how to show all the start up programs in a list box or list control. Maybe Recommend a site or article/code.
<marquee>Universal Project... Soon to be a .net
|
|
|
|
|
They are kept in 2 registry keys:
The machine-level startup programs are kept in
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
The machine-level startup programs are kept in
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
how would i show these values in a list box or list control?
<marquee>Universal Project... Soon to be a .net
|
|
|
|
|
How can I open an excel file to view it using C++ from my application? I tried spawn and it doesn't seem to work... help please!
|
|
|
|
|
CString strExcelFile = "MyFile.xls";
long nStatus = (long) ::ShellExecute (m_hWnd, "open", strExcelFile, NULL, "", SW_SHOWNORMAL);
if (nStatus <= 32)
error();
/ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
thanks, this is getting me closer! i quickly saw excel flash before my eyes before getting the error 1419904.. any ideas?
|
|
|
|
|
forget the error, that was something else, this works, thank you so much!!!!!!!
|
|
|
|
|
Hi! I have visited so many WinSock tutorials to find source code that works, but it never does! All i want to do is to get 2 computers on my network to exchange data! That's it! From what i've read about WinSock, it should be able to do that without any problems. I either can't get it to compile, or it refuses to communicate to any other computers outside my own. I just don't get it! Are there any tutorials or source code that actually works? An MFC tutorial would be OK too.
-- Steve
|
|
|
|
|
Do you read the full article or just download the source code. There are plenty of winsock example on CP that work, but sometimes you have to read the article so you know what to trouble shoot
Matt Newman Sonork: 100:11179
"Whoa, that ruled! What function key do I gotta press to get that to happen again?" - Strong Bad
|
|
|
|
|
VERY TRUE.
<marquee>Universal Project
|
|
|
|
|
Hi,
I've been trying to implement a simple server using AcceptEx(). However, no matter how I create the listening socket, AcceptEx() always returns 0 with error code 10022.
10022 -> An invalid argument was supplied.
Here is a quick example.
-----
SOCKET listeningSocket = ::WSASocket(AF_INET, SOCK_STREAM,
IPPROTO_TCP, NULL, 0, WSA_FLAG_OVERLAPPED);
u_long host;
::WSAHtonl(listeningSocket, INADDR_ANY, &host);
SOCKADDR_STORAGE listenAddr;
SOCKADDR_IN *pListenAddrIN = reinterpret_cast<sockaddr_in
*="">(&listenAddr);
pListenAddrIN->sin_addr.s_addr = host;
pListenAddrIN->sin_family = AF_INET;
u_short port = 0;
::WSAHtons(listeningSocket, static_cast<u_short>
(21), &port);
pListenAddrIN->sin_port = port;
::bind(listeningSocket, reinterpret_cast<sockaddr *="">
(&listenAddr), sizeof(SOCKADDR));
::listen(listeningSocket, 2);
// AcceptEx()
SOCKET acceptSocket = ::WSASocket(AF_INET, SOCK_STREAM,
IPPROTO_TCP, NULL, 0, WSA_FLAG_OVERLAPPED);
WSAOVERLAPPED ol;
memset(&ol, 0, sizeof(WSAOVERLAPPED));
char buffer[4096];
unsigned int nSASize = sizeof(SOCKADDR_STORAGE);
::AcceptEx(listeningSocket, activeSocket, buffer,
4096 - ((nSASize + 16) * 2), nSASize + 16, nSASize + 16,
&nReturn, &ol);
DWORD error = ::WSAGetLastError();
-----
In the example above, the call to AcceptEx() returns
error 10022.
Please post if you see what the problem might be.
Thanks,
Kuphryn
|
|
|
|
|
Is it possible to progmatically change the IP address of a specified network adapter. I'd like to avoid changing registry settings. Also is it possible to switch from DHCP to Static?
Matt Newman Sonork: 100:11179
"Whoa, that ruled! What function key do I gotta press to get that to happen again?" - Strong Bad
|
|
|
|
|
Ehem I don't know a whole lot about TCP/IP programming but I 'think' that you can't change it and probably that may be the truest thing but are there any other 'opinions' out there?? And anyways why would you want to change the IP... suspicious wink;)
<marquee>Universal Project
|
|
|
|
|
snyp wrote:
And anyways why would you want to change the IP
Because this computer is used on 2 different networks that use different IP ranges.
Matt Newman Sonork: 100:11179
"Whoa, that ruled! What function key do I gotta press to get that to happen again?" - Strong Bad
|
|
|
|
|
I guess you cannot change it progmatically. Maybe someone else would explain it better to you cause I'm not the most knowledgable person out there in the network thing. (getting into databases right now and probably later into networks)
<marquee>Universal Project
|
|
|
|
|
I don't think it is possible when you are already connected... You must first disconnect then change the address or it may cause some problems because one machine address can't have 2 IP addresses at the same time. (I don't know how to change it even if you disconnect... but I think you must disconnect first!)
Well... I am a beginner ...
|
|
|
|
|
This is the closest I could find on the subject (using netsh to change the interface parameters):
MSKB #257748[^]
I've never used netsh personally, but it seems like the easiest way to go.
- Mike
|
|
|
|
|
Thanks for the input, I'm sorry I didn't respond sooner. I have been feeling really lazy lately and haven't gotten around to working on it
Matt Newman Sonork: 100:11179
"Battleship, was the first game that taught you to lie" - Zachery
|
|
|
|
|
Hi again!
I found a way but as I mentiones before you will have to reboot each time you change it. ( it is registry stuff)
http://www.codeguru.com/network/change_ip.shtml
I hope this will help!
Well... I am a beginner ...
|
|
|
|
|
Thanks for the input. As I said in my response to Michael I have been really lazy lately and haven't gotten around to using it yet.
Matt Newman Sonork: 100:11179
"Battleship, was the first game that taught you to lie" - Zachery
|
|
|
|
|
How can i register an event in windows .
for example my program with pressing enter do something
and i want my program without focus do this action.
even if be in other program.
MkhProgrammer
|
|
|
|