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

Search:

Type: Posts; User: alanjhd08

Page 1 of 16 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    15
    Views
    3,886

    Re: GDI+ MeasureString and character width

    Hi,

    Have you taken a look at using a RichEdit control to do this?

    Alan
  2. Replies
    3
    Views
    1,634

    Re: Got One Error In My Code

    Where do you define distroylist() ?
  3. Re: Best practice to store passwords in an application

    Hi,

    I took a look at the way various browsers and utilities implement this, and the default methods for a lot of them are very insecure. For Firefox for example, any user with admin rights on the...
  4. Re: Best practice to store passwords in an application

    The user doesn't need to enter a passphrase. If you ask it to store the password, it will provide it automatically when you are logging on to a site. Many other browsers have a similar...
  5. Re: Best practice to store passwords in an application

    I was going to suggest looking at FileZilla, since it's open source and allows you to store password for FTP/SFTP login. However, when I checked I see it stores them as plain text in an XML file, so...
  6. Re: Learn which language CString::LoadString() used

    Hi,

    There's no obvious way to do it. You can specify the language you want to be used as the 3rd parameter. However, there's no way to check that MFC was actually able to find the string in that...
  7. Re: A tab-control like a Venetian Blind control

    Yes, it's fairly blatant link spam
  8. Replies
    14
    Views
    1,021

    Re: Whats wrong with this program

    Hi,

    I can't see the list of errors, but for what you are trying to do you need to declare p as static, and make sure it's in scope throughout your function.

    You have a few other logic errors as...
  9. Replies
    83
    Views
    4,479

    Re: Can someone please run this in XP

    You're right, it's very simple. Judging from post #15,


    your executable is in "'C:\Users\Bryan\Documents\CSI 345\Palindrome\Debug\"

    So, open a command prompt:

    C:
    CD...
  10. Re: So how do you compare strings in MFC/Unicode build?

    This link has some useful general information about locale-dependent case comparision
    http://lafstern.org/matt/col2_new.pdf

    Key point is that the mapping between upper and lower case depends on...
  11. Replies
    3
    Views
    421

    Re: Memory Management

    Hi,

    So I presume the 100% CPU load and what appears to be a memory leak are both symptoms of a bug in some application or service running on that machine. Alternatively, there is something...
  12. Replies
    3
    Views
    1,102

    Re: Setting Page file

    Hi,

    There's no API to do this, but I see that some people have reported succesfully changing the pagefile settings by editing the registry values at ...
  13. Re: Embedding and loading custom resource file (jpeg) in the project

    Hi,

    You should write it as binary, so open the file as:
    std::ofstream outputFile("C:\\temp.jpg",ios::out | ios::binary);
  14. Thread: inheritnce

    by alanjhd08
    Replies
    8
    Views
    506

    Re: inheritnce

    Hi,

    Just to clarify, as Paul pointed out the Dog destructor will only be called if the Mammal destructor is declared as virtual (which it isn't in the code that you posted.)

    Alan
  15. Re: Converting a little endian number into long

    Also, you are reading into an array of 5 char pointers, not 5 chars. I think you meant char buff2[5].

    The algorithm you are trying to use is also wrong. Try to get that right to start with, i.e....
  16. Thread: simulation-

    by alanjhd08
    Replies
    2
    Views
    486

    Re: simulation-

    Hi,

    Do you have to use Win32 & C++ for the project?

    If not, it will be quite a lot easier since you can use the Google Maps Javascript API: ...
  17. Re: Visual Studio keeps asking to rebuild project

    Hi,

    I've only seen this if any files were saved "in the future", e.g. if your PC date was set incorrectly at some stage and you saved a file.

    Alan
  18. Replies
    2
    Views
    358

    Re: Error - "undefined class"

    Hi,

    Note the difference between undefined and undeclared.

    You have declared the class, but not defined it. So you could use a pointer to it in your Headquarters class (which is probably what...
  19. Replies
    13
    Views
    1,564

    Re: Trying to get my head around GTK+ casting

    Well, looks like the call expands out to something like:

    ((GtkFileChooser)*) g_type_check_instance_cast ((GTypeInstance*) file_chooser_button, gtk_file_chooser_get_type ())

    so there's a cast to...
  20. Replies
    10
    Views
    1,844

    Re: MFC C++ 2005 Multithreading Help

    Hi Igor,

    I've noticed this on flounder.com:
    _beginthread(), _beginthreadex(), or CreateThread() in an MFC program

    Is that right, and if so do you need some special approach when using the Win...
  21. Replies
    13
    Views
    1,564

    Re: Trying to get my head around GTK+ casting

    Hi,

    I guess it comes down to what does G_TYPE_CHECK_INSTANCE_CAST do?
    I don't know the answer, but what I find useful for something like this is to expand out all the macros to see the code that...
  22. Thread: class locale

    by alanjhd08
    Replies
    3
    Views
    378

    Re: class locale

    I'm not sure what you mean by what "makes" a class locale.

    You need to #include <locale> and then use std::locale() if you want to create a locale object, but I don't think that's what you're...
  23. Thread: class locale

    by alanjhd08
    Replies
    3
    Views
    378

    Re: class locale

    Maybe smart decoration and good service? :-)

    Do you mean locale, or a local class? A local class would be one declared within a function definition.
  24. Re: Differences in Code Generation Between C and C++ Compilers

    Hi,

    I suggest taking a close look at the changes to the externs.

    If you're using this to debug hardware, maybe some port accesses are getting optimized out, or changed in some way that affects...
  25. Replies
    8
    Views
    1,000

    Re: [RESOLVED] const operator[]

    Hi,


    Yes, without the first const you could do something like this:

    void foo(const dynamic_2d_array<int>& myArray)
    {
    myArray[0][0] = 1;
    }
    which shouldn't be allowed.
Results 1 to 25 of 389
Page 1 of 16 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center