Isn't
A a = new A(); // A is a class name
supposed to work in C++?
I am getting:
conversion from 'A*' to non-scalar
type 'A' requested
Whats wrong with that line of code?
this is a follow on from this question and the link given it seems that when an app is updated all of the files in the documents directory are copied into the updated apps documents directory and also anything in Library/Preferences. Whats the best way to simulate this for testing purposes?
Just copy the files in ApplicationSupport/iPhone Simulator etc? or has anyone developped any funky techniques for testing this.
I'm looking into creating a GUI program for Windows in C++, I have a good knowledge of C++ in the command line and also in game creation. But I'm not sure where to start with GUI application development.
I have Visual Studio 2010 and have created new projects with a GUI but these templates are complex and leaves me not understanding whats happening and how to modify it.
So I'm asking where do I start? Preferably good websites that you can recommend or tutorials, rather than books being a poor student :)
Hey,
im using a connection to a server in my php script, opened with fsockopen() and i want it to share between different pages so i serialized it and saved it in a session variable but it seems that that ia a bad idea because when i do this nothing happens...
Not even an error.
The problem is that this connection requires a handshake so i cant reconnect everytime
Another question, whats the timeout of fsockopen or does the connection stay alive if the. original php script which called it is closed?
I want to send a mail from localhost. I am using XAMPP to develop my php app.I found in google that I have to modify php.ini file, localhost must be replaced by server name of my ISP.Whats that???
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25
what is javafx? where we can use it? whats its advantage and disadvantage over the javascript and php? i want to make project by using the javafx where can i use it in project pls describe it. thanx
If I'm using a canvas to display data and I want the user to be able to click on various items on the canvas in order to get more information or interact with it in some way, whats the best way of going about this?
Searching online I can find information about how to bind events to tags but that seems to be more indirect then what I want. I don't want to group items with tags, but rather have specific function calls when the user clicks specific items on the canvas.
I am trying to get the src of all of the images in a page. But some pages use absolute paths and some do not. So I am wondering whats the best way to do this?
right now I am using this.
$imgsrc_regex = '#<\s*img [^\>]*src\s*=\s*(["\'])(.*?)\1#im';
preg_match_all($imgsrc_regex, $html, $matches);
In a twitter RSS feed the pubDate is published as
Sat, Jun 5, 2010 19:20
Using PHP, whats the best way to convert this into the time lasped since published. For eaxmple,
posted 4 minutes ago
posted 1 hour ago
posted 4 hours ago
posted 1 day ago
posted 2 days ago
posted 1 month ago
posted 2 months ago
You help much appreciated
HI
I like to know why there are two Date classes in two different packages one in java.util.Date and one in java.sql.Date?
Whats the use of having two Date classes?
Hi,
Please let me know whats the difference between a C++ structure and a C++ class apart from access specifier. I have seen inheritence , polymorphism in C++ structure?
I want to create a link like the following:
http://www.myurl.com/?IDHERE
What i want to be able to do is be able to goto the above link, and then pull whats after the ? (in this case IDHERE) and be able to use that information to perform a MySQL lookup and return a page.
Can anyone point me into the right direction? please know this is using PHP not ASP
The user will have a static list of items to choose from. Using a Picker View they will choose one of the items and then select how many of them they want.
Whats the best way to save this in core data? A Struct?
struct order {
NSInteger item;
NSInteger numberOf;
};
Or some sort of relationship?
Many Thanks
A client has asked me about building an iphone app that can take restaurant orders.
I have the resources to get this app done, but I had a few questions.
*Will this app require a portion of the sale to go to apple (if so how much?)
*Whats the best way to integrate a payment portal to this?
*Will I have to/should I have someone authorize the payments?
Thanks, All feedback is appreciated.
hi
Toyota
1999
Honda
2010
i want to extract car object from the above code whats the possible way. can i have the sample code or any example
thanks in advance
I've a dump file of a process I'm running (trying to find a memory leak)
One thing I've noticed is that when I dump the bigger objects via !do windbg tells me that they are GC generation 3 ??
All of these are byte arrays so when I look at all the byte arrays in the dump I can see GC generations 0, 1, 2 & 3.
Could someone explain whats going on here as I thought there was only 3 generations of GC.
hey folks
i am coding opera recovery tool in my delphi
i am using c++ which is already exist
http://pastebin.com/ViPf0yn6
but i didnt get whats DES_KEY_SZ in that code .
i think they are present in des.h ,but i couldnt found same des.pas :(
can any one help me please
regards
HI,
In singleton class we are declaring constructors as private. Is it possible to give as protected.
If giving as protected is it beneficial.
Whats the advantage or disadvantage of private over protected
On login:
$result = mysql_query("SELECT `id`, `username`, `email` FROM `users`
WHERE `username` = '$username'
AND `password` = '$passwd'");
$userdata = array('id','username','email');
$_SESSION['user'] = mysql_result($result, 0, $userdata);
And when i want to print the users username
echo $_SESSION['user']['username']
it only prints the first letter :/
whats wrong`?
Im trying to get the redirect link from a site by using curl -I then grep to "location" and then sed out the location text so that I am left with the URL.
But this doesn't work, it will outputs the URL to screen and doesn't put it
test=$(curl -I "http://www.redirectURL.com/" 2> /dev/null | grep "location" | sed -E 's/location:[ ]+//g')
echo "1..$test..2"
Which then outputs:
..2http://www.newURLfromRedirect.com/bla
Whats going on?
When i dump a table with uppercase letters using mysqldump it comes out as lower case in my dump.sql file. I found a report here in 2006, almost 4 years old http://bugs.mysql.com/bug.php?id=19967
A solution here suggest making linux insensitive. I rather not if possible. Whats the easiest way to copy a win32 db into linux?
I want to create a link like the following:
http://www.myurl.com/?IDHERE
What i want to be able to do is be able to goto the above link, and then pull whats after the ? (in this case IDHERE) and be able to use that information to perform a MySQL lookup and return a page.
Can anyone point me into the right direction? please know this is using PHP not ASP
While reading a file I get broken UTF-8 String error whenever I have the following in my file
través
if I change it to normal e then it works.
Whats the way to fix this?
error only happens if I do line.lstrp or any other function. Just printing the lines is ok.
problem even happens when I try to match the string with regex.