|
I don' tknow if this is more than you need, but try looking up Layered Service Providers for winsock 2.0.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
But is not possible retrieve information about traffic using function like Ping?! I try to create a program like a sniffer but I don't want to retrieve data but only the quantity of data that transit on a IP address, only the traffic.
|
|
|
|
|
I'm trying to make a simple menu, with a Listbox and a butten..
The Listbox will contain a lists of programs, and the button will execute the program selected on the list box..
I created a simple Dialog base App(no mfc)
But I can figure out how to input data in the list box..
Like.
LIST_GAMES
----------
Quake
DOOM
Half-Life
How to do this ?
Thanks
|
|
|
|
|
For add a string into ListBox try:
ListBox.InsertItem(0,"you string");
If you want scan a directory, find files and add this in the ListBox:
CFileFind finder;
BOOL bWorking;
CString fullpath;
strPath = strPath + "*.*";
bWorking = finder.FindFile(strPath);
while (bWorking)
{
bWorking = finder.FindNextFile();
if ( !finder.IsDirectory())
{
CTime FileTime;
CString strFileName,strFileTime;
strFileName = fullpath+finder.GetFileName();
finder.GetLastWriteTime(FileTime);
strFileTime = FileTime.Format("%Y/%m/%d %H.%M");
SHFILEINFO shinfo;
SHGetFileInfo( strFileName,
0,
&shinfo,
sizeof( shinfo ),
SHGFI_ICON |
SHGFI_SMALLICON );
int j = InsertItem(0,finder.GetFileName());
SetItemText (j,1,strFileTime); //2nd column
}
} //end while
|
|
|
|
|
What file should I add to my project so I can use the ListBox class?
|
|
|
|
|
If you are in a dialog based project just add the control ListBox, create the global variable associted and use it.
|
|
|
|
|
Hi, pals!
I write a simple console application using VC6.0. There are only file read/write tasks in my application. I run the program from the command window of Windows Me. But they have different result when running the program. The debug version has the correct result. And the release version has the wrong result. (I only use FILE, fopen, fclose, fread, fwrite in my application.)
Can you give me suggestions?
Best regards,
George Ma
|
|
|
|
|
Check to make sure all your variables are initialised and that you aren't overflowing any buffers.
Michael
Errata 1: p. 154, section 'Defusing'. For 'red wire' read 'blue wire'.
|
|
|
|
|
Thanks, Michael pal!
Do variable initialization and buffer overflow have anything to do with debug and release versions? Can you give me a simple explanation?
Best regards,
George Ma
|
|
|
|
|
In debug there is usually a bit more space around variables (less optimization) so if you declare a char array followed by an int for example...
<br />
char a[3];<br />
int x;<br />
then do something like:
<br />
x = 0;<br />
for (i=1;i<=3;i++)<br />
a[i] = i;<br />
In debug everything may work perfectly but in release writing 3 to a[3] would probably change the value of x. The legal indexes of a[] are 0, 1, and 2.
|
|
|
|
|
Hi,
Guys, I want to implement TCP/IP stack over TAPI connection - can neone guide
Sameer
|
|
|
|
|
What TSP are you using? I'm assuming you are using a modem which makes it likely that your TSP is the unimodem driver.
Why do you need TCP/IP, won't standard serial communication do the job?
Michael
Errata 1: p. 154, section 'Defusing'. For 'red wire' read 'blue wire'.
|
|
|
|
|
Hi,
No i want to implement TCP/IP
like RAS but they are both Win98
Sameer
|
|
|
|
|
Well, you shoud configure one of the machines (and only one) as a RAS Server. Launch the explorer, go to the Dial-up folder and you'll find a link to the RAS Server configuration dialog in the "Connections" menu.
Once you're done with this, the client app should initiate a RAS connection with RasDial and all that stuff (you can do it non-programmatically, of course). When the connection is established, both programs can communicate with TCP/IP using the regular Winsock procedures.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
How to hide the black window that comes when u have a win32 console application. Can anyone suggest a solution for it.
Samir Sood
|
|
|
|
|
Depends on the context. If you want the console not to appear for a program you're launching from another with CreateProcess , then some of the parameters in the call allow for this.
If you're talking about a program of your own, I guess the simplest way is to change it to a Windows program --it is admissible although you don't do any GUI stuff, and no console will appear.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
But is there any method by which inside the console based application only can we make the black window disappear.
Wating for reply....
Samir Sood
|
|
|
|
|
Do you own the source code of the app for which you want the console not to appear?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hello;
I want to add a wizard in to an MFC app. What is the efficient way to do. Should i use FORMVIEW? What is the right way?
Thank you.
Orkun GEDiK
|
|
|
|
|
|
Thank you for help.
Orkun GEDiK
|
|
|
|
|
Read up on CPropertySheet. A wizard is a property sheet with some style bits set to make it a wizard.
--Mike--
Just released - RightClick-Encrypt - Adds fast & easy file encryption to Explorer
Like the Google toolbar? Then check out UltraBar, with more features & customizable search engines!
My really out-of-date homepage
Sonork - 100.10414 AcidHelm
|
|
|
|
|
hi everyone
I recently visited the site codeproject & went through the tutorial
on install shield. I have recently made an installation which installs
my application in VC++ & at the same time installs the InterBase Server
& console. To achieve this installation i make entries in registry & for
auto starting the interbase server i have made entry in
HKEY_LOCAL_MACHINE\Software\Microsoft\CurrentVersion\Run
as InterBaseGuardian REG_STR <root dir="">IBServer.exe -a.
The installation is done in install shield for Microsoft VC++6.
I m facing a whimiscal problem whenever i install my appliaction in a compaq
machine that already contains Interbase server as well as VC++6 installed
in it. I tested my installation in an assembled machine which already has
both the things installed, but there it doesn't show that error.
As soon as the appliation is run it first shows message box "cann't create
socket" and then it shows "XTG unable to establish connection to the host
unknown win 32 error 10106".
Is this error due to the istallation script or its related with the
application or interbase server.
Please help me out i ll be really grateful.
thanking you!
regards
a struggling software engineer
ashutosh pandey
ash_pandey@rediffmail.com
|
|
|
|
|
As the error text informs you, this is an error from the XTG component (the ODBC driver?). If you indeed were a "software engineer" you'd know that an error 10106 is a Winsock error (WSAEPROVIDERFAILEDINIT). Perhaps the ODBC DSN is wrong?
|
|
|
|
|
Mike Nordell wrote:
If you indeed were a "software engineer" you'd know that an error 10106 is a Winsock error
ooooooo harsh
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away" sonork: 100.18128 8028finder.com
|
|
|
|