The Daily Click ::. Forums ::. Non-Klik Coding Help ::. C++ problem...
 

Post Reply  Post Oekaki 
 

Posted By Message

DanielRehn



Registered
  18/09/2002
Points
  139
2nd March, 2006 at 01:20:49 -

I'm making a DLL file for use with the Call dll extension.. I want a function to be able to return a string.. Can't get it to work though...
I call the function from mmf and the app crashes... return values are no problem however..
Can anyone help me with this?

 
n/a

DanielRehn



Registered
  18/09/2002
Points
  139
2nd March, 2006 at 18:44:10 -

I tried using both char and string as return types but both makes mmf crash... Ideas... Anyone?

 
n/a

DanielRehn



Registered
  18/09/2002
Points
  139
2nd March, 2006 at 18:52:06 -

Here's some more info...


My mmf function call looks like this:

-Reset argument list
-Set argument to "LOL" at 1
-Return a string of maximum size 32 characters
-Call function "retChar"


My c++ function looks lie this:

extern "C" __declspec(dllexport)
char _stdcall retChar (char input) {
return input;
}


It's a very simple function, yes, but this is only until i get it to work.. :\

 
n/a

DanielRehn



Registered
  18/09/2002
Points
  139
3rd March, 2006 at 14:17:25 -

Oh.. come on! Someone must know how to do this...

 
n/a

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
3rd March, 2006 at 19:47:33 -

Have you tried calling the function within C++, so that we know whether its an mmf or c++ problem

 
n/a

DanielRehn



Registered
  18/09/2002
Points
  139
3rd March, 2006 at 23:45:54 -

The problem seems to be with mmf i'm afraid...

 
n/a

Keatontech!

Possibly Insane

Registered
  10/07/2005
Points
  2720
8th March, 2006 at 00:38:39 -

I got an even bigger C++ problem ... I don't know anything about it

 
Happily Using Mac Now

I Officially Leave-d !

Keatontech!

Possibly Insane

Registered
  10/07/2005
Points
  2720
8th March, 2006 at 23:12:48 -

Some people don't appreciate my "special" kind of humor.

 
Happily Using Mac Now

I Officially Leave-d !

Deleted User
9th March, 2006 at 10:21:15 -

make a private ext for yourself instead, much more easy and there are cool guides and FAQ sites

 

DanielRehn



Registered
  18/09/2002
Points
  139
9th March, 2006 at 23:33:38 -

I wanted to make my own ext but ran into the problem that I dont have VC++... I however downloaded the new freeware version and it wont let me install... So this is pretty much my only hope..

 
n/a

Deleted User
12th March, 2006 at 16:15:41 -

Ask amnesiasoft i know hes not on this site anymore but email him.. errrm ill go ask him his email.... well phizzy knows it

 

Deleted User
13th March, 2006 at 08:03:34 -

why download a freeware? it's a microsoft program!
well i have no idea about the install problem, try saving the install instead of opening and etc

 

DanielRehn



Registered
  18/09/2002
Points
  139
13th March, 2006 at 08:10:25 -

LIJI: you dont think I've tried stuff like that?

I need help with a c++ function... If you don't know anything about it then don't bother...

 
n/a

vortex2



Registered
  27/05/2002
Points
  1406
13th March, 2006 at 17:15:21 -

Try char* instead of char. That should fix your problem.

 
A bit of insanity with every bite!

DanielRehn



Registered
  18/09/2002
Points
  139
14th March, 2006 at 22:35:05 -

Sry... tried that already... but thanks... thats the kind of help I'm looking for...

 
n/a
   

Post Reply



 



Advertisement

Worth A Click