Search:

Type: Posts; User: jamez05

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,772

    Problem Passing Values between functions

    Hi,

    I'm using visual studio 2005 on windows.

    I'm creating a struct that I'm trying to pass between
    functions. I set it up in a header file:



    typedef struct DataElement2 {
  2. Replies
    6
    Views
    1,512

    Looking into it

    Thanks for the info. It sound like Coldfusion may be the issue. I'm trimming down my arrays and put a post on Adobe about memory management. I'll let you know as I find out more.
  3. Replies
    6
    Views
    1,512

    Isolated it

    Hey,

    Thanks for the info

    I created a separate executable that simply defines the struct and calls the
    functions. This runs fine so it must be a long-standing memory corruption problem. How...
  4. Replies
    6
    Views
    1,512

    Thanks for getting back

    Right now, its compiled as a Coldfusion custom tag. It gives a generic message and then after a few seconds the following Windows error occures:
    Unhandled Win32 exception

    I think it may be a...
  5. Replies
    6
    Views
    1,512

    struct and run-time error

    I'm using Visual Studio 2005 to write a C/C++ program.

    I declare the following struct that contains an array:




    typedef struct DataElement {
    char Fragment[45];
    double FragVal;
  6. Thread: Need Advice

    by jamez05
    Replies
    2
    Views
    1,142

    Thanks David, I'll try that.

    Thanks David, I'll try that.
  7. Thread: Need Advice

    by jamez05
    Replies
    2
    Views
    1,142

    Need Advice

    I'm using Visual Studio 2005 to convert old Fortran code to C++.

    I'm still pretty new to C++ and was a Web Developer specializing in
    Coldfusion previously. Coldfusion doesn't worry about type,...
  8. Replies
    2
    Views
    2,754

    Thanks again Salem. I'll read up on new[]

    Thanks again Salem. I'll read up on new[]
  9. Replies
    2
    Views
    2,754

    Confused Deleting 2D array

    I've read through similar posts on deleting 2D arrays, but still a little confused.

    I have a global array that I want to delete in a funtion named DeleteGroup():



    //global variables:
    int...
  10. Replies
    3
    Views
    1,500

    Thanks for your feedback

    Thanks Salem, that helped me get a better grasp on it. I'll look into a good C++ book as well.
  11. Replies
    3
    Views
    1,500

    Trying to Understand Structure

    I'm still pretty new to C and still do not have a good grasp on pointers and structures.

    I'm working on a program that globally declares a nested? structure, and globally declares another...
  12. Replies
    10
    Views
    2,309

    Thanks Salem, that solved the problem

    Thanks Salem, that solved the problem
  13. Replies
    10
    Views
    2,309

    Thanks for all of your help. I'm not getting any...

    Thanks for all of your help. I'm not getting any errors now, but its not writing anything to the file. My program must be finding it though because when I try to delete c:\\pkatest\test.txt,...
  14. Replies
    10
    Views
    2,309

    Thanks for your reply. Its compiling, but not...

    Thanks for your reply.

    Its compiling, but not writing anything. Right now, I'm just trying to get any type of output, but it errors when I try running it:

    pkaden:


    void printct(FILE *f);...
  15. Replies
    10
    Views
    2,309

    Sorry about posting in the wrong area. The...

    Sorry about posting in the wrong area. The function that prints to the file was written by someone else in C. I saved it as a cpp file and I'm trying to call it from a C++ function.

    I won't make...
  16. Replies
    10
    Views
    2,309

    Problem Printing to File

    This is probably pretty easy, but I've been having a hard time and any help is greatly appreciated.

    I have a function named pkaden that needs to call a print function named
    printct. I'm not sure...
  17. Thanks

    Thanks for the info. I'm still pretty new to C++ and a little confused. Here's
    what I came up with based on what you told me and it compiled:

    request/


    double FinalPKA;
    double *pFinalPKA...
  18. Can't figure out what's wrong with Function's Arguments

    The first function I'm using is named Request

    This function calls another function named PKADEN.

    Request/



    int PKADEN(char *, char *, char *, double &);
  19. Replies
    5
    Views
    1,230

    Thank you so much, it worked!!! I'll study it...

    Thank you so much, it worked!!! I'll study it and try to get a grasp on what that actually did.

    Have a nice day
  20. Replies
    5
    Views
    1,230

    Thank you laserlight for your reply. I tried...

    Thank you laserlight for your reply.

    I tried your suggestion, however now its giving the error:


    error C2440: '=' : cannot convert from 'bool' to 'MOLECULE *'
  21. Replies
    5
    Views
    1,230

    C-style Cast Problem

    I'm converting a C program written for Solaris to a Windows 32 console program using Visual Studio 2005.

    In my t_main function (found in test1.cpp), the following is declared:


    MOLECULE *m =...
  22. Replies
    3
    Views
    996

    Program not liking strlen

    For some reason, the program errors on strlen, its saying identifier not found:

    Here's what I've changed my code to:


    #include <stdio.h>
    #include <string.h>
    #include "stdafx.h"
  23. Replies
    3
    Views
    996

    Thanks King Mir.

    Thanks King Mir.
  24. Replies
    3
    Views
    996

    Confused Reading Command Line Argements

    I'm using Windows XP and Visual Studio 200.

    I have a command line program named test1. There are three arguments that are passed to it:
    1. Name of the program
    2. Input 1 (SMILES String)
    3....
  25. Replies
    5
    Views
    6,121

    Thanks Salem, that gets me going in the right...

    Thanks Salem, that gets me going in the right direction.
Results 1 to 25 of 81
Page 1 of 4 1 2 3 4