Syndicate content

external

Recover name of message registered with RegisterWindowMessage()

Today I was confronted with an error in a process that would run in the background and slowly fill up the Windows message queue when it should have been dormant.

I looked at the messages that were being processed once the process woke up and the message number was 0xC10C or so. Nothing in the software has such a number. So I looked around and found out that the message was one of those created using the RegisterWindowMessage() function. (This is wrong in that application since the messages are never used from external applications, but oh well... that does not change the basic problem.)

So, ...

#PCDATA and DTDs

If you are like me and write DTDs to check your XML files to make sure you don't have too many mistakes in them, then you probably have had this problem before.

The #PCDATA has a very special behavior and it is really restrained as follow:

  • #PCDATA must appear at the start
  • #PCDATA must be repeated from zero to infinity, so only * work with it
  • #PCDATA cannot be used with sub-groups (things between parenthesis)

Something like this:

<!ELEMENT Z (P | (#PCDATA | A | B | C)* | Q)+>

does not work because you use + and #PCDATA is within a sub-group.

What you need ...

Sep 27 00:58:42 halk postfix/error[16751]: 628254C02F0: to=<mo_fax@m2osw.com>, relay=none, delay=1.8, delays=0.06/1.6/0/0.14, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail.m2osw.com[69.55.231.156]:25: Connection timed out)

My syslog was filled up with errors such as this one:

    Sep 27 00:58:42 halk postfix/error[16751]: 628254C02F0: to=<mo_fax@m2osw.com>,
    relay=none, delay=1.8, delays=0.06/1.6/0/0.14, dsn=4.4.1, status=deferred
    (delivery temporarily suspended: connect to mail.m2osw.com[69.55.231.156]:25:
    Connection timed out)

I've been wordering for a while, since I can use Thunderbird with a direct connection to my server, I was not too concerned, but tonight I really needed to support those emails because I have work to do that requires it.

Got NVG510 to setup?
Hacking my ...

MS-Access: Application-defined or object defined error

Today I got this weird error: Application-defined or object defined error.

Looking into it, I could not find the right answer.

The failing code was in a sub-form and when called it generated the error immediately. The code I wrote was:

Parent.NewSelection

And of course, in the parent I had the NewSelection function defined:

Private Sub NewSelection
    DoSomething
End Sub

The DoSomething would update a button as required...

For real MS-Access pros, you may already have noticed what the problem was. What's really annoying is that the error we get is not capable of telling ...

unresolved external symbol "public: virtual struct QMetaObject const *__thiscall MyClass::metaObject[...]"

Got a problem with Qt today... and it took me a little time to figure out again and I'm sure some people have something about it, but I couldn't find the right answer anywhere.

Qt has those objects named QObject. You can derive them that class and to complete the object, you want to add a Q_OBJECT inside the class. Something like this:

  class MyClass : public QObject
  {
    Q_OBJECT
    [...your object definitions...]
  };

That Q_OBJECT is what makes your object visible in the Qt environment (i.e. a Find by name will find your object if you give it a name with setObjectName().

External Links

Use at your own risk! These are links to other pages outside of this website:

Syndicate content Syndicate content

Diverse Realty

Diverse Realty Team

Want a New Home?
Want to Sell Your House?

Call Alex at
+1 (916)
220 6482

Alexis Wilke, Realtor
Salesperson
Lic. # 02024063

Cory Marcus, Broker
Lic. # 01079165

     

Terms of Site Index

Find the page/content you are looking for with our index.

  • cmake
  • decimal

    Most Database systems offer a number type called DECIMAL. In general, it represents a fixed integer number with a set number of digits on the left side of the decimal point and a set of digits after the decimal point. Some database system will use floating points instead. Commonly used synonyms are MONEY and CURRENCY.

  • double
  • report
  • static