mIRC Home    About    Download    Register    News    Help

Print Thread
#140179 22/01/06 11:39 PM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
lets say *result* (a variable) has a value
then if i do..

_fstrcpy(data, strcat(result, "hi"));
return 3;

that works, concating "hi" to the end of result, it tried it in mirc and it works fine, then when ido this

_fstrcpy(data, strcat("hi", result));
return 3;

mIRC doesnt seem to like that :S

Last edited by pouncer; 22/01/06 11:40 PM.
#140180 23/01/06 12:33 AM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
never mind, sorted it guys

i used strcpy

then strcat after that

#140181 25/01/06 10:53 PM
Joined: Jan 2003
Posts: 249
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Jan 2003
Posts: 249
you really, but I mean really should learn programming in C before you do all these things. Not to sound like an ass or anything, but you barely grasp the built-in types and how to manage a string in C (I'm taling about a native C string, not a string object that manages everything for you)

You will just run into problems you can't solve or understand even if people give you the answers. There are many tutorials on C on the web and you should dig in before you even attempt to grasp the inner workings of building a DLL with some advanced data structures. If you don't understand how the data structure works even though it does the work for you will only lead to further problems down the road.

#140182 25/01/06 11:42 PM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
im building the dll using tutorials in the first place and i did solve this problem using online tutorials and stuff,

i am trying to understand as much as possible david, and i have read quite alot on maps and stuff now too.
i understand it much better than i did, for e.g. 7 days ago, but just seems to be a problem with 1 small thing to do with maps (that the find and insert properties only work within 1 function?)

im not asking for heaps of help (even though this is exactly what you've given me). i do appreciate it dude and i will read up more on this stuff! sorry if ive annoyed you.

#140183 26/01/06 03:34 AM
Joined: Jan 2003
Posts: 249
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Jan 2003
Posts: 249
you don't annoy me at all, it's just for you and make the path less painful into learning this stuff.


Link Copied to Clipboard