This is probably an old bug, but nevertheless one that cost me a few hours. When using a recordset in MFC 4.2 (comes with Visual Studio 6) and an odbc driver, do not open the recordset with a sql statement. That forces the first parameter in the open to be default (or dynaset which is the same). With a dynaset, MFC decides to call SQLExtendedFetch, like here
AFX_ODBC_CALL(::SQLExtendedFetch(m_hstmt, wFetchType, nRow, pdwRowsFetched, m_rgRowStatus));
And guess what ? SQLExtendedFetch returns the number of rows fetched, which AFC_ODBC_CALL freely interprets as an error code. Sure, your saying, who's using MFC4.2 now, or why not just change the source code ? All valid points, but after all, most people use the out of the box stuff, even nowadays.
All right, nuff said
20061219
20061201
Have fun racing
A new job (Cimulus) and some more time on my hand. So I'm sitting here surfing the web, when I come across these youtube videos of BBC's topgear show. Check out their race from Guildford to Nice, or the one from Alba to London. Check it out, if you like cars you like this
20060919
What am I listening too right now
Bob Seger Face the promise
Back after a long time - back with a very strong album. Here in the midwest - in A2 - where he's from - a must to listen too. Here's my 2 cents worth on those songs
1. Wreck This Heart
I can understand the thought behind this song - going on even when it ends up hurting you
2. Wait For Me
Wanderlust and the plea for the loved one to wait for one to come back - and the promise to be back for sure
3. Face The Promise
A road song - again Wanderlust and the taste of what drives someone to go far. Also about this big country of ours - the USA. So long small town - hello big city, bright lights.
4. No Matter Who You Are
The circle of life : life and death, it affects us all - and no matter who you are, you will lose a loved one eventually, you will have to give up things - in the end, you can't take it with you.
5. Are You
Could this be about the war ? Are you gonna see his bluff. On the other hand - maybe it goes with the next song - the shelves are overstocked - a criticism on our commercialism and consumerism - and the blatant disregard for the rest of the world. this world's gonna drive you under, if you never have enough
6. Simplicity
Definitely very clear - and right down my line. When you have had it - simplicity will work. Focus on your loved ones, and the stuff money can't buy. Partners, friends, spouses and children. Pets, Parents and siblings. Forget about fast cars, big tvs and all the other bling bling
7. No More
The best anti-war song in a while. Should be mandatory listening in all schools. And Bush should have to listen to it at least once a day - so he understands what he got us into, and how much he damaged this country's image in the world. It's also a little poppy with it's violins and the orchestra - but the truth remains, this president got us into a mess, that it's gonna be hard to get out of. I also don't want this
8. Real Mean Bottle (with Kid Rock)
A great country rock song - I wonder who they sing about - maybe Johnny Cash ? Or themselves ?
9. Won’t Stop
You can cry if you want to ... but you won't stop there - a great song about addiction and demons that ride us.
10. Between
'This world is out to get you just like it got me. .. World keeps getting hotter'. A very accurate statement of politics and life in this nation
11. The Answer’s In The Question (with Patty Loveless)
A nice quiet song - great duet
12. The Long Goodbye
a VERY quiet song about our mortality - or is it just me interpreting this wrong - probably
And I respect the fact that he took time off for his family. And I'm grateful, that he's back
Back after a long time - back with a very strong album. Here in the midwest - in A2 - where he's from - a must to listen too. Here's my 2 cents worth on those songs
1. Wreck This Heart
I can understand the thought behind this song - going on even when it ends up hurting you
2. Wait For Me
Wanderlust and the plea for the loved one to wait for one to come back - and the promise to be back for sure
3. Face The Promise
A road song - again Wanderlust and the taste of what drives someone to go far. Also about this big country of ours - the USA. So long small town - hello big city, bright lights.
4. No Matter Who You Are
The circle of life : life and death, it affects us all - and no matter who you are, you will lose a loved one eventually, you will have to give up things - in the end, you can't take it with you.
5. Are You
Could this be about the war ? Are you gonna see his bluff. On the other hand - maybe it goes with the next song - the shelves are overstocked - a criticism on our commercialism and consumerism - and the blatant disregard for the rest of the world. this world's gonna drive you under, if you never have enough
6. Simplicity
Definitely very clear - and right down my line. When you have had it - simplicity will work. Focus on your loved ones, and the stuff money can't buy. Partners, friends, spouses and children. Pets, Parents and siblings. Forget about fast cars, big tvs and all the other bling bling
7. No More
The best anti-war song in a while. Should be mandatory listening in all schools. And Bush should have to listen to it at least once a day - so he understands what he got us into, and how much he damaged this country's image in the world. It's also a little poppy with it's violins and the orchestra - but the truth remains, this president got us into a mess, that it's gonna be hard to get out of. I also don't want this
8. Real Mean Bottle (with Kid Rock)
A great country rock song - I wonder who they sing about - maybe Johnny Cash ? Or themselves ?
9. Won’t Stop
You can cry if you want to ... but you won't stop there - a great song about addiction and demons that ride us.
10. Between
'This world is out to get you just like it got me. .. World keeps getting hotter'. A very accurate statement of politics and life in this nation
11. The Answer’s In The Question (with Patty Loveless)
A nice quiet song - great duet
12. The Long Goodbye
a VERY quiet song about our mortality - or is it just me interpreting this wrong - probably
And I respect the fact that he took time off for his family. And I'm grateful, that he's back
20060908
Back from the Valley
Spend a great time over labor day weekend in the valley ! What a dynamic environment, time to make a move there !
While walking down 4th street in SFO, I stumbled across a door that indicated that Moveable Type and a couple of other outfits are in that building. For a company with as big an internet presence as them and then only a door ! I scratched my head !
While walking down 4th street in SFO, I stumbled across a door that indicated that Moveable Type and a couple of other outfits are in that building. For a company with as big an internet presence as them and then only a door ! I scratched my head !
20060810
VB6 and Page Heaps
Yeah, Yeah I know, long time. but here's something I just ran across, trying to find this darned memory problem
You cannot run vb6 with page heap protection. Something in the mechanism on how extensions are plugged in (SourceSafe in specific), gives you an access violation (0xc0000005). Bummer, since the bugs happen much faster in the VB6 IDE than in the executable.
Stay tuned....
You cannot run vb6 with page heap protection. Something in the mechanism on how extensions are plugged in (SourceSafe in specific), gives you an access violation (0xc0000005). Bummer, since the bugs happen much faster in the VB6 IDE than in the executable.
Stay tuned....
20060410
Back to the surface
After a long tour of duty on the emotional nuclear ballistic missile sub of depression, I finally surface again. And as always after such a long haul, things are totally different on the surface.
The sunlight feels good on the skin, and sitting on the front porch with a cup of coffee in the hand. A lot of things have happened, maybe one day, I'll share some.
Anyway, this last weekend was pretty good. My brother-in-law came into town, with his latest band Thunderfoot. My wife planned a party on Saturday, and I, apprehensive of such things (any mass of people, even friends and relatives) freaked somewhat. But it turned out ok.
Things are looking up...
The sunlight feels good on the skin, and sitting on the front porch with a cup of coffee in the hand. A lot of things have happened, maybe one day, I'll share some.
Anyway, this last weekend was pretty good. My brother-in-law came into town, with his latest band Thunderfoot. My wife planned a party on Saturday, and I, apprehensive of such things (any mass of people, even friends and relatives) freaked somewhat. But it turned out ok.
Things are looking up...
20050803
Off to the races
I spent a very delightful weekend at MIS (Michigan International Speedway). After a five year hiatus I returned to attend an open wheel race. This time it was the Firestone Indy 400. Oval racing is normally not my favorite type of racing (real race courses, and real roads are more to my liking). What made this trip so special was that on Sunday, my son Vincent was with me. we had a blast, we saw all the cars, saw plenty of racers (Danica Patrick, AJ Foyt IV, AJ Foyt himself). We saw a crew guy in the pits get hit by a tire during the race, we saw 4 engines blow up, and we saw a 4 car accident. We also saw a very good sprint to the finish, and Bryan Herta won. Well deserved, his car was running best all weekend long.
On Saturday, I spent all day in the pits and pattock, during practice and qualifying. There's nothing better to show you that racing is a team sport, than to be with the teams during that day. You immediately see that the drivers become less important. Danica, for example, had just trouble with the car. The engine sounded bad (it blew on Sunday then), and she had problems winding the car up for a fast qualifying time. I already knew on Saturday, that she wasn't gonna make it Sunday. And that's not even her fault. Neither the team's. Racing like that, everythings gotta work perfect, and it's such a fickle thing. It's not like you can sit down, say, you're gonna do this and that, and that will get you the win. You gotta work hard to catch the right setup, and then have the right tires (hello Michelin) and then the driver needs to know what (s)he's doing, and so on.
Anyway, it was well worth the money to have a weekend like that.
On Saturday, I spent all day in the pits and pattock, during practice and qualifying. There's nothing better to show you that racing is a team sport, than to be with the teams during that day. You immediately see that the drivers become less important. Danica, for example, had just trouble with the car. The engine sounded bad (it blew on Sunday then), and she had problems winding the car up for a fast qualifying time. I already knew on Saturday, that she wasn't gonna make it Sunday. And that's not even her fault. Neither the team's. Racing like that, everythings gotta work perfect, and it's such a fickle thing. It's not like you can sit down, say, you're gonna do this and that, and that will get you the win. You gotta work hard to catch the right setup, and then have the right tires (hello Michelin) and then the driver needs to know what (s)he's doing, and so on.
Anyway, it was well worth the money to have a weekend like that.
20050727
The Best Radio Show In The World
The best radio show in the world is now on the web. and podcasted. head on over to Thayrone's place and get it. You won't regret it. The Bone Conduction Music Show. What a shame that WEMU ever cancelled him, over a stupid argument. Thanks to WAAM to keep him on the air. Ann Arbor, gotta love it !
20050502
20050311
The brain
Having worked too much and fighting another depression attack produced by stress from home and work, I started thinking about the brain and depression.
When you go by what we know about the brain scientifically. There are neurons which are connecting to other neurons through their axons. It is the fact that many neurons connect to one neuron through dendrites that turns this mass of cells into a neural network.
And in the last 20 years, we developed pretty good models for neural networks. But that's not what I want to talk about. What is interesting, in this neural network that our brain is, is that repetition seems to reinforce. Duuh, when you a learning you need to do things over and over, before you get them right (repetition). When you are learning to shoot the perfect 3 pointer or how to hit a baseball, you have to do things over and over. What you are doing there, is configure (or train) your neural network (the brain and the nerves that communicate to the muscle, the nerves at the muscle) to adapt to the physical realities of your body and control that physical apparatus (not a real simple one) to perform the task.
That's all easy to understand. Then it should not be very hard to understand, that you will do the same thing on an emotional and intellectual level. So if you think the same thoughts over and over again, they will leave a reinforcing trace in your brain, and thought often enough, reconfigure your neural network, so that it will function along those lines.
In other words, if you are depressed (as I often am), and you think those depressing thoughts, have that negative outlook, then that will reinforce the depression, and the negative outlook. So, one thing that should help, is trying to adapt a different attitude, think different (positive) thoughts.
Mind you, I am not just saying, ignore reality, everything is rosy. No, I don't want you to go to that river in Egypt. I just want you to consider thinking differently now and then. Realize the importance of changing your thought patterns. Get distracted. Humour really helps here. When you hear a good joke, see a good comedian, or a good movie, it distracts you. It let's that record player in your head jump to a different groove. Just don't play the same thing over and over in your head. It won't help, it will make things harder.
Enough said now. Tell me what you think about this by sending me an e-mail to mightypeo at gmail.com.
When you go by what we know about the brain scientifically. There are neurons which are connecting to other neurons through their axons. It is the fact that many neurons connect to one neuron through dendrites that turns this mass of cells into a neural network.
And in the last 20 years, we developed pretty good models for neural networks. But that's not what I want to talk about. What is interesting, in this neural network that our brain is, is that repetition seems to reinforce. Duuh, when you a learning you need to do things over and over, before you get them right (repetition). When you are learning to shoot the perfect 3 pointer or how to hit a baseball, you have to do things over and over. What you are doing there, is configure (or train) your neural network (the brain and the nerves that communicate to the muscle, the nerves at the muscle) to adapt to the physical realities of your body and control that physical apparatus (not a real simple one) to perform the task.
That's all easy to understand. Then it should not be very hard to understand, that you will do the same thing on an emotional and intellectual level. So if you think the same thoughts over and over again, they will leave a reinforcing trace in your brain, and thought often enough, reconfigure your neural network, so that it will function along those lines.
In other words, if you are depressed (as I often am), and you think those depressing thoughts, have that negative outlook, then that will reinforce the depression, and the negative outlook. So, one thing that should help, is trying to adapt a different attitude, think different (positive) thoughts.
Mind you, I am not just saying, ignore reality, everything is rosy. No, I don't want you to go to that river in Egypt. I just want you to consider thinking differently now and then. Realize the importance of changing your thought patterns. Get distracted. Humour really helps here. When you hear a good joke, see a good comedian, or a good movie, it distracts you. It let's that record player in your head jump to a different groove. Just don't play the same thing over and over in your head. It won't help, it will make things harder.
Enough said now. Tell me what you think about this by sending me an e-mail to mightypeo at gmail.com.
Subscribe to:
Posts (Atom)