I am programming in C, using the Windows API, and would like to know how I could draw separators.
I'm a total noob when it comes to writing GUI applications, so I may need a code example.
What is the best way for an SWT application to clean up resources before application exit? I see two options:
1) Add a DisposeListener to main window (or better, to the Display). Will it get run if an uncaught exception happens?
2) Use a shutdown hook. Any problems to be aware of there which aren't mentioned in Design of the Shutdown Hooks API?
Hi,
I am trying to Migrate mail on 'Google Apps Mail'.
When i give Admin credentials it get migrated successfully.
But when i use Domain user credential it shows error " Execution of request failed: ".
I want to migrate mails to user not to Admin User.Then why there is need of Admin credentials ?
I am using Google API Ver 2.
Thanx
I have ldap_sasl_bind_s() working fine with SSL and client cert (without DN and password) from 'C' windows program.
When I call ldap_sasl_bind_s() using SSL, DN and password (no client cert) it throws null pointer exception. Should this work or should I be using another api call?
I know that under Windows, there are API functions like global_alloc() and such, which allocate memory, and return a handle, then this handle can be locked and a pointer returned, then unlocked again. When unlocked, the system can move this piece of memory around when it runs low on space, optimising memory usage.
My question is that is there something similar under Linux, and if not, how does Linux optimize its memory usage?
Hello Experts,
Our organization uses IBM FileNet as document management system. FileNet P8 comes with a web services API which can be used in .net
Has anyone of you guys tried this? If yes could you please direct me to any resources to kick start?
Thanks a ton in advance.
Hi..
I am developing a application in iphone which requires me to load my phone contacts.
how to load my contacts in the application?Is there any API or LIBRARY which allows me do the this.
Kindly suggest me with some solutions.
Regards,
Vijaya
Machine tags are more precise tags: http://www.flickr.com/groups/api/discuss/72157594497877875. They allow a user to basically tag anything as an object in the format
object:property=value
Any tips on a rdbms schema that implements this? Just wondering if anyone
has already dabbled with this. I imagine the schema is quite similar to implementing
rdf triples in a rdbms
Hi,
I'm wondering if someone knows how to store an array into a user session?
This is the method to store a single attribute:
$this->getUser()->setAttribute('something', $something);
And the documentation says:
"User attributes can store any type of data (strings, arrays, and associative arrays)"
... but doesn't say anything more. The API documentation doesn't have a "SetAttributes" or something similarly obvious.
Thank you.
I've read about this a lot and I just can't figure it out. It has nothing to do with MY code, it has to do with the feed or something because if I swap it with a Twitter feed it returns an Object object which is perfect.
$.getJSON('http://rockbottom.nozzlmedia.com:8000/api/portland/?count=1&callback=?',function(json){
console.log(json)
});
And i get an "invalid label" error. Any ideas?
I want to create some sort of method of creating a web service that will run automatically and run DB queries and some API calls which will then store data that I can use/call without taking the processing or time penalty of doing it every time a user access my web service. Is this possible? If so, point me in the right direction on how to implement something like this
Using vb.net and ASP.net
Thanks in advance!!
I use Aptana for 2 or 3 months now and i'm very happy with it.
But since i need to work with Joomla! and to write some modules, compenents, etc...
I'd have like to know if there is a joomla plugin for Aptana ?
I would just like to have autocompletion, autosuggest, links to methods and class of the Joomla API
Any ideas ?
Thanks
There are plenty of projects out there that assist developers in posting things to Twitter; the one I can think of off the top of my head is Twitterizer.
Are there any projects for posting to StatusNet?
Given that StatusNet implements an API very similar to Twitter, I could probably modify/extend Twitterizer to do just that.
However, I'd like to avoid reinventing the wheel if at all possible if something exists already.
I want to load a image (.bmp) file on a Win32 application, but I do not want to use the standard LoadBitmap/LoadImage from Windows API: I want it to load from a buffer that is already in memory. I can easily load a bitmap directly from file and print it on the screen, but this issue is making me stuck :(
What I'm looking for is a function that works like this:
HBITMAP LoadBitmapFromBuffer(char* buffer, int width, int height);
Thanks.
Hi -
I'm getting JSON-encoded output from another organization's API.
In many cases, the output can be either an array of objects (if there are many) or an object (if there's just one). Right now I'm writing tortured code like this:
if ( is_array($json['candidateList']['candidate'][0]) ) {
foreach ($json['candidateList']['candidate'] as $candidate) {
// do something to each object
}
}
else {
// do something to the single object
}
How can I handle it so the "do something" part of my code only appears once and uses a standard syntax?
Hello all
I am looking for compare utility similar for "win merge" or "beyond compare" .
That in addition for gui comparison will have api that i will be able to run on my files via my code and see if the files are the same or not and also use it in gui mode to show graphically the differences .
Any recommendations ?
thanks
currently im able to play .wmv videos from my application using shell execute which plays it in the windowsmedia player. However I need to be able to play .3gp videos which unfortunately the windows meadia player does not support. Is it possible via api etc to play 3gp videos on win mobile 5 and 6 devices?
Does it make sense to always wrap an InputStream as BufferedInputStream, when I know whether the given InputStream is something other than buffered? For e.g:
InputStream is = API.getFromSomewhere()
if(!(is instanceof BufferedInputStream))
return new BufferedInputStream(is);
return is;
I am trying to store my Google Maps API Key in my application.ini file, and I would like to be able to read it from my controller whenever its needed. How can I go about reading values from the application.ini from my controller?
Thanks!
Hi,
I want to make Task in Google Calendar using Google Calendar API : c#.
Before that i manually tried to create Task in Google Calendar.But i didn't found it there.
So, My question is that if Task doesn't exist in Google then how Google Tool For Calendar migration manage it?
Regards,
Preeti
Hi. I'm using the jQuery UI Button control but don't seem to be able to adjust the size (width and height). Here's the API documentation. I tried setting a STYLE attribute on it, but then the LABEL wasn't centered correctly. Thanks.
I have an application that is running on .net 3.5 SP1 and that is supposed to check if .net 4 is installed.
Actually, I'm more interested if MSBuild v4 is installed, which would boil down to a simple File.Exists(@"C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe");
However, apart from the fragility of the 4.0.30319 Version (and the Windir, but that's easy to solve), I wonder if there is a more appropriate way, like an API?
I'm using the Google Maps API to build a map full of markers, but I want one marker to stand out from the others. The simplest thing to do, I think, would be to change the color of the marker to blue, instead of red. Is this a simple thing to do or do I have to create a whole new icon somehow? If I do have to create a new icon, what's the easiest way to do that?