Thread: Dll

  1. #1

    Cool Dll

    I am trying to teach myself about DLLs and so I found code for one and created a Win32DLL and added the file. Executing it it asks me which .exe to use. What I want to know is is this DLL code safe to run should I write a small .exe to run it and how can I or where can I go to learn how to write such code?

    Here's the code:
    /* nag_save_random_state(g05cfc) Example Program
    * Copyright 1990 Numerical Algoritms Group.
    * Mark 1, 1990.

    #include <nag.h>
    #include <stdio.h>
    #include <nag_stdlib.h>
    #include <nagg05.h>

    Integer seed = 0;
    Integer i, istate[9];
    double x[5], xstate[4];

    Vprintf("g05cfc Example Program Results\n");
    for (i=0; i<5; ++i)
    if (i==1)
    for (i=0;i<5;++i)
    Vprintf("%9.4f%s", x[i], (i%5==4 || i==4)?"\n":" ");
    for (i=0;i<5;++i)
    if (i==1)
    for (i=0;i<5;++i)
    Vprintf(%9.4f%s",x[i],(i%5==4 || i==4)?"\n":" ");

  2. #2
    Registered User
    Join Date
    Dec 2001
    DLLs are windows specific.. how about you ask in the windows forum??
    Quidquid latine dictum sit, altum sonatur.
    Whatever is said in Latin sounds profound.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. non-MFC DLL with MFC app question.
    By Kempelen in forum Windows Programming
    Replies: 10
    Last Post: 08-20-2008, 07:11 AM
  2. Replies: 1
    Last Post: 09-18-2005, 09:06 PM
  3. dll communicating between each other
    By cloudy in forum C++ Programming
    Replies: 5
    Last Post: 06-17-2005, 02:20 AM
  4. DLL and std::string woes!
    By Magos in forum C++ Programming
    Replies: 7
    Last Post: 09-08-2004, 12:34 PM
  5. .lib vs .h vs .dll
    By Shadow12345 in forum C++ Programming
    Replies: 13
    Last Post: 01-01-2003, 05:29 AM