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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
C

Cam

@Cam
About
Posts
27
Topics
11
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Regex!
    C Cam

    Does Visual C++ have any support for regular expressions? Or do I need to find someone else's regex code? Any suggestions? ~Cam Desautels (BinaryUprising.com)

    C / C++ / MFC c++ com regex question

  • PHP problems, please help
    C Cam

    Whenever I try to access a file by URL, for instance, like this: $size = GetImageSize ("http://www.php.net/gifs/logo.gif"); or with a fopen() command, I always get this error: Warning: php_hostconnect: connect failed in openurl.php on line X Warning: fopen("http://www.binaryuprising.com/index.htm","r") - Bad file descriptor in myscript.php on line X What gives? If I look at the php options on the server, it says: allow_url_fopen = 1 That would seem to me to mean than opening of remote files is enabled. Any ideas? ~Cam Desautels (BinaryUprising.com)

    Web Development help csharp php database com

  • inter-dialog box communications
    C Cam

    Ok, here goes...I've got a dialog-based application. From this application I have created a modeless dialog box. When the user closes the modeless dialog box, I need to access a variable within my main Dlg box's class, in order to save data from the modeless dlg box. So, as I see it, I need a pointer to it. How do I get a pointer to the Dlg class of a dialog-based app?? ~Cam Desautels (BinaryUprising.com)

    C / C++ / MFC question com

  • Converting int to CString
    C Cam

    Ahhh :), thank you. ~Cam Desautels (BinaryUprising.com)

    C / C++ / MFC com data-structures help tutorial question

  • Converting int to CString
    C Cam

    Ahh...yes, if I'm going to be doing a lot of conversions like that, a template would be a very good idea. But I don't really understand that code...I don't get what the binary shift does...but isn't there a more direct route? ~Cam Desautels (BinaryUprising.com)

    C / C++ / MFC com data-structures help tutorial question

  • Converting int to CString
    C Cam

    First, a big "thank you" to everyone who has been helping me. I know I've been asking a lot of stupid questions, but once I get this stuff relearned, I think I'll be fine. So, here's the next stupid question. I've got an integer, and and I want it in a CString. For example: //Before int myint = 123; //After CString mystring = "123"; The problem is that when I try to assign it directly, it puts the character with the ASCII value of the int into the string (I think). Anyway, then I looked up itoa in MSDN, and found a solution. But you must pass itoa a character array to store the resulting text in. Anyway, the only way I know to make it work is like this: char cDay[3] = " "; _itoa(theTime.GetDay(), cDay, 10); CString Day = cDay; Anyway, the basic idea is that I changed it from an int to a char array, and then from a char array to a CString. But I'm sure there's a way to leave out the char array and just do it directly. Thanks again. ~Cam Desautels (BinaryUprising.com)

    C / C++ / MFC com data-structures help tutorial question

  • Disabling buttons
    C Cam

    Oh, thank you, guys. It had to be simple. ~Cam Desautels (BinaryUprising.com)

    C / C++ / MFC question com

  • Edit Box Variables
    C Cam

    Ok, very cool, very cool...no problem about the help, I'm a struggling C++ programmer myself (yeah, but what the heck, I'm 17, it'll come...), and if I help others with what I can, maybe someone can help me when the time comes. Thanks a lot about my site, I have a lot of fun with webdev. Did you see there's a little text box on the right-hand side of the homepage where you can post comments (hint, hint). LOL, anyway, the best of luck to you, I'm glad I could help. ~Cam Desautels (BinaryUprising.com)

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

  • Edit Box Variables
    C Cam

    True, true, sorry about that...int math was simpler... ~Cam Desautels (BinaryUprising.com)

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

  • Disabling buttons
    C Cam

    How do I disable a pushbutton in a dialog?? I've been round-and-round through MSDN. It can't really be that hard, can it?? ~Cam Desautels (BinaryUprising.com)

    C / C++ / MFC question com

  • Edit Box Variables
    C Cam

    Did you get it working??? ~Cam Desautels (BinaryUprising.com)

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

  • Getting a pointer to the view object
    C Cam

    I guess from the doc level. ~Cam Desautels (BinaryUprising.com)

    C / C++ / MFC com tutorial question

  • Getting a pointer to the view object
    C Cam

    Can someone tell me if there is a function to get a pointer to the view object? For example, you can get one to the document object like so: CMyAppDoc *pDoc = GetDocument(); Why can't there be a bloody 'GetView()' function?? ~Cam Desautels (BinaryUprising.com)

    C / C++ / MFC com tutorial question

  • Edit Box Variables
    C Cam

    But it's so simple, really. And the point is to learn. Once he gets it down he'll be pumping these things out in no time, and wondering what was slowin' him down before. ~Cam Desautels (BinaryUprising.com)

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

  • Stupid Compiler Tricks
    C Cam

    He, he, he...it's the magic touch of stupidity. You'd be surprized how many ridiculous programming stunts I pull :). It's been a long time since I've programmed in anything that wasn't for the web...I'm very rusty.... ~Cam Desautels (BinaryUprising.com)

    C / C++ / MFC html com

  • Edit Box Variables
    C Cam

    drat...sorry about that. I'm uploading the corrected version of the file right now. It ought to be at the same exact location by the time you recieve this, so just follow the original link if you'd like to download it. ~Cam Desautels (BinaryUprising.com)

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

  • Stupid Compiler Tricks
    C Cam

    Well, (keep in mind I'm pretty new to C++), I was screwing around in Visual Studio trying to learn something (anything). So, I decided to use AppWizard to make a new App, base-ing the view on CTreeView. This is all good and well...so then I decided I'd add something to my fancy new tree. But I needed a pointer to it. So, I did the following:

    GetTreeCtrl()->InsertItem("Hello world")

    And that worked just fine. I did that few times for different items, making some items below others, I changed the background color - I was just learning how the CTreeCtrl works. Anyway, at some point I thought, "Hey, if just stored the address of the Tree in a pointer, I'd save system resources (not to mention typing), by not having to call the GetTreeCtrl() function everytime." So, I wrote the following:

    CTreeCtrl *pOurTree = GetTreeCtrl();

    and it said the following to me:

    cannot convert from 'class CTreeCtrl' to 'class CTreeCtrl *'

    Confused and curious, I said "ok, what the hell, lets see what happens". Removed the asterisk, and compiled again, simply to see what it would say. And that's how I got the error :) . Anyway, I would be curious how to do it correctly. ~Cam Desautels (BinaryUprising.com)

    C / C++ / MFC html com

  • Wheel of Time
    C Cam

    I've read all except the most recent. There was such a long gap between when I read the previous one, and when this one was released that my interest kinda faded away. I'm sure I'll read it eventually. ~Cam Desautels (BinaryUprising.com)

    The Lounge csharp question

  • Edit Box Variables
    C Cam

    Ok, please re-read my reply if you haven't seen what I appended to it. Another thing I would recommend doing is in the resource editor (where you can edit your dialog box), right click your edit boxes, click the 'Styles' tab, and check 'Number'. Then only numbers can be typed into the box. That's no explanation for your compiling errors, but it will save you time later, so you won't have to write error-checking routines to make sure your user typed in a number. If all else fails, make sure to check out the sample prog I linked to in my last post. ~Cam Desautels

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

  • Visual Studio problems - please help!
    C Cam

    Yes, i had actually checked out a number of these topics, but I did find something interesting:

    The Gallery regenerates links to registered ActiveX controls every time you open it, based on the current state of the registry. This has certain implications: If you delete a link to a registered ActiveX control, the link will still appear the next time you open the Gallery. If you delete a registered ActiveX control (.OCX or .DLL file), but do not unregister it, the link will still appear the next time you open the Gallery. Of course the link will be inoperative. If you copy an ActiveX control to your machine, but do not register the file, the link does not appear because the Gallery does not recognize the control.

    ...anyway, the important part is that the list is regenerated from the registry. I figured as much, but that doesn't explain the problem...grr...

    C / C++ / MFC visual-studio csharp com docker help
  • Login

  • Don't have an account? Register

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