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

Search:

Type: Posts; User: SouthernCodeMonkey

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    1,145

    Re: Heaps, Dlls, and Exe

    Greetings.

    Solution #1 also seems correct to me. What exactly is going wrong with it?

    Also note that an executable and all libraries it loads share the same heap. It's only when you use...
  2. Re: System::Console::WriteLine not working in Release Build

    Greetings again.



    Again, I want to stress that the framework does not allocate a console for an application built with the windows subsystem. Your call to Console::WriteLine() is having the...
  3. Re: variable redefinition problem again...

    Greetings.

    Declare your global variable "a" as being extern in your main header like so:

    //stdafx.h
    extern int a;


    This will allow the compiler to see it in multiple translation units...
  4. Re: System::Console::WriteLine not working in Release Build

    That would be because the debugger creates a console and attaches it to the process automatically.

    Nope. That's how win32 applications work...

    You will need to call AllocConsole() or use some...
  5. Re: I don't know what's this mean in this code

    Greetings.


    A function call in Kernel32 at Address 77e88989. Probably Global/LocalAlloc or the like.

    I'm not sure of what you mean.

    Regards.
  6. Replies
    5
    Views
    730

    Re: Command Prompt in a Window

    Greetings.

    One solution I can think of offhand is to "dress up" the console window that is spawned to look like a "normal window". You can draw on the console window with GDI and move it around...
  7. Replies
    2
    Views
    624

    Re: Vmr-9

    Can you? Yes. Directly? No.

    The interfaces are not exposed by a managed library, so you'll need to create your own unmanaged wrapper library and import that. It's not that bad really, and the...
  8. Re: A program to control another program?

    Hello again.

    Have you ran dumpbin against the first program to look at its import table? This will go a long way in moving you to where you want to be. I suppose I should have asked if the first...
  9. Replies
    5
    Views
    2,045

    Re: Beginner Console Title Question

    Greetings.

    Firstly, I assume you've used a language in the past that has string concatenation built in to it. C++ does not. You are literally trying to add two pointers here.

    Secondly, your...
  10. Re: A program to control another program?

    Greetings.

    If by "on screen messages" you mean text that is being drawn to the window of the first app, then hooking GDI will give you direct access to this text.

    To accomplish "pushing...
  11. Re: Redefining/Passing Through Win API Functions

    Greetings.

    You can typedef a series of function pointers that you then point to the address of the winapi function using LoadLibrary()/GetProcAddress()/FreeLibrary(). You can then call the...
  12. Replies
    2
    Views
    378

    Re: Application Files

    Nope.

    Regards.
  13. Replies
    7
    Views
    6,374

    Re: C# Basics

    You can find the .cs files in /api/csharp in the fmod directory. The documentation is, unfortunately, targeted at c/c++ users.

    I take the route of wrapping it in my own c++ library and then...
  14. Replies
    13
    Views
    2,803

    Re: Memory Leak in C#???

    What does the footprint look like if give the process a bikini wax with SetProcessWorkingSetSize()? This will give you a better look at your mem consumption.

    Regards.
  15. Replies
    7
    Views
    6,374

    Re: C# Basics

    Greetings.

    In response to your query about the audio issue, I suggest that you have a look at the FMOD Ex Library (www.fmod.org). It is extremely capable and now directly supports C#. I'm sorry...
  16. Re: How to use system and Explorer icons/bitmaps?

    While the icon index of the icon you seek might change from version of Windows to another, it is constant on a given version. All you need to do is figure out which version you are currently running...
  17. Replies
    6
    Views
    2,350

    Re: D3D: Power-of-two texture sizes

    You wouldn't want to use textures that aren't powers of 2 in dimension for performance reasons anyway.

    Regards.
  18. Replies
    7
    Views
    572

    Re: What messages closes a form?

    You can know when TerminateProcess is being invoked against your process by externally hooking the form through a DLL coupled with API hooking. C# directly facilitates providing a native WndProc for...
  19. Replies
    3
    Views
    489

    Re: Calling EXE function from DLL

    Actually it's commonplace for a DLL to call a C function in an application.

    Just use a callback function.

    Regards.
  20. Replies
    7
    Views
    469

    Re: Writing into File in DLL

    Hello again.


    Is this the function you are exporting and using in VB? If not, then of course it works internally...

    Here is how you can export a function to do what you want:


    //cg_code.h...
  21. Re: can i run exe files written in .NET on win98 win95 win2000?

    Yes, no, yes.

    That is: .NET does not work on Win95.

    Regards.
  22. Re: D3DXCreateTextureFromFile and CBitmap

    Greetings.

    If you have an already created CBitmap, you want to use D3DXCreateTextureFromFileInMemory.

    //MyBitmap is your CBitmap. CBitmap has a casting operator which
    //allows casting to...
  23. Replies
    7
    Views
    469

    Re: Writing into File in DLL

    Greetings.

    You are trying to pass a CString from VB to C++. This won't cut it. You have to use PODs (or structs composed of PODs). Change your exported function to accept a parameter of const...
  24. Replies
    2
    Views
    710

    Re: Future of the OpenGL... ***?

    It doesn't look good for OpenGL actually. Both ATI and nVidia chipsets dedicate about 70%+ (and this is increasing with successive generations of their chipsets) of their design to cater to Direct3D...
  25. Replies
    16
    Views
    1,476

    Re: The DLL Nightmare

    You are probably needing:

    MSVCR7.dll

    Have you ran depends.exe against your application to check for addition dependencies?



    Let us know how that goes. :D
Results 1 to 25 of 107
Page 1 of 5 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