Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    16
  • comments
    21
  • views
    14287

win32 programming, and stuff

Sign in to follow this  
markr

324 views

Well, I was doing a bit of real paying work. Then I was doing a bit of work on the afore mentioned "XUL Mysql client" app.

But recently I've been working on a new commercial (non-game) project, which may end up being quite lucrative (I hope).

Anyway, I'm back on win32 C coding with MingW.

So far my observations have been:

- Using COM in C with MingW is awkward
- In the win32 shell, redirecting stdout to a file, causes the file to be "unix2dos'd" - and there's NOTHING you can do about it (read: not binary safe, whatsoever)
- What works in an exe from the command line, does not work in CGI necessarily, and it's difficult to figure out why.

I'm calling a COM API. It's working fine, I can run my program from the command-line, and the right thing happens.

I do the same thing in a cgi program (the same exe), and it doesn't work. The error code is not helpful.

My suspicions:
- A permissions problem (Not as far as I can tell using ntfilemon to check file accesses)
- Some env variable set wrong (nonexistent temp dir)? seems ok so far
- It just decided it doesn't feel like it

I shall have to investigate later. Perhaps the user ID that the web server (currently IIS, but hopefully Apache ultimately, when I get around to installing it (I hate IIS)) is running under, doesn't have rights to something that the API requires.

Mark
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!