http://www.washingto...2860/cup098.jpg
1129 Replies - 83344 Views - Last Post: 30 January 2017 - 08:42 AM
#347
Re: Ctrl + V dump
Posted 21 July 2009 - 11:23 AM
void SnippetBrowser::on_double_click(wxMouseEvent& evt) {
if(this->HasChildren(this->GetSelection())) { // expand a parent node
if(this->IsExpanded(this->GetSelection())) {
this->Collapse(this->GetSelection());
} else {
this->Expand(this->GetSelection());
}
} else { // nested if later to determine if its online or local
wxString id = wxT("");
vector<snippet>::iterator it;
for(it = this->snippets.begin(); it != this->snippets.end(); ++it) {
if(it->owner == this->GetSelection()) {
id = it->id;
break;
}
}
if(id != wxT("")) { // its a cloud snippet
wxString query = wxT("SELECT title, content FROM snippets WHERE sid = ") + id + wxT(" LIMIT 1");
MYSQL* mysql = ((Interface*)this->i)->mysql;
MYSQL_RES* result;
mysql_query(mysql, query.mb_str());
result = mysql_use_result(mysql);
MYSQL_ROW row;
row = mysql_fetch_row(result);
((Interface*)this->i)->AddPage(wxString(row[0], wxConvUTF8), wxT(""), wxString(row[1], wxConvUTF8));
mysql_free_result(result);
} else { // its local
wxString path = wxT("");
wxTreeItemId path_builder = this->GetSelection();
while(path_builder != this->GetRootItem()) {
path = wxT("/") + this->GetItemText(path_builder) + path;
path_builder = this->GetItemParent(path_builder);
}
path = wxT("./") + path.AfterFirst('/').AfterFirst('/');
((Interface*)this->i)->AddPage(this->GetItemText(this->GetSelection()), path);
}
}
}
Not sure why I had the whole function in my clipboard, but still...
Added code tags for clarity.
#348
Re: Ctrl + V dump
Posted 21 July 2009 - 05:10 PM
Um...
(That's exactly how I had it on my clipboard... quotation marks and all...)
It was a program I wrote in C++, because I'm newb to C++...I was playing with a for loop
Yours,
Shane~
Quote
"It took 285 seconds to count to 900000!"
(That's exactly how I had it on my clipboard... quotation marks and all...)
It was a program I wrote in C++, because I'm newb to C++...I was playing with a for loop
Yours,
Shane~
#350
Re: Ctrl + V dump
Posted 22 July 2009 - 01:57 AM
DO FORM doc_print NAME lfprint NOSHOW
lfprint.Show(1)
off topic:
Takes 0.065 seconds for me, what're you doing?!
lfprint.Show(1)
off topic:
ShaneK, on 21 Jul, 2009 - 11:10 PM, said:
Um...
(That's exactly how I had it on my clipboard... quotation marks and all...)
It was a program I wrote in C++, because I'm newb to C++...I was playing with a for loop
Yours,
Shane~
Quote
"It took 285 seconds to count to 900000!"
(That's exactly how I had it on my clipboard... quotation marks and all...)
It was a program I wrote in C++, because I'm newb to C++...I was playing with a for loop
Yours,
Shane~
Takes 0.065 seconds for me, what're you doing?!
This post has been edited by gabehabe: 22 July 2009 - 01:58 AM
#351
Re: Ctrl + V dump
Posted 22 July 2009 - 12:37 PM
@NeoTifa: Lmao! Do you know how old he was? I'm guess 13-14 lol
Here's what's on my clipboard:
So when's Courtney get back from the dentist?
Here's what's on my clipboard:
So when's Courtney get back from the dentist?
#352
Re: Ctrl + V dump
Posted 22 July 2009 - 12:39 PM
hiButton = new JButton("HI!!!!")
@project he said :
9:46 PM - Dude_OU812: im only 10 bbut i have a heart and soul of a 36 year old
@project he said :
9:46 PM - Dude_OU812: im only 10 bbut i have a heart and soul of a 36 year old
#353
Re: Ctrl + V dump
Posted 22 July 2009 - 12:44 PM
count = 0;
while(count < limit)
cout << (char)(alpha+count++);
while(count < limit)
cout << (char)(alpha+count++);
#354
Re: Ctrl + V dump
Posted 22 July 2009 - 12:45 PM
/msg NickServ ACTIVATE 9527
@Neo you missed a semicolon.
@Neo you missed a semicolon.
This post has been edited by gabehabe: 22 July 2009 - 12:46 PM
#355
Re: Ctrl + V dump
Posted 22 July 2009 - 12:47 PM
I was just throwing together a generic example, Danny. Lol.
#356
Re: Ctrl + V dump
Posted 23 July 2009 - 01:40 AM
<VSContent xmlns="http://schemas.microsoft.com/developer/vscontent/2005"> <Content> <FileName>MyButtonControl.dll</FileName> <DisplayName>My Custom Button</DisplayName> <Description>A control created for this example.</Description> <FileContentType>Toolbox Control</FileContentType> <ContentVersion>2.0</ContentVersion> </Content> </VSContent>
#357
Re: Ctrl + V dump
Posted 23 July 2009 - 01:51 AM
set /P Store1=What do you want your store name to be?:
#358
Re: Ctrl + V dump
Posted 23 July 2009 - 05:52 AM
Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.
Post your code like this:
Thanks.
Post your code like this:

Thanks.
#360
Re: Ctrl + V dump
Posted 24 July 2009 - 03:43 AM
http://homies.x10hosting.com/images/
Um, you might not wanna go to that lol...
I rick roll people snooping around my open directories. (And showed that to a friend not too long ago
)
Yours,
Shane~
Um, you might not wanna go to that lol...
I rick roll people snooping around my open directories. (And showed that to a friend not too long ago
Yours,
Shane~
This post has been edited by ShaneK: 24 July 2009 - 03:46 AM

New Topic/Question


MultiQuote










|