Search:

Type: Posts; User: JamesSchumacher

Search: Search took 0.03 seconds.

  1. Replies
    33
    Views
    1,254

    Re: If you died today...

    __asm
    {
    mov eax,0
    call eax ; Cannot execute address 0
    }




    __asm
  2. Beginning Window Library - (Dynamic Event Handling)

    This is a beginning to a windowing library I am writing. It will be using GDIPlus and STL along side the windows API.

    Homebrew event handling is built into this library.

    Enjoy!

    SDI, MDI, and...
  3. Replies
    26
    Views
    1,029

    ......

    The source code to creation is attached to this post.

    Who would have ever known GOD had to use a Windows computer and Visual C++? :rolleyes:

    No wonder it took him so long to create everything....
  4. Replies
    4
    Views
    491

    Re: Insano....

    The purpose was the fact that I could never get the timing effects to go higher than a certain frame count when using GetTickCount(). (1000 would be theoretical highest for it, because it's on...
  5. Replies
    4
    Views
    491

    Insano....

    I was just messing around with my 'FrameRate' class that makes it simple to dictate the frame rate. Well, I basically uncapped it.... And had a small routine just calling GetWindowDC(NULL) to get the...
  6. Replies
    0
    Views
    19,097

    Native C++ 'Event Handling'

    The attached *.zip file has what you need to do 'native event handling' in a platform independent manner. :afrog:

    Enjoy! :bigyello:
  7. Replies
    1
    Views
    8,960

    Easy Image Resizer

    Here is a utility to make sizing bitmaps easier. ;)

    Attached is the *.zip file with compiled executable and source code. :thumb:
  8. Re: Close a Single MDI Child Form!

    Wouldn't it be correct to do this? (I don't know VB6 - I know VB.NET)



    Unload Me.ActiveForm
  9. Re: DevC++ Can't save to file FROM resource

    Well, sometimes MSDN documentation is not entirely correct.

    In fact, whenever I do loading of any resource that is a standard resource (IDC_ARROW for LoadCursor, etc....) I use NULL to specify...
  10. Re: DevC++ Can't save to file FROM resource

    Problem is in your find resource. Your passing NULL for the module handle.

    You called GetModuleHandle(NULL) on SizeOfResource and LoadResource - but you did not on in FindResource.

    So, in short...
  11. Replies
    4
    Views
    577

    Re: C/C++ behind vb forms

    Create your functions in a *.dll.

    If a C++ *.dll - make your functions in a extern "C" block, and make them have __stdcall calling convention.

    Example:



    extern "C"
    {
  12. Re: Problem using a dll written in VB in C#

    Why don't your try these two things.



    Type typeObjects[] = a.GetExportedTypes();
    foreach (Type t in typeObjects)
    {
    }
  13. Replies
    6
    Views
    982

    Big difference is.....

    how the VC++ compiler and GCC compiler mangle C++ names.

    If you want to see that, create identical DLLs with C++ exports and go to:

    www.dependencywalker.com and see how they differ in name...
  14. Windows Application - WinAPI C++ - (SDI Interface)

    Provides an implementation of a base window class in C++.

    Creating the main window class, deriving from Window was as simple as creating a WM_NCDESTROY handler (only needed to post the quit...
  15. Replies
    8
    Views
    1,062

    Re: [2005] Search for sub in a class

    An example right on this forum. :afrog:

    http://www.vbforums.com/showthread.php?t=347768
  16. XTR::AnsiString and XTR::UnicodeString

    These are C++ string classes. One for ANSI chars and one for UNICODE chars.
  17. Replies
    12
    Views
    1,026

    Re: [2005] random(0 to 100, but not 15)

    Public Class SomeClass
    Public Function RandomZeroToHundredNoFifteen() As Integer
    Dim rndGen As New Random()
    Dim nRet As Integer = rndGen.Next(0,3) ' will only generate numbers...
  18. Replies
    12
    Views
    1,026

    Re: [2005] random(0 to 100, but not 15)

    Public Class SomeClass
    Public Function RandomZeroToHundredNoFifteen() As Integer
    Dim rndGen As New Random()
    Dim nRet As Integer = rndGen.Next(0,100) ' Between 0 and 99, doesn't...
  19. Replies
    7
    Views
    977

    Re: clrscr error

    Use



    system("clrscr");
Results 1 to 19 of 22



Click Here to Expand Forum to Full Width