Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Munchor

Pages: 1 ... 104 105 [106] 107 108 ... 424
1576
Computer Programming / Re: Opening a Website from C++
« on: May 14, 2011, 06:44:19 pm »
Thanks a lot jimbauwen :D I'll find the shell executing code for C++ (os.system() is Python :P))

1577
Computer Programming / Re: Opening a Website from C++
« on: May 14, 2011, 06:27:47 pm »
Well I really need a Linux one then because the Windows one is easily found with Google. Who knows how to or had better success searching?

1578
Computer Programming / Re: Opening a Website from C++
« on: May 14, 2011, 05:15:51 pm »
I guess I'll check that later, it's not a priority at the moment, but I hope there's a library or something.

Anybody has had to do this before?

1579
Computer Programming / Re: Opening a Website from C++
« on: May 14, 2011, 04:56:45 pm »
Maybe it's the easyest to detect the platform, and make a function for every platform

Well, there are lots of platforms (Windows, Linux, Mac, Solaris) and I hope there's a way to do this.

In Python, webbrowser.open("url") will open in the default browser on any platform so I guess there is a way to do that in C/C++.

1580
News / Re: OS 3.0.1 back online... what about 3.0.2?
« on: May 14, 2011, 03:00:06 pm »
Hum, so they haven't fixed any bugs? This is not so good :(

I just hope nobody tries to install it with TNOC.

Thanks for reminding DJ.

1581
Computer Programming / Opening a Website from C++
« on: May 14, 2011, 02:57:47 pm »
I was wondering how you open a website in C++. I need it to be cross-platform, no "windows.h" please.

Thanks :)

1582
General Calculator Help / Re: Calculator headphones
« on: May 14, 2011, 01:06:07 pm »
thepenguin77's application zStart has a function that enables headphones to be plugged into the calculator and have the calculator run normally :)

Oh my that's great, thanks a lot :D

1583
TI Z80 / Re: Axe parser game
« on: May 14, 2011, 06:48:33 am »
I'd suggest that you create topics for your games/calculator programs here.

1584
News / Re: Netham45 introduces OmnomIRC v2 BETA
« on: May 14, 2011, 04:35:52 am »
Yeah this is looking great, the logo too :D (IN LOBSTERS WE TRUST).

I tried it and it also looks much, but much faster. I am anxious for nickname completion :D

1585
ASM / Re: David's Z80 Assembly Questions
« on: May 14, 2011, 04:30:09 am »
Here's what I did:

Code: [Select]
Start:
  B_CALL (_ClrLCDFull)
Loop:
  B_CALL (_GetKey)
  cp kClear
  jr z,End
  kr Loop
End:
  ret

So this will wait a for a [CLEAR] press and then close the loop.

I tried changing it to this:

Code: [Select]
Start:
  B_CALL (_ClrLCDFull)
Loop:
  B_CALL (_GetCSC)          ;The change is done here
  cp kClear
  jr z,End
  kr Loop
End:
  ret

And it freezes the calculator. Am I not using GetCSC the right way?

1586
Axe / Re: Axe Q&A
« on: May 14, 2011, 04:26:47 am »
Press [2ND] and then [PRGM] and then press [KEY_UP] and that's the Text( you need :)

1587
Computer Programming / Re: C++ wxWidgets Text Editor
« on: May 14, 2011, 04:21:59 am »
Actually, I don't think /usr/bin exists in Windows for software, or does it?

1588
Computer Programming / Re: C++ wxWidgets Text Editor
« on: May 13, 2011, 05:30:01 pm »
Hum, that sounds too complicated, here's my option:

Code: [Select]
g++ helloworldgui.cpp `wx-config --cxxflags` `wx-config --libs`
./a.out

Save it as compile.sh or whatever and build+run by doing sh compile.sh.

But I guess that has more options, but for developing it, I used this.

1589
Site Feedback and Questions / Re: Appeal: tweet #omnimaga
« on: May 13, 2011, 05:22:28 pm »
#omnimaga does nothing :P

EDIT: no I'm sorry my bad -- it DOES do something, just not the same as #cemetech

I hope that is changed soon, I'd like the same thing to happen. I think it is a good idea.

1590
Computer Programming / C++ wxWidgets Text Editor
« on: May 13, 2011, 05:06:07 pm »
I was trying to make a text editor in C++ but I found no tutorials on the web. So I had to do some research on a few stuff to put it up and running. It is very simple, it is more of an example and has no Save/Open options, maybe I'll add those later.

If you want the full code you can find it here. In case you want a screenshot of it, here's one taken in Linux Mint (it is cross-platform don't worry)

Spoiler For Spoiler:


Here's the main part of the program, commented:

Code: [Select]
wxTextCtrl *textControl = new wxTextCtrl;                                  //Define the new textCtrl
   
    textControl = new wxTextCtrl(this, ID_TextBox,
      wxT(""), wxDefaultPosition, wxDefaultSize,
      wxTE_MULTILINE | wxTE_RICH , wxDefaultValidator, wxTextCtrlNameStr); //Creates a text box, with no text, id=ID_TextBox, it's multiline
     
    wxMenu *menuFile = new wxMenu;                                         //Create a new menu to be placed on a menu bar

    menuFile->Append( ID_About, _("&About...") );                          //Add the first option to the menu (will show up on top)
    menuFile->AppendSeparator();                                           //Add a separator, this is handy
    menuFile->Append( ID_Quit, _("E&xit") );                               //Add an option to the menu

    wxMenuBar *menuBar = new wxMenuBar;                                    //Create a new menu bar
    menuBar->Append( menuFile, _("&File") );                               //Append the file menu

    SetMenuBar( menuBar );                                                 //Defines the window menu bar to menuBar
   
    Maximize();                                                            //Maximizes the window

Attached is the source file.

Pages: 1 ... 104 105 [106] 107 108 ... 424