My (mostly technical) blog

Well, I decided to go on and upgrade to Windows Vista Ultimate. I am quite impressed by the new user interface (Aero) and the several other enhancements though I have been constatly bugged by the several incompatibilites that I ran into!

 To start with, my soundcard (Creative Soundblaster Live! 5.1) was detected, but I was only able to use it as a 2 speaker soundcard not a 5.1 speaker setup!

I overcame this problem by installing the unofficial kX drivers (I’ll post about them later).

The other thing that really bugged me was the inability to use my Digital satellite card (Twinhan DTV DVB-S VisionPlus 1025). The supplied WDM drivers that came with the CD crashed Vista into a bluescreen whenever I tried to install or uninstall them. They simply didn’t work with any of the satellite programs (ProgDVB or Windows Media Center).

The drivers that are automatically installed by Windows don’t cause problems, though they are not of any help because the programs simply won’t detect the card. I really like to use ProgDVB as I got used to it and I’m not so much into a home theatre PC setup (yet). The automatically installed drivers didn’t work here either.

 Fortunatley, Twinhan provided updated drivers on their website (http://www.twinhan.com/download_driver&software.asp) .. look for BDA driver and download the one appropriate for your model number (you’ll find it on the barcode on the box). Installing these BDA drivers didn’t help me much in trying to use the card in ProgDVB!

I stumbled upon a nice Media Center style program called Mediaportal (http://www.team-mediaportal.com/download.html), so I decided to give it a try. With the drivers I just downloaded (you have to restart first!), I went ahead and configured Mediaportal and guess what, it detected my card and started scanning for channels 😀

Now, this isn’t the good part. The good part is that now when you open ProgDVB and open the “Device list” dialoge from the Settings menu, you can find a new device called “{BDA} MediaPortal DVB-S”..I decided to select it ad guess what, IT WORKED!

dvb.jpg

 Now I can enjoy using my ProgDVB on Vista 🙂
Hope this could be of help to anybody! I’ll post about the Creative Soundblaster Live! 5.1 soon.

Ever since I started programming with C++, I have been pulling my hair out trying to decrypt what the compiler errors mean.

Coming from the Java camp, I just hate how C++ compilers work and how stupid they are! After spending 3 hours trying to know why this piece of code won’t compile, I found out the answer after searching for a LONG time.

The code:

#pragma once
#include “Edge.h”
#include “IDGenerator.h”
class Face {
public:
Edge *edge;
int id;
Face(){
id = IDGenerator::getFaceID();
}

void setEdge(Edge *e) {
edge = e;
}
int getID() {
return id;
}

Edge *getEdge() {
return edge;
}
};

The compile error I was getting was:
error C2143: syntax error : missing ';' before '*'

it was choking at the “Edge *edge” line. To cut a long story short, if you are going to use a pointer to another class, don’t include the file as above, just use forward declaration by adding:

class Edge;

at the top of

class Face {

so that the final version looks like:

#pragma once
#include “IDGenerator.h”

class Edge;

class Face {
public:
Edge *edge;
int id;
Face(){
id = IDGenerator::getFaceID();
}

void setEdge(Edge *e) {
edge = e;
}
int getID() {
return id;
}

Edge *getEdge() {
return edge;
}
};

for a better explaination:
http://www-subatech.in2p3.fr/~photons/subatech/soft/carnac/CPP-INC-1.shtml

I finally have my own blog!

I have been intending to create one for a long time. I still don’t quite know what will I post here, but I will find something 🙂

Ahmed Sabbour's Facebook profile
May 2024
S M T W T F S
 1234
567891011
12131415161718
19202122232425
262728293031  

Recently bookmarked