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
G

Greven

@Greven
About
Posts
37
Topics
9
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • ISO Image Burning (long - shoot me later)
    G Greven

    Another option is WinISO. It opens iso files like it was a zip file. Can be very handy. It will also create iso files, also quite handy Programming in binary is as easy as 01 10 11.

    The Lounge mysql linux hardware algorithms help

  • Best Application Acronym...
    G Greven

    Here's one that I actually almost used once. It was for a network message system. (You know the standard scrolling message type thing) Broadcast Your Technical Clarification Here That way if something went down and we needed everyone to know, we could just go and tell the Bytch :):laugh: Programming in binary is as easy as 01 10 11.

    The Lounge

  • Char to INT?
    G Greven

    Ah, my mistake... Didn't see the quote around 32... Thought he had an array of char's, not a string. :-O:rolleyes::-O Programming in binary is as easy as 01 10 11.

    C / C++ / MFC question tutorial

  • Char to INT?
    G Greven

    I think the easiest way would be to simply cast it... iTest = (int)cTest[i]; Wouldn't that work? :~ Programming in binary is as easy as 01 10 11.

    C / C++ / MFC question tutorial

  • Question of the day
    G Greven

    That is so far from true... Windows bigot ;P Programming in binary is as easy as 01 10 11.

    The Lounge sysadmin linux question discussion

  • Weirdness
    G Greven

    Another fun test with vision (at least with monitors) is what I like to call the Doritos test. Stand back a good 10 to 15 feet. Crunch a chip while looking at the monitor. You can get pretty good at telling the refresh rate of a monitor that way ;P hint: 60 Hz - Large shake 75 Hz - small shake >80 Hz - almost no visible shake It's fun for the whole family! :laugh: Programming in binary is as easy as 01 10 11.

    The Lounge help question

  • License question
    G Greven

    Michael P Butler wrote: I assumed with "friend" he was referring to himself. moi? Why would you think that? :) Seriously though, the software in question was from an enterprise subscription to MSDN. When it was received no one else in the building was using VC, so they gave it away and said that the person that took it could take it home. That still really doesn't make the person own it though does it... *whispers* btw, it's me :P But I do actually own my own copy of VC6 Pro, and that's really all I use from VS, so it's not to bad. I did at least already own a copy of Visual C++. Programming in binary is as easy as 01 10 11.

    The Lounge question csharp visual-studio

  • winsock or CSocket
    G Greven

    I'm actually going through a similar situation. And I can tell you that CSocket will not connect to a standard socket connection. If you use CSocket, you have to use CSocket throughout. If you can't use CSocket on all ends, use basic sockets. There's quite a bit of info out there. Programming in binary is as easy as 01 10 11.

    C / C++ / MFC sysadmin c++ json question

  • License question
    G Greven

    My "friend" got a copy of Visual Studio from the place he used to work. They had an Enterprise license, and from what "he" told me "he" was allowed to have a copy for home use. My "friend" no longer works for that company. Is it legitimate for "him" to continue using it? Or would the licensing end when employment ended? Just curious for my "friend." ;P Programming in binary is as easy as 01 10 11.

    The Lounge question csharp visual-studio

  • NT Service networking
    G Greven

    Daniel Lohmann wrote: or a user defined service control code. The last one is elegant because you don't need an own watcher thread. What exactly do you mean by this? What is a user defined service control code? Also, if I do use normal socket code, is it common to have a looping thread that just sits there waiting to receive something? Programming in binary is as easy as 01 10 11.

    C / C++ / MFC question tutorial c++ design sysadmin

  • NT Service networking
    G Greven

    I'm beginning work on an NT service (only in the early design phase right now) that will need to respond to network requests. I've done work with networking before, but this will be my first service. What I'm finding already is that there doesn't seem to be an easy way to handle networking. At least not as intuitive as through CSocket with MFC. What type of system does everyone else use for a service? I know I can setup a thread that continually tries to receive, and that might work. I've also looked into using the MFC service classes out there (PJ Naughter's in particular) so that I can use CSocket again. Both seem to have there up's and down's. Is there an easy way that I'm not seeing? Also, as a second question. How do you control a service? I understand how to start, stop, and pause them. But how do I grab it and call a function? Or can I? Basically, if I write a control panel applet for example, how do I adjust the service in realtime? I could always write adjustments to the registry, but then I would also have to have a thread watching for changes and that doesn't seem very logical either. Again, is there an easy way that I'm just not seeing? "Go Confidently in the direction of your dreams. Live the life you've imagined." - Thoreau

    C / C++ / MFC question tutorial c++ design sysadmin

  • MFC Skinning
    G Greven

    Been reading up on doing a win32 skin, and I can do it great in a standard win32 app. But now I try to do it in an MFC doc/view app and it doesn't quite work the same. I have a bitmap in my resource file, and I create a CBitmap from it. I can BitBlt it from the OnDraw function, but it will only draw in the view area... Not the whole app. How can I get it to draw over the entire application? Here is my current code that I'm using: void CSkinTestView::OnDraw(CDC* pDC) { CSkinTestDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); CDC memdc; memdc.CreateCompatibleDC(pDC); memdc.SelectObject((HBITMAP)m_Skin); pDC->BitBlt(0, 0, 200, 75, &memdc, 0, 0, SRCCOPY); } m_Skin is a CBitmap variable that is created and grabs the bitmap from the resource in PreCreateWindow(). What can I change? I tried putting this type of thing in the Mainframe's paint call, but get all kinds of fun errors... Any sugggestions? Programming in binary is as easy as 01 10 11.

    C / C++ / MFC question c++ graphics learning

  • Poll Idea.
    G Greven

    One other option: depends For me, it depends on what I'm coding. I'm working on a game, I usually will listen to Techo, but if I'm coding my latest and greated windows utility, it's usually Enya... So don't make it an all or nothing option... Programming in binary is as easy as 01 10 11.

    Site Bugs / Suggestions com

  • Interesting lawsuit
    G Greven

    http://www.sun.com/lawsuit/ Sun is suing M$ :laugh: Isn't that great. I love people who sue them... (please, note: I am very anti-M$ for many reasons. I just won't list them right now :) ) Programming in binary is as easy as 01 10 11.

    The Back Room com

  • CTreeCtrl problems...
    G Greven

    Never mind, I just solved my own problem :) Actually, I solved it by reading a different post on a different problem! But it used a CImageList in there, and it works!!!!!!!!! (I'm happy) Programming in binary is as easy as 01 10 11.

    C / C++ / MFC question data-structures

  • CTreeCtrl problems...
    G Greven

    You are my hero for the day. I have been playing with this thing for hours :) What about the images though? I have them in a CImageList, and I've tried using the GetImageInfo and adding a mask to IMAGEINFO::hbmMask variable, but it doesn't seem to do anything... Right now I've made my tree background black and my text white so I don't have to look at the black boarder around the images :) And I just don't want to keep it that way... Programming in binary is as easy as 01 10 11.

    C / C++ / MFC question data-structures

  • CTreeCtrl problems...
    G Greven

    How can I get an existing CTreeCtrl to display the +- box to the left of the name? The reason I say existing is that I placed it on the form for the dialog box, and didn't explicitly call create. How do I modify the settings of it? Also, I attached a image list to the tree, but I can't get them to have transparent edges (around the image). I've tried attaching a mask, but it just won't do it. Obviously I am doing things I've never had to do before :) This tree thing is driving me nuts... Programming in binary is as easy as 01 10 11.

    C / C++ / MFC question data-structures

  • When I put CD in drive, how do make it automatically execute setup.exe?
    G Greven

    You need to make an autorun.ini. I don't remember the exact sytax of the file off the top of my head, but if you take one of those CD's that does it and look at the file, it's very obvious. Are you sure you want it to run setup automatically? A lot of those CD's have an autorun.exe that is simply a menu that can execute the setup. That way it doesn't start to install every time you put the CD in. Programming in binary is as easy as 01 10 11.

    C / C++ / MFC question workspace

  • Casting from within a class
    G Greven

    Worked like a charm! Thanks a lot. Why does the syntax have to be so confusing sometimes :) Programming in binary is as easy as 01 10 11.

    C / C++ / MFC question performance learning workspace

  • Casting from within a class
    G Greven

    Is there an easy way to get a subclass out of a class from within the class? This would be easiest explained in code ;P class A; class B: public A; From within B, I need to get a temporary variable of the subclass A. The subclass is setup with void operator=(A& a); None of them are pointers, just ... can't remember the term right now... I access them with a . not a -> man my memory is going... Anyway, I've tried this: A a; a = (A)this; and it of course doesn't work. How can I grab the data from the subclass? What I'm doing is implementing a rotation function for the nice CPolygon class that Chris wrote (*very* nice class btw). And I want to make a temp copy of the CPolygon data so I don't loose the data as the poly rotates. (If you rotate a polygon to much it colapses in on itself due to inaccuracy) So I want to make a backup copy of the data, rotate that data and then use it. But I can't grab the data... What do I do?!? Argh! Programming in binary is as easy as 01 10 11.

    C / C++ / MFC question performance learning workspace
  • Login

  • Don't have an account? Register

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