dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Toxick

Page 1 of 2 1 2

Search: Search took 0.09 seconds.

  1. Replies
    3
    Views
    508

    Re: Macros in Version 6

    Well, duhh-uh. :blush:


    Thanks a lot :thumb: :thumb: :thumb:
  2. Replies
    3
    Views
    508

    Macros in Version 6

    I'm using MSVC6 - and I've just discovered the joys of writing Macros.


    What I'm wondering is if there is a way to tie Macros to Hotkeys. For instance, I have a comment block that I write...
  3. Well, I just figured that if I was helping out...

    Well, I just figured that if I was helping out someone so new to the language, he wouldn't be quite ready for this level of pedantry.
  4. Agh.. I knew I was forgetting something :/ ...

    Agh.. I knew I was forgetting something :/


    use this:

    char str1[255]; strcpy( str1, "Hello " );
    char str2[] = "World";

    strcat( str1, str2 );
  5. try: char word1[] = "hello"; char word2[] = "...

    try:

    char word1[] = "hello";
    char word2[] = " world";

    char sSent[255];
    strcpy( sSent, word1 );
    strcat( sSent, word2 );
  6. You are currently in the same boat I was in when...

    You are currently in the same boat I was in when I started learning C++. It is very difficult to make the transition, because you VB makes working with strings very easy, and C++ has NO native...
  7. Thread: Fingerprint

    by Toxick
    Replies
    4
    Views
    1,709

    Re: Re: Fingerprint

    The original poster implied that the original owner relinquished his license when he was shipped off overseas.

    Are you saying that if I buy a piece of software, I'm anchored with it for the rest...
  8. Thread: CodeGuru RSS?

    by Toxick
    Replies
    5
    Views
    2,692

    That's pretty much what RSS is for. To list...

    That's pretty much what RSS is for. To list news/blog entries, etc. and provide links back to the source website.



    Yeah, but I'm making a webpage for myself that includes several news feeds,...
  9. Thread: CodeGuru RSS?

    by Toxick
    Replies
    5
    Views
    2,692

    Well not really. An RSS feed isn't a replacement,...

    Well not really. An RSS feed isn't a replacement, or side-step of the website. It's a mere suppliment which would simply list the newest, say ten, articles or Forum Threads. All that would be in the...
  10. Thread: CodeGuru RSS?

    by Toxick
    Replies
    5
    Views
    2,692

    Re: CodeGuru RSS?

    So I guess that's a no?
  11. Thread: CodeGuru RSS?

    by Toxick
    Replies
    5
    Views
    2,692

    CodeGuru RSS?

    I don't suppose there's an RSS or XML feed for Code Guru. I looked around and didn't see one.

    I'd be very interested in using one, which feeds the latest articles, and forum threads. If there is...
  12. Replies
    2
    Views
    2,717

    Re: How to i typecast from pchar to string?

    The std::string constructor takes a PCHAR argument.



    PCHAR pChar = "MyJunk";

    ...


    FunctionThatTakesStdString( std::string(pChar) );
  13. Thread: Automation?

    by Toxick
    Replies
    4
    Views
    639

    THANK YOU! That's what I'm looking for!

    THANK YOU!

    That's what I'm looking for!
  14. Thread: Automation?

    by Toxick
    Replies
    4
    Views
    639

    Thanks for your reply, I was getting worried that...

    Thanks for your reply, I was getting worried that nobody was going to respond.


    I've been through the help, but all I can seem to find is how to use Automation through VBA. Maybe I'm missing...
  15. Thread: Automation?

    by Toxick
    Replies
    4
    Views
    639

    Automation?

    Is there any sort of a tutorial that explains (OLE) Automation, particularly Word and Excel.

    Here's what I'm doing, I have an application that generates reports, and right now, I can easily...
  16. Replies
    279
    Views
    64,850

    No you don't, or you would not have written this:...

    No you don't, or you would not have written this:



    As I've said before - I'm not struggling to use this approach. I flat out used it. If it's wrong, it's wrong - I'll rewrite the code. But my...
  17. Replies
    279
    Views
    64,850

    I have not rejected this method. I would,...

    I have not rejected this method. I would, however, like to ensure that the way I did it is completely and totally wrong before I re-write thousands of lines of code.

    Two people, both of which seem...
  18. Replies
    279
    Views
    64,850

    Well, I've accepted the fact that the way I wrote...

    Well, I've accepted the fact that the way I wrote it is wrong. I've not argued with you and said, "You're wrong - it WILL SO work". I'm asking WHY it's wrong. That's why I came in here. I was hoping...
  19. Replies
    279
    Views
    64,850

    This makes no sense to me. The entire reason...

    This makes no sense to me.

    The entire reason that I decided on a paradigm shift from straight C to C++ was because I can do something like take a vector, add my own crap on it, tint the windows,...
  20. Replies
    279
    Views
    64,850

    Well, in my case it is... So, suppose I go all...

    Well, in my case it is... So, suppose I go all the way back to my original code up there, and delete the line: virtual ~string_vector() {}


    Because my dtor is empty anyway. It adds or removes not...
  21. Replies
    279
    Views
    64,850

    No, I didn't. The only thing I added was 2...

    No, I didn't. The only thing I added was 2 operators, and serialization functions.



    Which is exactly what I did. So it sounds to me that I'm pretty much in business with my classes as they are,...
  22. Replies
    279
    Views
    64,850

    Fair enough. But suppose my destructor does...

    Fair enough.

    But suppose my destructor does nothing.

    Wouldn't that, then, remove this restriction - at least on my class. It's just another container for my end user (which happens to be me,...
  23. Replies
    279
    Views
    64,850

    Well, maybe this is not the time or place to ask...

    Well, maybe this is not the time or place to ask why, but, why?

    The code you wrote appeared to me that it should work. I'm not saying I don't believe, you, but... I dunno - maybe I'm just missing...
  24. Replies
    279
    Views
    64,850

    Interjecting for a moment...

    I've seen it written here by both proponents and opponents of the STL alike, that STL classes aren't supposed to be derived. The proponents of STL see this as an asset, and the opponents, a...
  25. Replies
    3
    Views
    609

    Re: Can't create window

    Couple of things. LoadIcon should take the hInstance variable, and hbrBackground should take a brush value.

    wc.hbrBackground = reinterpret_cast<HBRUSH>( COLOR_APPWORKSPACE + 1 );

    should work...
Results 1 to 25 of 28
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)