I wrote up a simple patch to add PNG-saving capabilities to the SDL_Image library. It almost works, too. Problem is, the colors come out all scrambled, and I don't know enough C to figure out what's wrong. Can anyone take a look at this and help me fix it up?
Use case:
Load a 256-color PNG image with IMG_LoadPNG_RW.
Save it with IM...
I have a .net 3.5 application that I'm running over an intranet and as far as I know it should "just run" over a mapped drive but I get a SecurityException type "FileIOPermission" this happens when I call
File.Open(mCurrentFile, FileMode.Create, FileAccess.Write, FileShare.Read)
I can create files on the mapped drive so i do have wri...
When I try to access my ASP.NET password recovery page, I get the following error:
Description: An error occurred during
the parsing of a resource required to
service this request. Please review
the following specific parse error
details and modify your source file
appropriately.
Parser Error Message: Could not load
...
Hi
I have deployed a clickonce application, in my application i have 10 external dlls. Since the code inside my dll files keeps changing and it's tough to redistribute i went with clickonce deployment strategy. But i wanted to know a thing, if i make a change to one of the dll files and upgrade it's assembly version from 1.0.0.0 to 1.0.0...
Hi, I'm getting the LNK2005: already defined in (...) error when building my project in Visual Studio 2008. I've referenced other related questions, but mine seems to be a bit more complicated due if nothing else to the number of files I'm working with.
First, I think it will be helpful for me to map out the #include statements I have i...
Hi There,
I have created a windows service, it works great, but as soon as I try to install the service, it removed the directory, however, the service did not get removed, and when I try to install the service again, it give me an error 1001: Service already exists. How can I fix that?
And also, is there any code for me to remove the ...
Working regurlarly with a small team, we try to devide the process of making a piece of software regarding each of our professions. Despite the effort to maintain a productive workflow, we tend to run into frequent issues. The most common issues are:
version control and keeping things controlled and organized
overlapping professions w...
I'm not sure if this is even possible since this might be handled in hardware, but I need to send some Ethernet frames with errors in them. I'd like to be able to create runts, jabber, misalignment, and bad FCS errors. I'm working in Python.
...
Hey! I am trying to get ant installed and actually already did following this instructions however, I get this error:
Buildfile: build.xml does not exist!
Build failed
which it says there I might get so I just tried executing the next command it says I should(since I'm under Windows it's this one):
build -Ddist.dir=<C:\Ant> dist
an...
In a Master Page I have the following markup
<body id="body" runat="server">
I have set runat="server" because I need to be able to access the body element in code-behind.
I would now like to add a JavaScript function call to the body onload event, like this:
<body id="body" runat="server" onload="someJavaScriptFunction();">
Howev...
I've been following a tutorial "McGugan - Beginning Game Development with Python and Pygame (Apress, 2007)" and in the code at around chapter five involving object movement I keep getting invalid syntax alerts on '-' being used in the code. It isn't up to date but I would've thought a subtract wouldn't be changed in any updates due to it...
I have recently edited a fellow student's data collection software to my specifications. The program works fine when I run within Visual Basic 6, however ideally I would like to compile the program into an .exe file so I can run it from any PC. However, when I select the option to turn it into an exe, I get the following error while its ...
I am in process of making my bootstrap.php file more organized, but after I put everything into separate static methods, I cannot load any page beyond index controller. E.g.
if I try to open
http://localhost/zftutorial/login/index
I get
Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message
'Invalid ...
4060 "Server rejected the connection; Access to selected database has been denied".
How can I troubleshoot this error?
...
I have a table with a unique key (date + userid) in my webapp database. When i try to insert record with existing date and userid, i'm getting error "dupicate key in table". I turn on database debug in application config, because i need use mysql error number and message. And now i need processing this error. I can use hard coded constan...
We've got a .NET 2.0 WinForms app that needs to upload files to an IIS6 Server via WebDav. From time to time we get complaints from a remote office that they get one of the following error messages
The underlying connection was closed:
an unexpected error occurred on send.
The underlying connection was closed:
an unexpected error occur...
I have been getting an error on a web page and checking it out with IE8 profiler lists at the top ActiveXObject, only the page is PHP on Apache without any embedded objects; I know I've checked the source.
Any ideas as to what the object is :-
The browser window hosting the page?
Malicious code?
Change of image in some type map to an ac...
pthread_create returns the value 251 without creating the thread. Does anyone know what the problem is? Please help. The machine is a HP-UX.
I'm new to multi-threading.
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
void *print_message_function( void *ptr );
main()
{
pthread_t thread1, threa...
I have a WCF service operation that accepts a data contract parameter of custom type MyQuery -- function Search(q as MyQuery). The MyQuery object contains 2 properties:
MyQuery.SearchPhrase (string)
MyQuery.SearchType (custom enum SearchTypeEnum)
I also have a Flex client application that consumes this service. But when Flex invokes ...
I can't seem to get my app to compile when using JSON-framework http://code.google.com/p/json-framework/ with iPhone SDK 3.0.
My app compiles fine for the simulator, but when I go to compile for my device I get a 'codesign error' code 1. I've followed all of the installation instructions correctly, and when I remove the 'Additional SDK'...