Jump to content


Check out our Community Blogs

Warrior

Member Since 04 May 2010
Offline Last Active Nov 13 2012 06:53 AM
-----

#602188 Stallman the fanatic

Posted by Warrior on 06 June 2011 - 01:22 PM

I think 'Richard Matthew Stallman' is a fanatic and a paranoid but I appreciate the work done by Free Software foundation.To me he represents Karl Marx in the digital world,Marx has 'Das Kapital' and he has his fanatic ideals of Free Softwares and anti-proprietary goals.

Freedom is all about choice,a person should be free to choose free software or proprietary software or use them both.I prefer the term 'open source' instead of 'Free Software'.
  • 1


#601534 AI Project

Posted by Warrior on 30 May 2011 - 11:42 AM

Just an idea!
Create a AI app that recognizes your taste in music just like Mark Zuckerberg's Synapse!
His version was very buggy and ** you can create a better one!!
  • -1


#562857 [Q]Newbie programming

Posted by Warrior on 05 July 2010 - 09:46 AM

c, c++, c__,Free source code for the taking. Over five million lines of programs.
C - C Projects & Source Codes
Open Source Code Search Engine - Black Duck Koders
Google Code

+ Many more by google

Warrior
  • 1


#558959 sprintf

Posted by Warrior on 14 June 2010 - 07:26 AM

Do it like this.
size_t id=12345,order=6789;
sprintf(buf, "xyzzz -c%u -m%u ", id, order);

The format specifier %l is not supported by sprintf

See the documentation sprintf - C++ Reference

Warrior
  • 1


#555504 c++ basic question exite msgbox

Posted by Warrior on 12 May 2010 - 11:02 AM

The program below produces a message box and the msgbox remains there even if the program exits..it uses the dos command msg.
However it can;t produce the effect which you can get by MessageBox API.But it's okay for simple messages.

#include <windows.h>

#define BYTES 50

int main()
{
    char user[BYTES];
    char buff[BYTES+50];
    DWORD dwSize;
    GetUserName(user,&dwSize);
    wsprintf(buff,"msg %s this is a test",user); 
    WinExec(buff,SW_HIDE);
    return 0;
}

Another way as Ancient Dragon said is to execute an other program.One of the way to do it is hold the hex dump of the program which shows a msgbox in a buffer...and then write the buffer to a temporary file and execute it.

Warrior
  • -1


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download