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

DanielRehn



Registered
  18/09/2002
Points
  139
20th March, 2006 at 20:20:45 -

All hope is lost

 
n/a

Deleted User
21st March, 2006 at 08:34:20 -

no it isnt if you relly wnted to you would ask phizzy for my bros email to ask him

 

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
21st March, 2006 at 15:20:27 -

Phizzy doesn't know C++, shut up.

 
Old member (~2004-2007).

DanielRehn



Registered
  18/09/2002
Points
  139
21st March, 2006 at 17:10:31 -

Ok.. Could you plz give send me his adress via DC mail?

 
n/a

DanielRehn



Registered
  18/09/2002
Points
  139
26th April, 2006 at 23:38:32 -

Sorry for for posting in a relatively old topic...
I tried to contact him but no response... I have a temporary work around but it would be pretty great to be able to return strings... So anymore suggestions?

 
n/a

vortex2



Registered
  27/05/2002
Points
  1406
27th April, 2006 at 00:10:15 -

Just that you should consider making an extension.

 
A bit of insanity with every bite!

DanielRehn



Registered
  18/09/2002
Points
  139
27th April, 2006 at 10:23:01 -

I can't!!!!
I dont have Visual C++ and it wont let me install the new freeware version onto my system for some weird reason... I looked into the exnsion SDK and read most of the code... seems quite easy to make an extension though.. to bad

 
n/a

Sephirenn

Possibly Insane

Registered
  15/01/2002
Points
  2343

360 OwnerPS3 OwnerWii OwnerI am an April FoolVIP MemberGOTW JUNE 2010 WINNER!
6th September, 2006 at 17:59:08 -

did you go to microsoft and try to download vc++ EE? Thats the most recent one i think that will work for your just making an ext.

 
*Sephirenn*

Bibin

At least 9001

Registered
  01/07/2005
Points
  308

Silver Cup WinnerGOTW Winner!Has Donated, Thank You!VIP Member
6th September, 2006 at 21:50:41 -

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

SPECIAL ED HAHAHAHAHA *barf* hahahahah!

 
n/a

Deleted User
6th September, 2006 at 23:56:42 -

I think it did.. something mushy and pink went right into my fruit salad!

 

Bibin

At least 9001

Registered
  01/07/2005
Points
  308

Silver Cup WinnerGOTW Winner!Has Donated, Thank You!VIP Member
7th September, 2006 at 21:47:29 -

Mmmmmm brain salad.

* Bibin has dropped dead.
* Brandon Mortazavii {Mortasoft} slaps Phizzy around a bit with a large trout.
* Phizzy shoots Mortazavii, and kills him.
* Bibin comes to life long enough to cheer.

 
n/a

DanielRehn



Registered
  18/09/2002
Points
  139
11th September, 2006 at 21:06:27 -

I finally got it to install vc++ EE and right now I'm doing a new extension which can call DLL's for MMF2 since the CallDLL object won't be converted... Almost done... to be released shortly!

 
n/a

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
12th September, 2006 at 15:58:42 -

How much longer is this topic going to survive?

 
Old member (~2004-2007).
   

Post Reply



 



Advertisement

Worth A Click