Quantcast
Browsing all 45 articles
Browse latest View live

Answer by BobbyShaftoe for C++: How to deal with NULL values (e.g. from a...

From http://art-blog.no-ip.info/wikipp/en/page/ref_dbixx_row :Function cols() returns number of columns in the row. isnull() returns if specific filed is null, using it's column number (starting from...

View Article


Answer by BobbyShaftoe for Is there a way to program for gameboy?

http://www.loirak.com/gameboy/gbprog.phpFrom link:Have you ever dreamed of becomming a game programmer? Today is your lucky day, ...

View Article


Answer by BobbyShaftoe for Various clients to web server architecture

Well, you should use something like the Model View Controller architecture, which would allow you to achieve your goal of code reuse. Your rich client application would simply use the JSON/XML based...

View Article

Answer by BobbyShaftoe for WHY I got seg fault here? need help. Want to put...

You did allocate space but you you are passing the wrong thing. Try this:#include <stdio.h>#include <stdlib.h>int main(){ int num = 1; char test[8]; sprintf(test,"%d",num);...

View Article

Answer by BobbyShaftoe for ASP.NET Error: Could not load file or assembly...

Close your solution, shutdown IIS, go to:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\And delete all of those files. Then restart IIS and try it all again.

View Article


Answer by BobbyShaftoe for WMI "installed" query different from add/remove...

All that Add/Remove Programs is really doing is reading this Registry key:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall

View Article

Answer by BobbyShaftoe for .NET convert number to string representation (1 to...

A conversion from integer to long form English... I could write that ;-) is a pretty good article on the topic:using System;public class NumberToEnglish { private static string[] onesMapping = new...

View Article

Batch Printing PDFs from ASP.NET

I have a situation where in a web application a user may need a variable list of PDFs to be printed. That is, given a large list of PDFs, the user may choose an arbitrary subset of that list to print....

View Article


Answer by BobbyShaftoe for Is bool a native C type?

No, there is no bool in ISO C90.Here's a list of keywords in standard C (not...

View Article


Answer by BobbyShaftoe for Connect to wireless network

You might find this project interesting. It is just a .NET wrapper on the native API. You should be able to call this from PowerShell without too much trouble:http://managedwifi.codeplex.com/

View Article

Answer by BobbyShaftoe for Where to get started with APIs

An API is an Application Programming Interface. This is really a generic term for a lot of different sort of things. I'm assuming you mean "Web APIs" which are usually RESTful or SOAP based. The sort...

View Article

Answer by BobbyShaftoe for Two types of array one is string and the other is...

You are not incrementing the index variable. I have incremented it. This is not really the best way to do this but I don't entirely understand what exactly you want to do. I hope this modification...

View Article

Answer by BobbyShaftoe for Sorting a vector of custom objects

In your class, you may overload the "<" operator.class MyClass{ bool operator <(const MyClass& rhs) { return this->key < rhs.key; }}

View Article


Answer by BobbyShaftoe for Where is Juval Lowy's ServiceModelEx library for WCF?

The latest version is maintained on IDesign's site here:http://idesign.net/Downloads/GetDownload/1887Older version are available on the O'Reilly site.Programming WCF Services 3rd Edition (PWSTE)...

View Article

How to call a SOAP web service on Android [closed]

I am having a lot of trouble finding good information on how to call a standard SOAP/WSDL web service with Android. All I've been able to find are either very convoluted documents and references to...

View Article


Answer by BobbyShaftoe for Increasing (or decreasing) the memory available to...

From: http://gking.harvard.edu/zelig/docs/How_do_I2.html (mirror)Windows users may get the error that R has run out of memory. If you have R already installed and subsequently install more RAM, you may...

View Article

Answer by BobbyShaftoe for How can I show a tooltip on a disabled button?

So assuming your control is called button1 you could do something like this.You have to do it by handling the MouseMove event of your form since the events won't be fired from your control.bool IsShown...

View Article


Answer by BobbyShaftoe for Does Java have buffer overflows?

Yes and no. No, in that you cannot really create mistakenly open yourself up to a buffer overflow vulnerability because it is a managed memory model. However, there can be buffer overflow...

View Article

Answer by BobbyShaftoe for How to detect Windows 64-bit platform with .NET?

Quickest way:if(IntPtr.Size == 8) { // 64 bit machine} else if(IntPtr.Size == 4) { // 32 bit machine} Note: this is very direct and works correctly on 64-bit only if the program does not force...

View Article

Answer by BobbyShaftoe for Algorithms for Simulating Fluid Flow

This is not my area of research but I believe this is considered the canonical work:Fluid Simulation for Computer...

View Article
Browsing all 45 articles
Browse latest View live