Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

166 Neutral

About disease332000

  • Rank
  1. disease332000

    Making Program work with plug-ins

    You could write your own scripting engine (Hard), or use a DLL (Pretty Easy). I can't provide any direct links, but you should be able to find some tutorials involving DLLs on the internet through google. As for reference, MSDN rules (I assume your doing it in windows?). Here is a link to the page on DLL functions.
  2. disease332000

    DLL Questions

    By import library, do you mean a load-time library? Like #pragma comment(lib, "Bleh.lib)? I'm actually making a prog using hooks, and I have to had a run-time library. Tts going to monitor input and then use SendInput to type " is good" whenever the user types "pie." Don't worry -- it's just an educational little console app. So, what I would do is: typdef void (*FuncType)(char *Param); FuncType MyFunc = (FuncType)GetProcAddress(hLib, "ThisBeAFunction"); ? Thanks, though! Edit: Works great. Edit: Actually, I don't think it is passing the parameters correctly... Edit: Yeh, I need a way to pass variables between my DLL functions and my main thread, but none of them seem to be working... I have a global variable in my DLL, and I have a getter function that returns the value of this global variable. But it doesnt really work. [Edited by - disease332000 on February 26, 2005 6:43:46 PM]
  3. disease332000

    DLL Questions

    I've searched google for DLL tutorials, and all I get is MFC stuff -- and MSDN, although it has brought me far, doesnt tell me some stuff, so... How can you get the return value of a function? GetProcAddress returns a FARPROC, and I know to call the func, you do Func() -- but doing int i = Func() doesnt work... How can you pass parameters to a DLL function? Doing Func(i) doesnt work. Is there some kind of FARPROC method, like Func.Call(...)? How can you export and get the value of DLL variables? Thanks in advance!
  4. disease332000


    Thanks! That works perfectly!
  5. disease332000


    I want to make a variable that is created when my program starts and deleted when my program ends. I also want to be able to access it from other files that include the header file the variable it is declared in. I THINK that I need to use the Extern keyword for this -- in the header file I have extern myclass class;, and then in other files I do #include "header.h" void meh() { myclass.doSomething(); }. Whenever I try to do this, however, I get an "unresolved external error"...?
  6. disease332000

    Visual C++ 2005

    Thanks alot for your help! Tiem to get the SDL basecode working, now... Shouldn't have any problems, though.
  7. disease332000

    Visual C++ 2005

    Short answer: It works. I couldn't open my libraries at first, but I just added an additional lib directory which points to the place where I installed the microsoft SDK. Is there any way that I can make this directory one of the "Project Defaults" that are mentioned in the settings? Also, is there any way that I can make some mythickal "Project Defaults" that make it so I don't have to #pragma comment those libs every time I make a new prog?
  8. disease332000

    Visual C++ 2005

    The compiler doesnt use up THAT much memory, looking at my task manager now. The leak I had a few seconds ago was like RAM at almost full usage. I have no idea what happened. I have tried doing #using at the top, but now I get another error: ------ Build started: Project: Test, Configuration: Debug Win32 ------ Compiling... Main.cpp c:\Documents and Settings\Administrator\Desktop\Base\Code\2005\Test\Test\Main.cpp(1) : fatal error C1190: managed targeted code requires a '/clr' option Build log was saved at "file://c:\Documents and Settings\Administrator\Desktop\Base\Code\2005\Test\Test\Debug\BuildLog.htm" Test - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== I tried adding "/clr" to the command line options (Under Project->Properties->C++->Command Line Options, as well as ->Linker->Command Line Options), but both got an error. What does "/clr" do?
  9. disease332000

    Visual C++ 2005

    That was stupid. Now I have installed the SDK, and, from the looks of my task manager, it leaked a bunch of memory. Or VC++ 2005 takes up a lot of memory. But I installed it all, the whole 1 gigabyte load, and I still get the error? What is wrong? What could I have done wrong? Edit: Restarting... SOMETHING leaked a bitchload of memory.
  10. disease332000

    Visual C++ 2005

    I'm trying to start out using Microsoft Visual C++ 2005 Express Edition Beta (Really long title), and so I tried making a "Hello world" of sorts for the windows API: #include <windows.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MessageBox(NULL, "Hello!", "Hello!", MB_OK); } When I build my "solution", I get the following error: ------ Build started: Project: Test, Configuration: Debug Win32 ------ Linking... Main.obj : error LNK2019: unresolved external symbol __imp__MessageBoxA@16 referenced in function _WinMain@16 Debug/Test.exe : fatal error LNK1120: 1 unresolved externals Build log was saved at "file://c:\Documents and Settings\Administrator\Desktop\Base\Code\2005\Test\Test\Debug\BuildLog.htm" Test - 2 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== Whats wrong?
  11. disease332000

    Terrain LOD

    Ah! The error of my ways. Thanks -- but another question -- what about simplifying the mesh where additional polys arent needed (Ex: on a flat area of land). Would that be efficient on today's graphics cards? (This is just a curious question -- I think I'll just implement quadtree culling).
  12. disease332000

    Terrain LOD

    Could anyone recommend some good [easy] articles on Terrain LOD, particularly on ROAM?
  13. disease332000

    How much of my math classes should I inline?

    Thanks! I'll keep that in mind. I'm actually using OpenGL, though, so no D3DX for meh. Although I don't want to get into an argument with D3D coders -- OGL > D3D :P.
  14. The topic title says it all: How much of my math classes (like Matrix, Vector, Quat, etc) should I inline? Should I inline ALL of the functions, or only the simple ones? What is the point at which inlining a function becomes cumbersome?
  15. disease332000

    files hidden in NTFS streams

    As a total n00b who has never heard of this before -- where are the streams stored? When you add a stream to a file, the size (as defined in Right Click -> Properties) is the same as it was before.
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!