Plugin for TakeCommand Console

Everything else that doesn't fall into one of the other PB categories.
JoeC4281
User
User
Posts: 29
Joined: Fri Aug 06, 2021 4:47 pm

Plugin for TakeCommand Console

Post by JoeC4281 »

I am a daily user of https://jpsoft.com/'s TakeCommand Console.

Many years ago, TCC was available as both a 32-bit and 64-bit Windows application.

Several years ago, TCC became a 64-bit only Windows application.

I wrote several TCC Plugins using the 32-bit PowerBasic Compiler, which I used with the 32-bit TCC.

As I am now forced to used 64-bit TCC, I would like to migrate the plugins that I created with my 32-bit PowerBasic Compiler, to 64-bit PureBasic, so that I can use them with the 64-bit TCC.

I have purchased PureBasic, and have begun reading up on the language.

Before I begin the migration, I was wondering if anyone else has developed plugins for TCC using PureBasic, and if so, do they have a temple that I can use to begin my migration? No biggie if they do not exist.

Regards and Thanks,

Joe

Reference:
Plugins SDK: https://jpsoft.com/all-downloads/plugin ... mmand.html
TCC-RT v28 (Free): https://jpsoft.com/all-downloads/downloads.html
TCC (30-Day Version): https://jpsoft.com/all-downloads/downloads.html
User avatar
Mijikai
Addict
Addict
Posts: 1360
Joined: Sun Sep 11, 2016 2:17 pm

Re: Plugin for TakeCommand Console

Post by Mijikai »

Not keen on downloading and running TCC but u can give this a try:

Code: Select all

EnableExplicit

Import ""
  wprintf.i(format.s)
EndImport

Structure PLUGININFO_STRUCT
    pszDll.s
	pszAuthor.s
	pszEmail.s
	pszWWW.s
	pszDescription.s
	pszFunctions.s	
	nMajor.l
	nMinor.l
	nBuild.l
	hModule.i
	pszModule.s
EndStructure

ProcedureDLL.i InitializePlugin()
  ProcedureReturn #Null  
EndProcedure

ProcedureDLL.i ShutdownPlugin(bEndProcess.b)
  ProcedureReturn #Null  
EndProcedure

ProcedureDLL.i GetPluginInfo()
  Static pi.PLUGININFO_STRUCT
  pi\pszDll = "Plugin Dummy"
  pi\pszFunctions = "Dummy"
  ProcedureReturn @pi
EndProcedure

ProcedureDLL.i Dummy()
  wprintf("Hello World!\r\n")
  ProcedureReturn #Null
EndProcedure
JoeC4281
User
User
Posts: 29
Joined: Fri Aug 06, 2021 4:47 pm

Re: Plugin for TakeCommand Console

Post by JoeC4281 »

Thankyou for that!

I will work with it, and see what I can do.

Joe
JoeC4281
User
User
Posts: 29
Joined: Fri Aug 06, 2021 4:47 pm

Re: Plugin for TakeCommand Console

Post by JoeC4281 »

Here is the development path I took when first creating a plugin for TCC using PowerBasic, back in 2010;

https://jpsoft.com/forums/threads/writi ... post-13270

I have found a post from 2014 on the PureBasic Forum, which includes a "From PowerBasic to PureBasic Reference Aid", which I will review while learning PureBasic;

viewtopic.php?f=7&t=61153

Posting mainly for my reference, but others might also be interested.

Joe
Post Reply