robgxxx -2 Newbie Poster

What Vijayon is talking about I really can't guess.
Global structures and global variables are one and the same
or at least of the same generic route.

WindowProcedure is a a callback funtion, you use lParam amd wParm
to transport variables with the additional facility of HIWORD and LOWORD .

Both of you need to delve into win32 system services!

robgxxx -2 Newbie Poster

Sorry, but why are they still on here?

Are they meaningless?

I still can't see the piracy!

robgxxx -2 Newbie Poster

Sorry I've just seen that I made a boob, the code
should have been ...

if(MessageBox(0, (LPSTR) "testing","Error",
MB_ICONWARNING | MB_OKCANCEL ) ==IDOK) //do whatever


regards

Bob G

robgxxx -2 Newbie Poster

Hi,

Try this

if( MessageBox(0, (LPSTR) "testing", "Error",
MB_ICONWARNING | MB_OK ) ==MB_OK) //do whatever

regards

Bob

Hello everyone,
I don't often use forums for getting answers, but I simply cannot seem to find how to fire a MessageBox under Borland Builder...I could use MessageDlg which works, but I only want an OK button, so I would rather go with MessageBox...code sample:

void __fastcall TForm1::cmdPlayClick(TObject *Sender)
{
        if (TForm1::txtLogin->Text=="")
        {
                ::MessageBox("Invalid Login Name!", "Error!", MB_OK, 0);
                return;
        }

With MessageDlg:

if (TForm1::txtPass->Text=="")
        {
                MessageDlg("Invalid Password!", mtError, mbOKCancel, 0);
                return;
        }
        TForm1::LoadLauncher();
}

NOTE: I know it defines mbOK as a variable for TMsgDlgButtons, but it fires an error that it's NOT a recognized variable...I may be overlooking something, but it's late and I've been coding for hours now just getting my ActiveX control to function without causing access violations at memory address 0x000000 (WideString function is your friend.) Next issue will be writing the code to open a file which is like an ini file, but has a different structure (ie: no "[]" but uses "=" as an assignment operator...I *think* I have the groundwork set, but am unfamiliar with C++ file manipulation, I had created a similar program in VB6 and the styles of coding are mixing in my head =)

Thanks in advance for any information.

robgxxx -2 Newbie Poster

Hi Mahen,

I could not see the piracy or any attempt at it!

Please explain.

robgxxx -2 Newbie Poster

Am I being thick or something?

The concept is so basic that I'm not sure that you have
even got a Borland IDE open! You are using an IDE?

regards

Bob

Salem commented: Yes, you waited 3 years to add nothing worth reading -2
Sturm commented: You have done to other threads...if your going to dredge up old threads at least post something meaningful +0
robgxxx -2 Newbie Poster

I think that you've got me mixed up with the origional question.
"How can I underline characters?".
I offered the advice "What about using the Canvas".
After all, they certainly wont achieve it with asc.
Canvas is part of the object code of many facities
such as ListBox, StringGraph etc and many other generic
variations in Borland, Vcc etc.

robgxxx -2 Newbie Poster

Anybody out there with example source code that might demonstrate the keeping of the program button off of the taskbar with "CreateWindowEx" or the alternative method of creating a hidden window and making it the owner of the primary window. :?:

robgxxx -2 Newbie Poster

What about using the "Canvas"?