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

Search:

Type: Posts; User: Zaccheus@Work

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Re: (Cryptography) CPImportKey function

    D'oh, of course!

    Thank you!
    :D
  2. Re: Is there anyone who can help me with ReadProcessMemory() ?

    No idea how it does it, but does the OS need to do something similar when it reads/writes to/from the page file? :)
  3. Replies
    10
    Views
    7,697

    Re: How to prevent screen capture?

    Not being funny here but ... what if someone takes a photo of the screen with a digital camera?

    .... oh edit: ProgramArtist beat me to it.
  4. Replies
    9
    Views
    2,560

    Re: GUI in C++

    Could the source code being saved as Unicode cause such a problem?
  5. [RESOLVED] (Cryptography) CPImportKey function

    For the actual question, please see below the [ code ] section, but first some background:

    The CPImportKey function is listed in Visual Studio 2005's MSDN as being part of the "Platform SDK:...
  6. Replies
    25
    Views
    30,038

    Re: Difference between c#.net and VB.net

    You are right, I've edited my post!
  7. Replies
    25
    Views
    30,038

    Re: Difference between c#.net and VB.net

    No, that's an indexer.



    I mean:



    ...
  8. Replies
    25
    Views
    30,038

    Re: Difference between c#.net and VB.net

    C# does not support indexed properties - something which C++/CLI (and I think VB.net) does support.
  9. Replies
    3
    Views
    516

    Re: Help with if else statement please

    That is C and therefore you should really ask here: http://www.codeguru.com/forum/forumdisplay.php?f=9

    The answer to your question is that you should use == instead of = in the if statements.
    :)
  10. Re: Use ActiveX DLL without installing an application

    Yes, of course you would.
  11. Re: Use ActiveX DLL without installing an application

    You could include the ActiveX DLL in your EXE as a resource. At runtime you extract the DLL to a folder, register it, and then create the ActiveX control.
  12. Re: No error on Vista when using sendto function.

    Perhaps ask in the Win32 section: http://www.codeguru.com/forum/forumdisplay.php?f=47
  13. Replies
    3
    Views
    411

    Re: Quick inheritance question

    There's really not enough info here for me to answer the question.

    In which function does the following take place?

    Keyboard kb;
    ApplicationState appState;
    ...
  14. Replies
    27
    Views
    2,105

    Re: Singleton

    Well then I would hope that Chuck Norris doesn't write checking tools ... tools which really SHOULD know. :D
  15. Replies
    27
    Views
    2,105

    Re: Singleton

    Even a try-catch block in a destructor is not enough - if the destructor is called due to an exception being thrown and it then somehow throws its own exception, we suddenly have two active...
  16. Replies
    3
    Views
    540

    Re: matlab question

    This is the C++ forum. Matlab forum is -> that way -> I think.
  17. Replies
    27
    Views
    2,105

    Re: Singleton

    His example uses classes which can generate errors (exceptions?) in their destructors - that is something I try to avoid.
  18. Replies
    27
    Views
    2,105

    Re: Singleton

    I always use the local static approach:



    class Something
    {
    public:
    static Something& Instance();
    private:
    Something();
  19. Replies
    27
    Views
    2,105

    Re: Singleton

    One difference is that 'global data' usually was lumped together in one big interdependent mess, while singletons can be used on their own. If a class uses a number of singletons, those singletons...
  20. Replies
    3
    Views
    401

    Re: Basic C++ Help?

    What do you need help with?

    Do you know how to input and output the numbers?
    Do you know how to use the functions in the <cmath> header file?
  21. Thread: arrays

    by Zaccheus@Work
    Replies
    21
    Views
    2,593

    Re: arrays

    Not to mention holding financial information in floats!
  22. Re: debug error: damage:after normal block..

    BYTE *ba = new BYTE[len];

    ZeroMemory(ba, sizeof(ba)*(len));

    You are allocating far less bytes (len) than you are using (sizeof(ba)*len).

    Note that sizeof(ba) is 'size of pointer to byte'...
  23. Replies
    7
    Views
    597

    Re: Stack overflow when declaring array

    You could do this:


    class MyClass
    {
    public:
    MyClass()
    : my_array( 1000, std::vector<MyStruct>(500) ) // 1000 vectors with 500 MyStruct-s each.
    {
    }
  24. Replies
    26
    Views
    3,342

    Re: ::std::list::push_back()

    As kempofighter indicated, std::list (and std::vector) uses an allocator class to get (and free) the memory it needs:

    template < class T, class Allocator = allocator<T> > class list;
    ...
  25. Replies
    20
    Views
    1,838

    Re: Return non-unicode string from dll

    That is correct and would normally be the best solution.

    However:


    No, a BSTR is UNICODE in Windows:

    http://msdn.microsoft.com/en-us/library/ms221069.aspx

    If he should not return a...
Results 1 to 25 of 51
Page 1 of 3 1 2 3


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center