I'm trying to decode the following address (came from an IRC server)into a regular IP. I can't compile/run "identd.pl" which requires a linux server/box to run, (identd.pl is the script normally used to do this, as explained in the quote below) Address: d14813f.1da97c9.dsl.bell.ca Is this normal hex? Is it possible to decode without actually having the linux script do it for me? It's important and regarding some trouble/threat makers on an IRC server. We would like to find out the real IP of the person. (Here is some info on how the proccess is normally done.. on a linux box, which I don't have access to) "identd.pl The identd lets a user be idented to a hex encoded version of their IP address eg: c0a80202@your.host (this decodes to 192.168.2.2), you can use the included decode.pl to decode an IP address (or work out the hex yourself :). It makes banning on the host possible at channel and server level, which makes it much easier to allow more unrestricted access to CGI:IRC. To set-up the identd.pl you need root access to the system where you have installed CGI:IRC. The identd.pl requires you to be using an inetd, i have used it with inetd but people report it works with xinetd too." -- modified at 17:58 Friday 2nd March, 2007
no_life
Posts
-
From hex code to IP [modified] -
CString, class problemWell, actually im trying to get a string from the parent dialog to fill a child dialog edit box. I took your suggestion, but for some reason when i hit the button, it opens the main dialog. In the parent dialog i have:
Value1="test"; CChange change; change.DoModal();
then in the child i did:
CMainDlg maindlg; m_edit1.SetWindowText(maindlg.Value1); m_edit1.UpdateWindow();
when i hit the button, it launches the main dialog window as if it were opening the program again ! ? The reason i want this function is so that i can double click an entry in the listctrl and have it open with the strings in edit boxes, so that you can edit them and make changes.
-
CString, class problemhello, I have a database program and i'm trying to get a CString variable from one class to work in another but i am getting strange results. It's dialog based and i made a new dialog class. I included the header files and it copiles with no errors but it spawns the main dialog when i try to use the string. (the string name is Value1 and its from the CChange class.)
CChange change; m_edit1.SetWindowText(change.Value1);
for some reason this launches the main dialog and does not work as a string. Any help would be much appreciated.
-
Change title bar colorHi, I am currently struggling getting the title bar color changed. I want to change it to something that matches the dialog colors/bitmaps. Ive read a few articles but i just cant comprehend them. Any comments or advise is welcome, thanks
-
printing a sring to edit view/doccumentDavidCrow wrote: In your CDocument-derived class, you'll need an object (e.g., CString) to hold the (HTML) text. As you click each button, you'll update this object accordingly. After each update, you'll need to call UpdateAllViews(...) so that the view can render the text. hello, thx for the reply i will try and use this when i get the chance, it sounds a bit cloudy to me but i will have a go at it
-
Avi fileshello, you can open avi's, edit them and play them frame by frame with visual c++ 6.0....i tried it once and opened a porn or something in there and played it frame by frame. theres a tool thats included in visual studio called "AVI Editor".
-
printing a sring to edit view/doccumenthello, this is a kind of simple question. I have MFC/C++ a html editor that i am in the process of making. I want to be able to print a string into the doccument such as a html tag and map it so that when i press a certain button it will display "/font"in the doccument for example. could be in the tool bar as well. if i can figure this out i will add a button for all the common html tags. i would greatly appreciate any help, thank you
void CtoolDlg::OnButton1()
{
//TODO: Add your control notification handler code here
} -
noob alert part 2 !! ShellExec function.hi, thank you very much for the info! you got me on the right track.. however when i compile i get an error that reads: error C2373: 'ShellExecuteA' : redefinition; different type modifiers i dont know if i put all of the code in the right spot, i added it all under the button function:
void CShell2Dlg::OnButton1() { // TODO: Add your control notification handler code here HINSTANCE ShellExecute( HWND hwnd, LPCTSTR lpOperation, LPCTSTR lpFile, LPCTSTR lpParameters, LPCTSTR lpDirectory, INT nShowCmd ); ShellExecute(0,"open","http://www.codeproject.com","","",SW_SHOWNORMAL); }
--later
-
noob alert part 2 !! ShellExec function.hello, I am a begginer. i'm experimenting with a shellexec funtion to try and launch various things from my simple dialog based MFC application. Things like web pages, exe's, and files. I plan on just mapping them to a simple button. can anyone explain (in newb terms) how to get this function to work properly?? How to implement it and where exactly im supposed to add this code?? I would really appreciate any help, Thanks
-
text color and fonteheh got it, i think my line was setbkcolor. i just searched the include files for the settextcolor line, and saw it right above. the program is set to draw one string. i tried to add another and i cant get it to draw the second one. i was thinking about having it show one little page of info. Then going through the menu or other button and having it display another string of info, kind of like a bunch of pages. any idea on how to do something like that? another thing that would be a cool addition would be a image added to the backround. i saw a ton of functions for the images in the include files and it would be a prayer if i actually found the right function for this. im gonna keep messing with it though and learn as i go. -later
-
text color and fonthockey, i tried the code you gave me and it worked! thanks a lot man i really appreciate that. the line i entered was..
SetTextColor(hdc, RGB(64,128,255));
theres one thing i was wondering about... theres a white highlight to just the text, i changed the backround and text color but there is still a white backround to the text. im going to try and see if i can switch that color too thanks again. -
text color and fonthi, thank you for your seggustions i will try the out when i get the chance. i think i did mean visual studio... its the program called microsoft visual c++ 6.0. sorry about the mixups im a coding newbie. (n00b alert) i have edited lots of good code but never really come up with my own program from scratch. I customized quake2.exe to have all kinds of new features, graphics and commands. i made my own mod for quake2 also (thats gamex86.dll). i pretty much did it all with no help or prior experience but now i want to attempt something simple as making my own little program and its a lot harder then i would have imagined. thanks again
-
text color and fonthello ppl, i am making a very simple program that is a window application. pretty much a basic hello world program to just get myself started and i have the program set up. its written in c++ and compiled with visual basic 6.0 my question is how do you pick text colors and font size? i also have a couple console programs (they open with a dos command prompt) and i would like to know how to do it in those as well. its been making me insane cause its taking so long to find something as simple as the code to change text color. mabie i would even like to add a next page to it so u can toggle pages, but i want to take it one thing at a time and try and figure this color thing out first. i would appreciate any help or advise, thank you.