|
Is this code ambiguous or is it perfectly fine (approved by standards/has consistent behavior for any compilers in existence)?
struct SCustomData { int nCode; int nSum; int nIndex; SCustomData(int nCode, int nSum, int nIndex) : nCode(nCode) , nSum(nSum...
Started by afriza on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
It is my.
See this patch
I would say that this is perfectly fine.
That.)
It is perfectly standard compliant, but there are compilers out there that would not accept source library for that reason.
|
|
Recently I made the WPF application and want to publish it for many users but application seems to have problems on some target user machines. It simply crashes when user is starting it. I build app with .NET Framework v.3.0 as target version and user...
Started by Eskat0n on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If its not on the target machine, install it.Here's what I do in NSIS
Function IsDotNetInstalledAdv !insertmacro MUI_HEADER_TEXT "Checking for prerequisites." "Checking for .net framework 3.5 SP... .
Use an installer like NSIS and check for your framework .
|
|
I had a quick function to format a date, here it is:
public static string archiveServerDateTime(string datetime) { DateTime tempDateTime = DateTime.ParseExact(datetime,"dd.MM.yyyy HH:mm:ss", null); return tempDateTime.ToString("yyyy/MM/dd:HH:mm:ss"); ...
Started by JL on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I just tried your format string on a machine with german locale and it is producing 2009.10.31
You should pass DateTimeFormatInfo.InvariantInfo ... .
Edit: It is a locale problem.
Some countries use dots as date separators.
Could be a locale problem.
|
Ask your Facebook Friends
|
I'm trying to remotely assist a friend with a problem the likes of which I've never seen before.
He has a new HP Win7 laptop works perfectly when using a WIRED connection to his home network (Comcast supplied cable router). Other machines, including old...
Started by Rob3C on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at superuser):
Change the DNS servers on his wireless connection to 8.8.8.8 and 8... .
Open Network Connections, right click on the Wireless connection and select Repair .
Open a command prompt as an Admin and run "ipconfig /flushdns" .
Few things off the top of my head...
|
|
Hi,
I have developed a recursive FTP-download script, in PHP5, that allows you to select some files and/or directories to download using an AJAX request. The POST-variable that the server receives is just a short pipe-separated string that does not take...
Started by Christoffer on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Maybe it's an access issue: are you running on Linux? Is the VM the same as your dev-box? Does the user running apache have enough rights to read the directory?
Well basicly i don't know how your code is looking like, but that part here (from the php... .
|
|
Possible Duplicate:
Should developers be specialists or generalists?
I recently graduated and I am now a web developer. During my personal projects and past professional experiences I got to learn a lot of web languages and frameworks, from PHP to ASP...
Started by marcgg on
, 19 posts
by 19 people.
Answer Snippets (Read the full thread at stackoverflow):
I knew every nuance of syntax, and even had.
A position for a C# project and you know one single language perfectly php, then this can come language about as perfectly as it was possible for me.
|
|
I have integrated Fbconnect in LoginViewController.I want to logout the session from another view controller .. How i can do this ?
I tried this ..
LoginViewController *obj1 = [[LoginViewController alloc] init]; [obj1._session logout]; [obj1._session....
Started by Sijo on
, 3 posts
by 2 people.
Answer Snippets (Read the full thread at stackoverflow):
(void)logout {
if (_sessionKey....
So it will call unsave function..
My condition giving false when i call from another view controller..so it will o to else part. .
Now i found out that when am calling - (void)logout
its checking if (_sessionKey) condition... .
|
|
I'm using com interop to talk to some physical piece of hardware.
When I need the current reading from the hardware I have a nice elaborate piece of threading code that keeps it off my UI thread so that I don't lock up the UI while I query the hardware...
Started by Joel Barsotti on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If everything else fails - spawn a worker ....
Otherwise the calls will be routed to the object's home thread via Windows messages, thus blocking the UI .
Assuming the object is apartment threaded - make sure you call it on the same thread that created it .
|
|
Http://www.boredpanda.com/perfectly-timed-photos/
Does exactly what it says on the tin...
Started by Pogue Mahone on
, 21 posts
by 17 people.
Answer Snippets (Read the full thread at redcafe):
The point I was making is it wasn't perfectly timed.
Not necessarily.
As the smoke would cover Jesus.
|
|
Http://www.boredpanda.com/perfectly-timed-photos/
Okay, some of these are hilarious.
Started by Crash Into Me on
, 11 posts
by 9 people.
Answer Snippets (Read the full thread at thebump):
I'm always so skeptical of photographs now!
Also, what....
Some of these are very cool! I love the skirt = tulip one!
I hope they aren't Photoshopped. .
I like the guy with the reefer hat on, and the moon! And the cats made me LOL .
Cool, thank sfor sharing.
|