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

Search:

Type: Posts; User: ALM

Page 1 of 39 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    8
    Views
    1,113

    Thanks!

    This is exactly what I needed. Thank you very much!

    Alvaro
  2. Replies
    8
    Views
    1,113

    How to verify NT username and password?

    I have a username and password sent to me from a remote NT machine. How do I check that they're valid for logging on to NT?

    Thanks a bunch!
    Alvaro
  3. Thread: Release vs Debug

    by ALM
    Replies
    4
    Views
    462

    Re: Release vs Debug

    I don't know if this helps to answer your question but what I usually do is build all my binaries to one folder (which I call "bin"). Then I distinguish between debug and release versions by...
  4. Thread: MFC vs. WinAPI

    by ALM
    Replies
    8
    Views
    476

    Re: MFC vs. WinAPI

    Back in the dark ages of Windows 3.1 the API was all there was, so that's what I used. Then came MFC (thank God) and I switch to that. The fact that I had prior experience with the API made it...
  5. Re: declaring a new variable makes my program not work.

    I hate it when that happens...

    It's usually the result of something else not being right but working by accident or by a fluke. Apparently adding the variable removes the fluke and causes things...
  6. Replies
    1
    Views
    296

    Re: is it possible to export class?

    This is accomplished by using the _declspec(dllexport) and _declspec(dllimport) directives. Do a Search on this board for declspec and you should find the most appropriate solution.

    Regards,...
  7. Replies
    1
    Views
    413

    Re: MFC 4.0 CString vs MFC CString 6.0

    Hmmm..., I think you have one of two options, either of which is not fun:

    1. Rewrite the old DLL.
    2. Get the source code for VC4.0's CString class, add it to your own project, rename it (eg.,...
  8. Replies
    9
    Views
    1,840

    Re: C# garbage collector

    I didn't intend my comments to offend anyone, nor cause a language war. I personally like both C# and C++. There are lots of times when I don't care when an object gets destroyed, and for those...
  9. Thread: cin with passwords

    by ALM
    Replies
    0
    Views
    341

    cin with passwords

    I have an ANSI C++ console application. I'm prompting the user for a password which I'm retrieving using the cin object. The problem is, I'd like for the password to not be shown while it's typed. ...
  10. Replies
    20
    Views
    854

    Re: simple encryption question

    Do you know how to TEA for a simple piece of text? If so, could you please write a couple of simple functions for me? On one, you pass the text to encrypt and it returns it encrypted. On the other...
  11. Thread: CString comparison

    by ALM
    Replies
    8
    Views
    577

    Re: CString comparison

    No conversion's necessary. There are 2 possible equality operators that will handle the comparison:


    BOOL operator ==( const CString& s1, LPCTSTR s2 );
    BOOL operator ==( LPCTSTR s1, const...
  12. Thread: CString comparison

    by ALM
    Replies
    8
    Views
    577

    Re: CString comparison

    Actually Bob, there are 3 versions of the global equality operator, according to the help:

    BOOL operator ==( const CString& s1, const CString& s2 );
    BOOL operator ==( const CString& s1, LPCTSTR...
  13. Thread: CFileDialog error?

    by ALM
    Replies
    4
    Views
    2,190

    Re: CFileDialog error?

    This should work unless the user presses the Cancel button. Unfortunately you're not checking the return value of DoModal so there's no way to tell.

    If you still have problems use the...
  14. Thread: The speed of c++

    by ALM
    Replies
    4
    Views
    416

    Re: The speed of c++

    These days it's no longer true that C++ code is always faster than VB code, as you have discovered. The reason is that VB code is no longer interpreted; it's now compiled. And since VB programs...
  15. Thread: Strange syntax

    by ALM
    Replies
    4
    Views
    500

    Re: Strange syntax

    I agree that it's kind of strange. But if you can understand this C-style syntax:

    void ReadMovieFile(record** ppMovie);

    then you shouldn't have trouble understanding the *& notation. It's...
  16. Replies
    9
    Views
    1,840

    Re: C# garbage collector

    I hear you and agree. One of the most powerful and unique features of C++ is stack allocation of objects. It's just so powerful, and not so much because of the automatic memory deallocation, but...
  17. Re: Using the 'this' pointer in constructor initializer lists

    I guess the best way to explain what I mean is to show you:

    class CMyHelper
    {
    public:
    CMyHelper(CWnd* pWnd) : m_pWnd(pWnd) { }

    void Help()
    {
    // do something that uses m_pWnd
  18. Replies
    1
    Views
    2,319

    How to flush a file after calling "Print #"?

    I'm using VB's built in file I/O functions to write lines to a log file. It works fine except for one little thing: after I write a line out using the "Print #" command, the line doesn't get flushed...
  19. Re: Using the 'this' pointer in constructor initializer lists

    I've run into this scenario many times. I have a class with member object variables which I need to construct using the "this" pointer. Since on most cases I know that the member objects are just...
  20. Replies
    4
    Views
    659

    Re: Windows (How smart are you?)

    Just like I showed you. Running Explorer.exe when the shell is not running makes the shell come up.

    Regards,
    Alvaro
  21. Replies
    10
    Views
    1,146

    Re: Very simple quetion: What's better: C++ or C#

    Yeah, I meant to say "multiple implementation inheritance" but I forgot the multiple part. Thanks for pointing it out.

    Interfaces can be multiply inherited but some would argue that that's not...
  22. Replies
    4
    Views
    986

    Re: Scope, and Exceptions in C#

    This shouldn't be an issue if the object is allocated on the stack, which I dare to say, is how the majority of objects are allocated in C++ programs. To be extra safe, however, I agree that it's...
  23. Replies
    4
    Views
    659

    Re: Windows (How smart are you?)

    So you just need to call "Explorer.exe" from your VB program? In that case you can use the Shell sub:

    Shell "Explorer.exe", vbNormalFocus

    Regards,
    Alvaro
  24. Re: What relationship of C#,VS7.0 and Microsoft .NET Framework SDK Net Classes?

    Oh yes, VB7 will be quite a different animal. Like C#, it will support single implementation inheritance (finally!). I've seen a few articles posted on the web talking about it... can't remember...
  25. Replies
    9
    Views
    1,840

    Re: C# garbage collector

    Managed C++ does appear to offer the best of both worlds. But according to Tom Archer, it's a pain to use it...

    I'd really love to see examples of how you'd accomplish the same thing using each...
Results 1 to 25 of 972
Page 1 of 39 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center