Author Topic: Active X  (Read 7695 times)

Offline VB5FOREVA

  • Single posting newcomer
  • *
  • Posts: 4
Active X
« on: June 13, 2010, 03:38:16 pm »
Is there a way to insert an Active X (OCX)
into a code blocks form
________________________________
UPDATE:

if you can add Active X how does code blocks use them

does it use a block of text to use Active x in a form?
 
or does it have extra files witch contain the required info to use OLE Active X (OCX)?

And what does it do with that info

Does it evilly embed Internet exploiter and creates a web page containing the info to a temp directory?

Does it use the true way by using OLE dll files that have existed since windows 95 or earlier?

Or does it do it in another way?

If i can use Active x how?
witch source file or files will contain the info to use the Active X?
________________________________

Added those questions here so i would not need to make another post
« Last Edit: June 13, 2010, 06:45:01 pm by VB5FOREVA »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Active X
« Reply #1 on: June 13, 2010, 08:11:26 pm »
Is there a way to insert an Active X (OCX)
into a code blocks form
There is no such think like a "Code::Blocks form". Code::Blocks is just an IDE, you could also have asked how to embed Active/X into Notepad or Word.

However, Code::Blocks features a plugin, namely wxSmith which allows you to create UI content using wxWidgets. So: The right question would have been: Does wxWidgets allow the use of Active/X? Well - this is beyond the scope of our forums, you better ask the wxWidgets gurus at e.g. http://wxforum.shadonet.com

What I can tell you from experience: As Active/X is pretty much Windows only and wxWidgets is a cross-platform library there is not much support, obviously. However I managed to use some Active/X controls in applications of mine, for some I found no way to use them. But really: If you depend heavily on Active/X, then wxWidgets is probably not the right choice. Why using a cross-platform library if you target Windows only???
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline VB5FOREVA

  • Single posting newcomer
  • *
  • Posts: 4
Re: Active X
« Reply #2 on: June 14, 2010, 05:35:34 pm »
The reason i need Active X is because i plan to Make a visual basic for applications compiler
So I could use visual basic for applications macros after Microsoft kills them
Probably in 2014 Microsoft will make a new version of office without VBA6

The point of my app is for vba developers to produce an exe from there projects
similar tho those produced with vb5/6

I would want to add multi platform support but Vba is to Dependant on Active X for controls

If they were converted to multi platform source files
some would work others would simply break

i want at least 50% to work

My vba compiler should work something like this
VBA FRM + MY APP(VBA compiler)= C++ files
C++ files + C++ Compiler > EXE

It should run on any platform office 2000 and VB5 ran on

And for multi platform i could use these
http://www.winehq.org/
http://en.wikipedia.org/wiki/Gambas (not C++)

It probably would be windows only but i could add the option to create C++ or Gambas source code That may be compiled under non windows
this may only work for vba apps that only used fm20.dll
or may require recoding of VBA apps that used others but that is what the compiler is to avoid

I wanted to use C++ because i have seen this on wikipedia and other sites
"The Visual Basic compiler is shared with other Visual Studio languages (C, C++)"

Also C++ is more powerful than basic
so there may be a way to load an Active X (OCX) with code
with code using the OLE dll files in code


For the first version it will be windows only and simply do a few things

in some later releases when some simple lines of code work  i would add some multi platform support

To do list
1 VBA gui converter
2 VBA Code converter
3 VB5/6 support
4 REACT OS support
5 Multi platform support

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Active X
« Reply #3 on: June 14, 2010, 06:10:01 pm »
I think this is quite a challenging task... but go ahead! :-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline VB5FOREVA

  • Single posting newcomer
  • *
  • Posts: 4
Re: Active X
« Reply #4 on: June 14, 2010, 06:57:05 pm »
i understand that this will be a challenging task so i thought i should start soon
With this vba compiler i will be able to create executables  form vba files
i also have plans to allow it to interact with a text file is a similar way to what it did in office
it could use a small word clone using Standard text or rich text maybe

The main obstacle i encounter is Active X Support
i have 2 options

i will look at wxWidgets/wxSmith and see how well the Active X support is

the alternative is to use lots of code and dll files to use the Active X

these seem good and i hope that they will work
any way when i release something hopefully next year I cant promise but i think it might have some very basic functionality

forms pictures and others may not be the same size in pixels as in vba