Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Dll Problem with ym String Table I am guessing

Author
Message
DreamCodersRealm
22
Years of Service
User Offline
Joined: 23rd Oct 2002
Location: United States
Posted: 1st Mar 2003 19:47
Hi! I am creating a Plugin-User Dll for DbPro. I started off with a basic simple command like

#include "stdafx.h"
#include
#include
#define MYCOMMAND __declspec ( dllexport )
MYCOMMAND void Alert(LPSTR JString,LPSTR TITLE, int BUTTON)
{

MessageBox(NULL,JString,TITLE,BUTTON);

}

And for my string table, I said
ALERT%S%S%L%?Alert@@YAXPAD@Z

Because I want the coder to imput two string titles and one integer for what button to use.

However, this code compiles fine but when I put my dll in the User-Plugins folder and say

Alert "Hello World!","Nice Title huh?",1

I get a Dbpro Compile error saying that it can't understand my command. Can anyone help me?

Thanks in advance!

GOD Bless you Always my Friends!!!!!
I love GOD and Asian Girls! I am gonna marry and Asian girl one day!
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 1st Mar 2003 20:05
Your string resource should say:

ALERT%SSL%?Alert@@YAXPAD@Z
DreamCodersRealm
22
Years of Service
User Offline
Joined: 23rd Oct 2002
Location: United States
Posted: 2nd Mar 2003 06:44
Nope, I tried that and still get an error in Dbpro =(

Any other ideas?

I love GOD and Asian Girls! I am gonna marry and Asian girl one day!
DreamCodersRealm
22
Years of Service
User Offline
Joined: 23rd Oct 2002
Location: United States
Posted: 2nd Mar 2003 07:45
I keep getting a compile error in DbPro that says "DBPro can not understand Command at line 1"

What am I doing wrong? My String Table is correct. Thanks!


GOD Bless you Always!!!!

I love GOD and Asian Girls! I am gonna marry and Asian girl one day!
n3t3r453r
22
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Russia
Posted: 2nd Mar 2003 08:07
Try without @@$@Q#$#$E$W%

just place this:

.cpp
#define MYCOM extern "C" __declspec(dllexport)
MYCOM void test()
{
}

String Table
test%0%test%void
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 2nd Mar 2003 11:53
If you want me to play with this for you, package it all up into a zip and email it to me. I'll look at it, fix it (with comments) and ship it back to you.

BTW, you are putting the dll into your 'plugins-user' folder, aren't you?

Login to post a reply

Server time is: 2025-05-18 16:10:57
Your offset time is: 2025-05-18 16:10:57