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

khan

@khan
About
Posts
485
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Farewell VS2005
    K khan

    Yes. I am currently updating a COM component that is used by girly ASP.NET. Well, because if you want to write something that actually does something more than display HTML pages, you HAVE to use C. And I am pissed off at modern *programmers* using ASP calling themselves *programmers*. Surely these half-men could use some brain cells and stop calling themselves "programmers". Sorry about the rant.

    this is this.

    The Lounge csharp com question announcement code-review

  • opening webcam with MFC
    K khan

    You will need to study some DirectShow for this. Here is a simple article which shows a preview from a webcam. Simultaneous Previewing & Video Capture using DirectShow[^]

    this is this.

    C / C++ / MFC c++ question help tutorial

  • Refresh Desktop programatically
    K khan

    I found this code in one of the forums here: SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, NULL, NULL); Be sure to include "shlobj.h"

    this is this.

    C / C++ / MFC tutorial

  • Narrowly escaped from a vehicle crash
    K khan

    Patrick Sears wrote:

    breaks.

    Been programming too much? I remember the first time I used the break statement, I applied the wrong brake;

    this is this.

    The Lounge c++ csharp com performance discussion

  • Do you believe in ghosts?
    K khan

    JimmyRopes wrote:

    Do you believe in ghosts?

    Yes I do. In Islam, we know that just like there are good humans and bad humans, there are good ghosts, and evil ghosts. Humans can use the ghosts to do things for them (aka black magic). I have been told by my father of an incident when my grandmother got ill, and no medicines seemed to work (back in the 60's), my father went to a man who controlled ghosts. He started calling his good ghosts, and they came and started chanting "Assalam-O-Alaikum" when they came in the room. (It was a closed room with only one small window, and the door was closed). He asked his good ghosts to get the evil ghosts' plan and things and the good ghosts brought back some writings on pieces of paper, which they started to throw at the floor. (All the while they made a lot of noise in the room), and the man while sitting on the ground was being lifted from the ground by several inches and then dropping. Then the ghosts asked for money, and my father put some money on the floor, and it disappeared right before his eyes. They asked for more, and he put more down, and it also disappeared. Later, the man told my father to throw the writings in some flowing water. My father came home, and grandmother was walking again like nothing happened.

    this is this.

    The Lounge question

  • Still not smoking....
    K khan

    Women are always on the lookout for the prince with the golden apples. In the meantime, they may settle for a less fortunate fellow. May be to her, you were the prince with the silver apples. May be, now she has found the prince with the golden apples. Immature women want bad guys. They want guys that they can reform / change. Now it might seem to her that she has changed you all that she could, and is now looking for another one to reform. Speak to her. Ask her why she would do this? Make her give reasons. If she hesitates, she might be seeing somebody else (cheating on you), so you are better off without her. goto end; If you want her back, go to her, smelling like a cigarette, with a cigarette pack half visible from your pocket. If she asks, tell her that you've gone back to smoking. Also you can light in front of her so she knows you need more reforming, and she might come back. goto end; If you want revenge, tell her that you've found the true love of your life, and let her catch you going out with another woman prettier than her. Tell her that you are really happy, and that with her, you were always sad, but couldn't tell her, and that it is a real good thing that she left herself. end: Also try praying (even if you are not religious). It seems to work.

    this is this.

    The Lounge

  • How to forget
    K khan

    dnh wrote:

    games that takes lot of focus, works good in short term

    Been there. Done that. How long can one play games? five hours? and after that, lying in bed to sleep takes a lot longer (at least for me). Better do some workout. I also plan to write a few hundred pages on a blog and make it public.

    this is this.

    The Lounge help tutorial question

  • How to forget
    K khan

    ednrgc wrote:

    Don't continue to beat yourself up over the fact that he's doing things to her that you couldn't.

    I remind myself that I was the one who ended it. And I never thought of doing nasty things to her. I thought it was sacred. I don't think about what she may be doing with her new partner. It was a choice she made. She used me when she could, but stayed with her other friends. So I quit.

    this is this.

    The Lounge help tutorial question

  • How to forget
    K khan

    Wjousts wrote:

    Try growing a pair!

    Oh please! I don't have that much free oestrogen. I am going to use most of it for crying.

    this is this.

    The Lounge help tutorial question

  • How to forget
    K khan

    Thanks for the advice. I just stopped reminding myself of her during the last four years, and lived fine. Moved. Made new friends. Wrote a lot of code. Basically tried to move on, but after what I have learnt yesterday and confirmed it today, I will have to fight it again for the next few days/weeks.

    El Corazon wrote:

    jumping from one relationship to another isn't good

    Right on. I wasn't going to do it anyway. Didn't for more than four years.

    this is this.

    The Lounge help tutorial question

  • How to forget
    K khan

    leppie wrote:

    Find someone else

    I hope the reply is meant for me. If I wanted someone, I could get quite a few chances. I did not look for another one in the last four years and probably won't for another few years.

    this is this.

    The Lounge help tutorial question

  • How to forget
    K khan

    Tamimi - Code wrote:

    did you ever think that she don't deserve you ?

    No, I left her because she would hang out with Flash designers instead of the only true C++ programmer in the area. [/joke] But seriously, No, I thought that she didn't deserve me after what she used to do to make me feel bad. May be it made her feel better. She left me once, and it was a clear indication that she would do it again if I stayed. So I left.

    this is this.

    The Lounge help tutorial question

  • How to forget
    K khan

    Tamimi - Code wrote:

    Don't blame your self about something you don't have a choice with it

    Yes, I have only myself to blame. I had the choice to get into a relationship or not. I chose to. I trusted the wrong people.

    this is this.

    The Lounge help tutorial question

  • How to forget
    K khan

    Colin Angus Mackay wrote:

    That sounds more like you were the one with a problem

    No, I wasn't looking for trouble, ever. The teacher was in love with one of his other students. And that student had a crush on me. The teacher wanted to get rid of me, so I became their (the teachers group's) target, and he kicked me out of that study group into another one. Hence I became a little more aggresive when he tried to push me again, but never hit anyone.

    this is this.

    The Lounge help tutorial question

  • How to forget
    K khan

    Thanks for the reply. And yes, I had been in more trouble when with her than I have been in without her. I had real bad relations with some university teachers. I was almost kicked out of the uni. I passed out once in the classroom, and nearly a second time. I smashed a glass while standing on stage. I almost hit a teacher once... and many other things I have forgotten. Yes, all because of her.

    this is this.

    The Lounge help tutorial question

  • How to forget
    K khan

    Thanks for the suggestion, but another girl is out of the question. I have had enough. Although getting busy is what I am going to do.

    this is this.

    The Lounge help tutorial question

  • How to forget
    K khan

    How do you forget someone? I mean how do you get over a relationship that failed? I need help here, and I can't talk to friends about it. I used to know her years ago, but now I have learnt that she left last year. I even disconnected myself from old friends because they would remind me of her. I just wanted it to be over, but now the memories have come back. I need to get over it before I do something stupid. (I don't know if I can get any more stupid than looking for love in the wrong people). I really want myself to be glad it is over, but how? (It was an abusive relationship for me that started in 1999 that I ended around mid 2003, four years ago!) Please make some suggestions / words of wisdom.

    this is this.

    The Lounge help tutorial question

  • How to make drop down part of toolbar button more wider?
    K khan

    I think you can try to set another toolbar on top of your current specific toolbar button. That new toolbar should have only one button in it, a wide one. Just like you can put regular controls instead of toolbar buttons, I believe you can also set a toolbar on one of the buttons. First you need to set the style of that button to TBSTYLE_SEP, then set the new toolbar on top of it, and set the button's width yourself, handle the OnSize handler, ... something like that...;)

    this is this.

    ATL / WTL / STL c++ tutorial question

  • Adding bitmap images to toolbar buttons programmatically
    K khan

    /*Here, hInst is your HINSTANCE, like: HINSTANCE hInst = _Module.GetResourceInstance();*/ /*IDB_SOME is the resource ID of your new bitmap added to the project*/ /*hWnd is the HWND of the toolbar*/ TBADDBITMAP bmpNew; bmpNew.hInst = hInst; bmpNew.nID = IDB_SOME; ::SendMessage(hWnd,TB_ADDBITMAP,1,LPARAM(&bmpNew)); TBBUTTONINFO tb; memset(&tb,0,sizeof(TBBUTTON)); tb.cbSize = sizeof(TBBUTTONINFO); tb.dwMask = TBIF_IMAGE; /*Here, set this number to the next value after the end of your bitmapped toolbar*/ tb.iImage = 6; /*ID_FIRST_BUTTON is the ID of the toolbar button you want to set the image of*/ ::SendMessage(hWnd,TB_SETBUTTONINFO,ID_FIRST_BUTTON,LPARAM(&tb));

    this is this.

    ATL / WTL / STL graphics c++ com help question

  • graphics.h
    K khan

    I think graphics.h is a part of Borland Turbo C++. It does not come with MS Visual studio. You could install Turbo C++ 3.0 etc to compile the code. Also you could port it to gcc to run on *nix based systems: http://www.sandroid.org/TurboC/[^]

    this is this.

    C / C++ / MFC visual-studio question csharp c++ graphics
  • Login

  • Don't have an account? Register

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