|
Have a scout about for "Packet Shapers". You may find some useful articles.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fuity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
Hello !
I need to check if a specified directory exists. If not, I must create it (a complete path is specified).
How is the best way to do that ?
Thanks
|
|
|
|
|
I think this will work
CFile f;
CFileStatus fs;
if(f.GetStatus(lpszDirectoryPath, fs) == FALSE)
MakeSureDirectoryPathExists(lpszDirectoryPath);
Arjan
|
|
|
|
|
Hi !
Thanks, that worked .
|
|
|
|
|
Why not just call CreateDirectory(...) and be done with it? If the directory does not exist, it will be created and if it does exist, you will get back an ERROR_EXISTS error code. Either way, you get want you want and will likely be faster than doing you own check(s) first.
But the Shell LWAPI function PathFileExists(...) was designed for checking for the existance of files/directories...
Peace!
-=- James
Tip for SUV winter driving survival: "Professional Driver on Closed Course" does not mean "your Dumb Ass on a Public Road"! Articles -- Products: Delete FXP Files & Check Favorites
|
|
|
|
|
What I am looking for is a state machine diagram showing how to decipher a regular expression. I've searched the www and have half a dozen pieces of source code that process regular expressions, plus I've read more articles on NFA's and DFA's than I care to think about. None of them give me what I am looking for. I am working on developing my own diagram, but it is far more complicated than it appears on the surface. I've written DFA's to handle kown cases (keywords,numbers,etc..), but what I want is to allow the user to enter in a regular express that my code can use to generate a (specific) DFA in memory.
INTP
|
|
|
|
|
Hello,
I am using Borland C++ 6,
I need to read and send RAW Ethernet packet,
From few weeks I am trying to use winpcap, TjesComponenet and more programms to read and send Ethernet Data on the network. Any of these is working good !!! snif
Can any one tell me how to developp a raw ethernet packet using NDIS ???
I found a exemple of NDIS on C#, but none on C++.
Can anyone help me please ???
|
|
|
|
|
What are your problems with using an existing NDIS driver i.e. winpcap?
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fuity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
I don't know how to use NDIS!!!
I can't find a single soucre code in C++ only using NDIS.
|
|
|
|
|
hai
Now i am using MFC ActiveX controlWizard to create TextBox Control. I want to add some Property that no provided by Microsoft form 2.0 in TextBox control. At the same time, the bacis property such as AutoSize, AutoTab, SelText,Value, Visible property in Microsoft TextBox still want to maintance plus my adding property. I no need to do agian the bacis property and i just want add the property that i want. How can i do it? where can find the microsoft form 2.0 textbox activeX control source code in mfc langauage?
Pls help help me;)
Thanks
kelvin
|
|
|
|
|
IMediaSeeking *pMS = NULL;
...
init pMS;
...
pMS->SetRate(2);
when I try to change the playback rates using this function, it fails when playing a mpeg2 file (fine with an uncompressed avi file), there wont be any change in play rate, is that due to the decoder I am using? the decoder I use is stinky mpeg2 decoder. Anybody knows why?
|
|
|
|
|
how to let text box auto return when I reach right side edge of it? in another word, there's a limitation of characters in line.
|
|
|
|
|
>code>LimitText will let you set a max number of characters. As for auto-returning, you might want to handle the EN_UPDATE notification message for the edit.
|
|
|
|
|
Wt is the Difference between Debug Build and Release build.
when i channged from Debug to release build..
there r alot of errors.
if some one wanaa send the project to user in which format it should be??
thanx
|
|
|
|
|
|
Hi Dear answering last part first
One has to deliever the Release Mode executable to the client.
Next i am providing following link here: This will be helpful to get the idea about Debug and Release mode conflict:
http://www.codeguru.com/forum/showthread.php?s=&threadid=269905
Apart from this tehre is well known and widely famous good article on codeproject--Debug section i.e. Surviving Release mode
Check it out
Hope this will help.
Leave your mark wherever you go
|
|
|
|
|
hi,
Y its neccesry to deliever the Release Mode executable to the client.
wt r the difference or disadvantages w.r.t client point of view .
thanx
|
|
|
|
|
Hi All,
I have 2 processes using same port.I want to send data on port and read by the same data by second process on same port. For that purpose I need to have network notifications. I tried using WSACreateEvent API. but this is only for single process.What I need to do?
Vikram S
|
|
|
|
|
Make a third process, that is a port traffic broker, and have the first two communicate with it using RPC and syncrhonization events.
|
|
|
|
|
Well,How to write port traffic broker? any guideline/sample?
|
|
|
|
|
What I meant was that two programs could not have the port open at the same time, I think.
So, you make a third program that opens the port up for reading and writing.
The other two programs use RPC to communicate with the broker when they want to read and write. The broker can set events when there is data available or some occurrence of interest to either of the other two programs.
Search this site for 'RPC' and you will find many articles.
Here is one that might be worth reading. There is also another that claims to be an introduction to RPC.
How to use rpc for doing bi-directional client/server procedure calls.
http://www.codeproject.com/internet/birpc.asp
Search this site for 'sockets' and you will find many articles.
Microsoft does something similar for TAPI, since only one 'process' can really control a modem at any given time.
|
|
|
|
|
now, i can compress a file to zip and uncompress it with zlibstate.lib that is downloaded from http://www.winimage.com/zLibDll/unzip.html.
but i wanna delete a file from a zip file, i don't find the approach to do it.
can you tell me how do it? 3ks
hi
|
|
|
|
|
Check the following articles.
http://www.codeproject.com/cpp/zip.asp
http://www.codeproject.com/cpp/zipunzip.asp
Rodrigo Pinho Pereira de Souza
|
|
|
|
|
yes, i was read it, but i can't find the function to delete a file that is in zip. There is only add a file to zip and extract a file from zip.
thanks. if write it by myself, it's not worth. i hope there is a source code to do it.
someone can help me?
Shy, My english is so poor.
even now, would you like help me?
|
|
|
|
|
FWIW, I believe that even WinZip recreates (instead of just modifies) an archive when deleting from it, which leads me to beleive that the ZIP format does not directly support deletion in situ.
You may have to stream the archive's contents from the original archive to a temporary one and just omit the desired file when you get to it...
Peace!
-=- James
Tip for SUV winter driving survival: "Professional Driver on Closed Course" does not mean "your Dumb Ass on a Public Road"! Articles -- Products: Delete FXP Files & Check Favorites
|
|
|
|