2,839 Posted Topics

Member Avatar for Nick Evan

Is there a way to stop a piece of text from getting parsed? With BBCode we used to have [noparse] tags?

Member Avatar for deceptikon
0
233
Member Avatar for sidra 100

from MSDN: [code] #include <windows.h> void clrscr(void) { COORD coordScreen = { 0, 0 }; DWORD cCharsWritten; CONSOLE_SCREEN_BUFFER_INFO csbi; DWORD dwConSize; HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE); GetConsoleScreenBufferInfo(hConsole, &csbi); dwConSize = csbi.dwSize.X * csbi.dwSize.Y; FillConsoleOutputCharacter(hConsole, TEXT(' '), dwConSize, coordScreen, &cCharsWritten); GetConsoleScreenBufferInfo(hConsole, &csbi); FillConsoleOutputAttribute(hConsole, csbi.wAttributes, dwConSize, coordScreen, &cCharsWritten); SetConsoleCursorPosition(hConsole, coordScreen); }[/code] Windows only …

Member Avatar for adityatandon
0
214
Member Avatar for Chaky

> my answer to "What kind of device is IPad?" was "Crappy". The real question should be: "[Will it blend?](http://www.youtube.com/watch?v=lAl28d6tbko)"

Member Avatar for dan2see
1
268
Member Avatar for citizen5

WriteProcessMemory expects a `void*` as buffer, but you're using a std::string. So perhaps something like : const_cast<char*>(value.c_str()) (untested) But what on earth are you trying to do?

Member Avatar for citizen5
0
515
Member Avatar for rafaquatbutt

In addition to what Phillamon already pointed out; this snippet is hooribly broken and very poorly formatted. You would be wise not to use it. Start by showing us what you have so far and we'll see how we can help.

Member Avatar for PrimePackster
0
325
Member Avatar for MrEARTHSHAcKER

Maybe you can supply some addtional information. Why are you trying to do this? Are you perhaps thinking of making a game?

Member Avatar for triumphost
0
331
Member Avatar for dark_sider_1

Here's a bug that looks related http://public.kitware.com/Bug/view.php?id=12332

Member Avatar for dark_sider_1
0
599
Member Avatar for lewashby

Or better yet, use something standard and not OS-specific like: std::cin.get();

Member Avatar for Nick Evan
0
248
Member Avatar for The Dude
Member Avatar for Kewne
0
317
Member Avatar for eagle_phoenix2

You probably need to add your library directories to your PATH variable in the enviroment-settings. Why do you want to this if I may ask?

Member Avatar for eagle_phoenix2
0
703
Member Avatar for Clinton Portis
Member Avatar for JorgeM

>It should be super super easy though to vote without rep. Just one click. It is. However giving rep is another story. It took me a few days to figure out that "vote and comment" is a button :-/

Member Avatar for JorgeM
0
499
Member Avatar for Dani

Maybe add the keyboard-shortcut as a mouseover on the buttons in the editor?

Member Avatar for Airshow
3
278
Member Avatar for WaltP

> The NEW/Target Icon needs to jump to first unread post. The technique with the current setup is > a- click on the message title > b- click on the LAST page if necessary > c- try to remember what message was last seen and/or how long ago the thead …

Member Avatar for Airshow
1
246
Member Avatar for Begginnerdev

> OK, the formatting tutorial has been written!! Yay! If you're referring to : http://www.daniweb.com/community/syntax ; that page isn't rendering properly for me. Bold text looks like normal text, headings and sub-heading look like normal text and there's no syntax-highlighting at all?

Member Avatar for Dani
0
295
Member Avatar for triumphost
Member Avatar for Rasool Ahmed
Member Avatar for Philippe.Lahaie

>but where did the Ignore list go >I suppose as a mod ... As a mod, your ignore-button now reads "perma-ban" ;)

Member Avatar for Dani
0
254
Member Avatar for ~s.o.s~
Member Avatar for Tygawr

> I, personally, would create another function and pass both the pointer to the original string, a desired starting point and a desired length (just like the parameters of a substring function) and return a result that is the array of characters between the start value and the requested length. …

Member Avatar for WaltP
0
284
Member Avatar for cryonize

You're using `new` with `free`, which is a no-no. New-delete or malloc-free. At first glance it also appears that your code is over complicated. Why are you creating so much temporary objects when you're just going to delete them 3 lines later? Swapping pointers will do just fine.

Member Avatar for Nick Evan
0
592
Member Avatar for jhdobbins

It's been six years, so I don't think the OP is interested anymore. Also, your code contains huge memory-leaks. If you use `new` you should `delete` your memory afterwards.

Member Avatar for Nick Evan
0
474
Member Avatar for Reverend Jim

You could always add your name in the search? If I wanted to find my own snippet, I would use google.com with [icode]site:daniweb.com "wxwidgets" "C++" "Nick Evan"[/icode] and voila: it's the [URL="https://www.google.com/#hl=en&safe=off&output=search&sclient=psy-ab&q=site%3Adaniweb.com+%22wxwidgets%22+%22C%2B%2B%22+%22Nick+Evan%22&oq=site:daniweb.com+%22wxwidgets%22+%22C%2B%2B%22+%22Nick+Evan%22&aq=f&aqi=&aql=&gs_sm=3&gs_upl=564l16569l0l18409l52l44l3l0l0l0l197l2564l38.6l50l0&gs_l=hp.3...564l16569l0l18409l52l44l3l0l0l0l197l2564l38j6l50l0&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.,cf.osb&fp=9d96a46e28b6b4bc&biw=1280&bih=670"]first hit[/URL].

