Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
K

Kamal Shankar

@Kamal Shankar
About
Posts
13
Topics
9
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Software EPABX
    K Kamal Shankar

    I have an old PIII computer that still runs and thus I have no heart to retire it. It seems that I can put it to better use - create a file server is the first thing I want to do. Before I do that however, I want do a kind of a "software EPABX". This is what I want to do: 1. This computer is just another node connected to the main router in our house. 2. Skype/TeamTalk/GTalk/etc runs on "this computer" while logged in using an account name "a" 3. Whenever we want to make a call, we "connect" to this computer using our individual account names "x", "y" etc 4. A software runs on "this computer" that allows me to "pipe" the sound card input and outputs to the VOIP application running on "this computer". This would effectively allow us to login to Skype/etc using our individual accounts but place calls through a single account when we want to make outgoing calls. I vagely remember seeing an application like this that would allow me to connect ports like they way I want to when I used to do some DirectX programming, but the details escape my mind. would it be too difficult to code such an application? Does such an application already exist?

    "God then made two great lights; the greater light to rule the day, and the less light to rule the night" - Genesis 47:3

    The Lounge css graphics game-dev sysadmin question

  • Implementing a custom Dialogbox
    K Kamal Shankar

    Hello all, I am trying to assign a Dialogbox resource to a custom dialogbox class... specifically Anna Meltcafe's CNGWizard (Resizable Wizard) To be very specific, I have to make my PropertySheet belong to CNGWizard class and PropertyPages to CNGWizardPage class. The problem is, I cannot locate CNGWizard nor CNGWizardPage in ClassWizard under MFC ClassWizard as the base class of the dialog. It shows me CPropertyPage just fine, but does not have CPropertyPageEx ! I thought the .clw files had got corrupted again and rebuilt it, but CNGWizardPage nor CNGWizard appears in the controls list of the ClassWizard's "New Class" dialog... I admit to never trying to use custom dialogbox classes before - but I have used custom controls a lot and custom control classnames showup in the ClassWizard just fine ? I am using Visual C++ 6.0, SP5 -- modified at 22:03 Tuesday 25th July, 2006

    C / C++ / MFC c++ help question learning

  • MFC GUI for reading in multidimensional matrix elements
    K Kamal Shankar

    I am developing a problem which rquires me to read in variable sized 1D/2D matrices from the user. I can't think of a nice GUI which will make this task easy for the user. All I can come up with is : 1. Ask the user to enter the elements one by one 2. OR, display a textbox where they can type in the matrix (like in MATLAB) Is there any better way to let the user enter the matrix ? I am thinking of something like a dialogbox which will have a textbox for every cell of the matrix. Note that the metrices maybe variable sized and there's no fixed upper limit to the order of the matrices.

    "God then made two great lights; the greater light to rule the day, and the less light to rule the night" - Genesis 47:3

    Work Issues c++ css help question

  • Favourite interview questions
    K Kamal Shankar

    Nish ! ;) But really, for a fresher/ or about 2 yrs experience, this question is indeed a VERY good way of seeing how he works things out... "God then made two great lights; the greater light to rule the day, and the less light to rule the night" - Genesis 47:3

    The Lounge question lounge career

  • Favourite interview questions
    K Kamal Shankar

    For a totally software position, try asking from Soft Engg, specially SDLC models and little about Functional design and testing. When I interview systems guys specially in C/C++ I just ask them to write a simple for loop and then ask them to modify parameters and explain the results. A current disturbing trend is that many CS majors have been least careful in studying their Digital and Basic electronics, but they are chock full of Java and stuff... At this rate, I am afraid we will so no more good enginners but just butt loads of I.T guys coding stuff all day... "God then made two great lights; the greater light to rule the day, and the less light to rule the night" - Genesis 47:3

    The Lounge question lounge career

  • How did you get hooked onto programming ?
    K Kamal Shankar

    Today, evening, the neighbour's 12 (?) year old kid comes upto me with a DOS 6.22 book and asks me how to set up his CONFIG.SYS properly.. The reason why he wanted to use that DOS is really very interesting and I should blog about it sometime, but it brought back pleasant ol' memories from my own nerdy childhood ;) I was hooked onto computers not by games initially, but by batch file programming and later on, ANSI.SYS... (as my memory serves ?) and even the c00l things you could do with CONFIG.SYS/AUTOEXEC.BAT ! Now I fail to recall why I found batch programming so much fun (maybe because you had to purchase GW-BASIC ? was that it ?), but I found using escape sequences and colorful stuff you could do with ANSI.SYS pretty amazing.. Infact, now I remember that PC Mag. (?) carried a full article by Charles Petzold on formatting the command prompt and stuff like that.. Norton's book on DOS programming during that time sold like the VB.NET guides of today... Memories... (but it's killing me that I can't recall why I didn't start with GW-BASIC ? Did the 5.25inch floppies from which you had to boot DOS have BASIC ? Don't think so - MS sold BASIC by ANOTHER set of discs in a box - but correct me if I am wrong - so .BAT was the only thing the OS offered free).. DOS 6.22 really rocked man on 66MHz.. anybody remember MSAV.EXE ? History repeats itself - eh ? Enough about me - how did *you* get hooked ? "God then made two great lights; the greater light to rule the day, and the less light to rule the night" - Genesis 47:3

    The Lounge csharp css performance tutorial

  • Is Windows 2000 SP5 gonna be released ?
    K Kamal Shankar

    Any chance that Win2k SP5 is getting released ? You know - all those hotfixes and cumilative updates are getting unmanageable ! Any news if they might be consolidated into one big service pack ? Or is *the firm* going to shift focus to WinXP/2003 and higher leaving us Win2k diehards behind ? "God then made two great lights; the greater light to rule the day, and the less light to rule the night" - Genesis 47:3

    The Lounge css question announcement

  • Help on dynamically creating UI elements based on XML data required
    K Kamal Shankar

    Hello Can anyone direct me to a resource where I can see working demo(s) / samples highlighting HOWTO dynamically create a user interface from a XML data definition. What I mean is this: There will be one or more XML data files which will actually contain information regarding controls to be drawn. A program will read those XML files and dynamically create the defined controls. Hence, if the XML reads something like:

    ....
    <Button>
    <ID>CommitPatchButton</ID>
    <Caption>Complete task</Caption>
    <Style>Flat</Style>
    </Button>
    ....

    Then our program should create the button which is associated with the ID 'CommitPatchButton' with the defined specifications. Ofcourse, the XML definition will ONLY define UI Elements and their visibility (for instance,if the button should be made visible or not). The code associated with the controls will be already present beforehand. Thus, in our case, if the above button is defined as visible in the XML data, then we will draw it as specified, and to user will be able to use the functionality associated with it. Ideally a VC++/MFC solution will do, though, it's a working implementation that's more neccessary, so that I can grasp the idea quickly. Otherwise, if you have a brilliant whitepaper/article/layout to achieve the goal (but with the code lacking..), send it(or a link to it) to me anyways ! Note: No business quotations please. Regards Kamal Shankar "God then made two great lights; the greater light to rule the day, and the less light to rule the night" - Genesis 47:3

    C / C++ / MFC c++ design css business xml

  • Anybody know about a working smtp email program WITH source ? What's wrong with this one ?
    K Kamal Shankar

    Nice picture anyway. Got it... :) Cheers Kamal "God then made two great lights; the greater light to rule the day, and the less light to rule the night" - Genesis 47:3

    The Lounge c++ announcement com sysadmin beta-testing

  • Anybody know about a working smtp email program WITH source ? What's wrong with this one ?
    K Kamal Shankar

    Hello I am looking for source (preferably Visual C++) to a SMTP mailer which works correctly. The email module for http:\\www.codeproject.com\internet\ipemailannc.asp does not seem to work, atleast in my modified version: I am posting the modified version (picked from parts of a program that I wrote) : Source: ----------------------- #include "stdafx.h" #include "baseheader.h" #define BUFFER_DEFAULT_SIZE 4096 #define CMD_BUFF 256 #define SMTP_DEFAULT_PORT 25 #define TARGET_ADDRESS "a@b.com" #define SOURCE_ADDRESS "c@d" #define DEFAULT_SUBJECT "Subz " #define DEFAULT_SERVER_ADD "mail.x.y" SmtpMsg msg; TCPServer srv; SOCKET ssmtp; char szBuffer[BUFFER_DEFAULT_SIZE]; //Buffer to get response from server bool setSmtpMessage(char*); int connectToSmtpSrv(void); bool sendSmtpAnnounce(void); bool init(void); bool quit(void); int _tmain(int argc, _TCHAR* argv[]) { init(); char szMessage[2048]={0}; printf("\nEnter the message body (Hello World) \n"); fflush(stdin); scanf("%[^\n\r]",szMessage); if(*szMessage==0) { lstrcpy(szMessage,"Hello World"); } setSmtpMessage (szMessage); initConn(srv.address, srv.port, &ssmtp); sendSmtpAnnounce(); quit(); return 0; } bool init(void) { char* pszFrom,*pszTo,*pszMailServer; pszMailServer=new char[257]; pszFrom=new char[257]; pszTo=new char[257]; *pszFrom=0; *pszTo=0; *pszMailServer=0; printf("\nEnter the mail address : "); fflush(stdin); scanf("%[^\n\r]",pszTo); if(*pszTo==0) { msg.ToAdd = TARGET_ADDRESS; delete[] pszTo; } else msg.ToAdd = pszTo; printf("\nEnter the mail address : "); fflush(stdin); scanf("%[^\n\r]",pszFrom); if(*pszFrom==0) { msg.FromAdd = SOURCE_ADDRESS; delete[] pszFrom; } else msg.FromAdd = pszFrom; //Here define the subject of the announcement msg.Subject = new char[CMD_BUFF]; strcpy(msg.Subject, DEFAULT_SUBJECT); strcat(msg.Subject, getNowTime()); printf("\nEnter the mail server : "); fflush(stdin); scanf("%[^\n\r]",pszMailServer); if(*pszMailServer==0) { srv.address = DEFAULT_SERVER_ADD; delete[] pszMailServer; } else srv.address = pszMailServer; srv.port = SMTP_DEFAULT_PORT; return true; } bool quit(void) { closeConn(ssmtp); return true; } bool setSmtpMessage (char* body) { msg.MsgBody = body; return true; } bool sendSmtpAnnounce (void) { char Data2Srv[BUFFER_DEFAULT_SIZE]; char FeedBack[BUFFER_DEFAULT_SIZE]; char* CRLF = "\r\n";

    The Lounge c++ announcement com sysadmin beta-testing

  • RFC - Dilemma of sharing knowledge
    K Kamal Shankar

    ;) But remember - it's you who's going to edit those - don't say I didn't warn you ;) Allright. Let's roll. "God then made two great lights; the greater light to rule the day, and the less light to rule the night" - Genesis 47:3

    The Lounge c++ html css com security

  • RFC - Dilemma of sharing knowledge
    K Kamal Shankar

    Hello all Thanks to my friend, a few days ago, I came across a Microsoft Research's product - Detours. Though binary patching (to modify program code functionality) has been there since the 80s, Detours makes it painless for us. It's ALMOST transparent ! Please visit Microsoft Research's site for more details. Due to the philosophy of CodeProject, I wish to share the knowledge that I have gained using Detours with you all. However, as with anything , the information that I am willing to share might have considerable impact on Win32 security. You got it - I may unintentionally land up helping crackers. Yet, the information will no doubt help authentic developers in their daily work. You see - using Detours, you do not even need the source code in order to extend the functionality of an existing program ! Detours is NOT supported by Microsoft at all, and will work ONLY on WinNT architecture, except the binary rewriting function for adding payloads and modifying of import tables of Detours which ALSO works on Win9x. I am at a loss as to what I should be doing. I really would not like wasting my time writing articles which Chris and his group will not be able to publish on this great site. I have put up a plan of articles at http://www.geocities.com/kbshankar2000/ArticleSchedule.html. All source will be in form of C++/Win32 API using VS6 Project. Please send in your comments till the 29th of March. Based on all your feedback, I will take furthur action. Regards, and thanks for reading Kamal Shankar "God then made two great lights; the greater light to rule the day, and the less light to rule the night" - Genesis 47:3

    The Lounge c++ html css com security

  • Internet Explorer now downloading all files to a temporary directory...
    K Kamal Shankar

    Hello A few days ago perhaps I inadvertently clicked on 'Download files to a temporary folder..' on the IE File Download box while downloading a few files from CNet. Now whenever I download a file, it automatically downloads it first to a temporary folder and opens the file with the associated application. I want to revert to the state where the IE File Download box used to ask me if I wanted to Save the file to disk OR open the file from current location. I did lot of fiddling with IE Options and Registry searches, but nothing obvious stood out to me. I am using IE 6, Win 2kP SP4 . Any suggestions ? Regards Kamal Shankar "God then made two great lights; the greater light to rule the day, and the less light to rule the night" - Genesis 47:3

    The Lounge css windows-admin question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups