[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trying again to write dll for ts6



PureBytes Links

Trading Reference Links

> > I think the problem is in your fprintf().  You print "group" with a 
> > %s (string) directive, but "group" is an int -- with a value of 1, 
> > hmmmm.  %s expects a pointer to a string.  It tried to indirect 
> > through the value you passed it -- 1 -- and barfed.
> > 
> All good suggestions. I think I'm closer. On one of my prints
> from the function I get a wierd number first, then the next
> two are numbers I expect. I think that for calling the external
> dll that TS6 wants the function to be declared with the pascal
> calling convention. 

What I'm saying is, I don't care how you declare your function.  If 
you pass an integer value to %s in printf, the code will barf.  
Period.  %s expects a pointer.  If you don't give it a pointer, it 
ain't gonna work.

Maybe you have other problems too, but passing 1 to %s is still wrong.

Gary