Member Avatar for jbennet
2
312
Member Avatar for MandrewP

Use AD's advice for now; but new Daniweb will support the preservation of whitepaces.

Member Avatar for Nick Evan
0
108
Member Avatar for nizbit

To be honest, I didn't test Ancient's example, so it might work very good (although I see a small syntax error in it ;) ). But I also see that you [ICODE]#include <string>[/ICODE], so you are aware that C++ has a few nice tricks up it sleeve that C didn't …

Member Avatar for WytCZ
0
1K
Member Avatar for shankhs

Here's a slightly modded version to make things clearer: [code=cpp] #include<iostream> #include<string> using namespace std; void rev_str(string str,int n) { if (n != str.size()) { rev_str(str,++n); cout << "n=" << n << " str[n-1]=" << str[n - 1] << "\n"; } } int main() { string str="shankhs"; rev_str(str,0); cin.get(); return …

Member Avatar for venugopal.somu
0
504
Member Avatar for ejohns85

try: [code] while (true) { image= cvQueryFrame(capture); cvShowImage("Window", image); }[/code]

Member Avatar for josephbeluan
0
498
Member Avatar for eve_moore
Member Avatar for Aniqa Shaikh

This code won't work. The very first line is already wrong: [icode]#include<iostream.h>[/icode]. Any compiler from the last decade will tell you "include file not found". At that's just the first of many problems with standard-C++ in your code.

Member Avatar for sameershah21
1
673
Member Avatar for AndreRet

In the meantime: Could you post the link to the thread you're trying to report?

Member Avatar for AndreRet
0
192
Member Avatar for thecoolman5

and/or [URL="http://www.cplusplus.com/reference/clibrary/cctype/isdigit/"]isdigit()[/URL]

Member Avatar for thecoolman5
0
634
Member Avatar for vivekpriyadarsh

Wow.. This guy is really unbelievable. Normally we only get "help me cheat my asssigment" people. Now we have a "help me cheat my way through this entire class" person and that's a first if you ask me.

Member Avatar for WaltP
-4
210
Member Avatar for happygeek

[QUOTE=cwarn23;1702416]Could somebody please review my previous comment and perhaps put it forward as a part of the system?[/QUOTE] Have patience. We're quite busy at the moment.

Member Avatar for Dani
2
1K
Member Avatar for Catweazle
Member Avatar for unk45

[QUOTE=unk45;701127]yeah i cant use vectors cuz i never learnt how do it[/QUOTE] Why not [URL="http://www.codeguru.com/cpp/cpp/cpp_mfc/stl/article.php/c4027/"]learn [/URL]them now?

Member Avatar for Rabia_Akhlaq
0
304
Member Avatar for apines

Excellent post. Since we're receiving a lot of question about Big-O, I've decided to make this post a "sticky" in the CS-forum. So this means that all future replies to this thread [U]must be on-topic[/U]. Do not post your support question in this thread, but start a new thread for …

Member Avatar for Rashakil Fol
13
1K
Member Avatar for oades11
Member Avatar for Akusa
Member Avatar for Schol-R-LEA
0
429
Member Avatar for jeffcogswell

Sounds great. Now lets hope it works equally well for C++, since I don't know any Java, but use Netbeans for C++ on Linux :)

Member Avatar for cyvre
3
390
Member Avatar for Netcode
Member Avatar for Ancient Dragon

[QUOTE=cscgal]It means the web servers are out of sync. I'll reach out to blud.[/QUOTE] It's either that or the space-time continuum was distorted in the serverroom or AD's living room.

Member Avatar for Dani
0
133
Member Avatar for resell4

Bill Gates money: [attach]22940[/attach] Michael Jordan: [attach]22938[/attach] I don't see any resemblance.

Member Avatar for Netcode
0
328
Member Avatar for Dani

I would tempted if it was in Britain. My work unfortunately doesn't allow me to fly half way across the world for a party :)

Member Avatar for nalini@121
4
419
Member Avatar for diafol

>> I'm still logged in. Can't seem to log out I have the same problem on Ubuntu + FF. What OS and browser are you using?

Member Avatar for diafol
0
235
Member Avatar for SeasideP

However because I was in a good mood, I edited your post and removed your real name from it. But the rest of the post will stay as explained by Happygeek

Member Avatar for Nick Evan
0
135
Member Avatar for diafol
Member Avatar for PrimePackster

Among a lot of other problems this curly bracket on line 27 is misplaced. You should probably place it [I]after[/I] the statement, instead of in front of it.

Member Avatar for Fbody
0
357
Member Avatar for Hinnawi

I thought the general idea with Apple was that it doesn't matter [I]what [/I]is does; as long as it looks damn good doing it ;)

Member Avatar for NicAx64
0
325
Member Avatar for diafol
Member Avatar for mjmythili

Here's a [URL="http://www.daniweb.com/techtalkforums/thread63827.html"]link [/URL]for you

Member Avatar for alanlawson123
0
123

The End.