| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11
Comments:
<0> What would be a good word to describe both, functions and cl***/struct/enum etc. declarations? <0> Or no, not declarations, just the name. <1> entities? <0> ok... if you say so :) <1> i bet the standard might call them something common... maybe not <1> enum is a little stretch <2> identifier? <1> right <0> I'm writing a script that has as input a cvs or svn diff, and outputs the name of the cl*** or function etc, at 'level 0' that has change(s). <1> you could just call them 'objects' <0> I could call it line2entity <3> yay, only 656 build errors to go <1> and in your application domain, 'objects' refers to 'function/cl***/struct/enum' <0> rdragon: my problem here is that I'm not English speaking. You tell me if entity will work. I'd prefer it because 'object' seems to refer to instantiations of cl***es too much, in C++ and stuff. <1> oh <1> yeah, entity would be okay
<1> an entity is just a 'thing' <1> i'm sure it's not what the standard calls all of those things, but I think it would be ok for you to call them that <1> i'm outta here for awhile. seeya <2> the name of a function/cl***/struct/enum/variable is called an identifier, afaik <0> They are indentifiers yes... but so is the name of typedef, or an automatic variable, or a template parameter name. <0> Oh well, it isn't that important. <2> correct <0> Maybe you're right that identifier would be more correct. <0> I think I keep using entity, cause I just wrote a comment like: <0> # A closing brace in column 0 means we left the current entity again. <0> /^};/ { entity = "" } <0> (awk) <4> hey guys, how is it possible for gcc to be written in C? <5> hey guys, anyone around? <6> Yeah. <6> phatlip_ you use other compiler until it's ready to be self-hosted. <5> cool, look I have a really stupid question but it needs answering as I'm a newb to programming. Can I ask it here? <6> Yes, as long is related to our channel <5> yeah it is... <5> started out teaching myself c++ using the Dev-C++ compiler and the old Hello World program. It compiles ok but I'm not sure were I'm to see the output! I have read the Help section on the program and I'm still no clearer, can you offer me any advice? <4> budest: windows? <5> sorry, yeah XP <4> dos prompt then <4> with std::cout << "Hello World" the .exe will bring up a dos prompt. <4> however you want a system("PAUSE"); call at the end otherwise you'll miss it. <5> I noticed a dos prompt appearing, but it just flashes so I don't get a chance to see anything! <4> yeah, you need that pause at the end. <5> oh ok, so do I put that at the end of the code? <7> argh <7> First, there's no DOS prompt in XP. <7> Second, you really don't want a system("PAUSE"); <7> Just run the thing from the console. <8> yeah <8> go with system(argv[0]); instead <8> you'll see a dos prompt then. <8> in fact, many of 'em. <5> I appreciate that but surely it can be shown via a gui rather than dos? <8> yes. if you write a gui, heh. <5> I did some java and vb and was just used to compiling and running and seeing the output displayed in another window of the same program . <8> welcome to C++. <5> So this is the norm and not just me then? <8> C++ is a lot more work than java or vb <5> Yeah kinda gathered that. <5> Well anyway guys, thanks for your time. Might see me back here soon asking more silly questions heh. Don't worry i'm not a nuisance just an alcoholic! <8> same difference <4> cmd prompt / dos prompt - for his purposes the same thing, and easier for him to understand. <5> true phatlip, thanks again <7> geezus <7> Click the Start menu. <7> Click "Run" <7> type "cmd" <7> Click "Ok" or press Enter <7> Voila. Command prompt. <7> cd \whatever\dir\has\your.exe <9> Whoa, slow down Sol. What should I do after clicking "Run"? <7> type "foo.exe" and press Enter. <7> There's your output. <7> No need for a system("PAUSE") <4> Solamente: lol, easier to put the pause then isn't it
<7> No <4> ofcourse it is <7> leave the command prompt open. <7> Compile in the IDE, run it in the prompt. <4> do that step every time you want to test, or use the "build" button in any IDE you're running and an extra line <4> add* an extra line even. <7> Or, even better, download Visual C++ 2005 express, which does the pause for you. <7> http://lab.msdn.microsoft.com/express/visualc/default.aspx <7> Free, to boot. <4> ok, so your solution is to download a bloated IDE rather than add a line? <4> anyway this argument is kinda silly <10> hmm i have window with a menu, how to make a system tray icon and apply the menu to its right click? <8> the tray icon is done with Shell_NotifyIcon, and on right-click, use TrackPopupMenu <11> wouldn't std::cin.ignore(std::numeric_limits<int>::max(), '\n') do the job <1> phatlip_ if you execute your program without the debugger attached in VS, it will wait for a keypress before closing the console window <1> it is a silly argument, because system("pause"); doesn't belong in your application <1> (or however you choose to 'pause') <1> and i'm not sure what 'bloated' means, for an ide... it has more features than you will ever use? well, it wasn't designed for you, it was designed for professional developers <12> I have established a connection to a database with ADO.NET. Does anyone know how can I retrieve the tables collection from the database? <13> I have established a connection to a database with ADO.NET. Does anyone know how can I retrieve the tables collection from the database please? <14> you can use a dataset, or datareader <13> all right, how do I link the dataset to the connection? <4> rdragon: sure it was designed for professionals, so the person in question should haven't to download it for the feature that waits for a key-press at the end of the program. <4> when, a single line would achieve the same end. <15> hey, is anyone familiar with tlhelp32.h? <15> when im trying to bring up the process name, all i can get is the first letter of the executable file. <16> why not just look at argv[0]? <15> me?. <16> yes <15> but i dont accept any parametres in my application when it starts <16> you always get argv[0] <15> what i mean is.. sorry i didnt ask my question very well. umm <16> cout << argv[0] << endl; <15> im trying to get a list of all the processes on my pc at the time, by using Process32First and Process32Next, and using ps.szExeFile to get the file name of the process which is being evaluated <15> like in task manager, under processes. <15> how it has all the executable files which are currently running. <16> oh, no idea then <16> though does sound rather strange that you could get the first letters <15> yeah i know, szExeFile is a pointer to a null terminated string that has the name of the exe file. <15> so i dunno. <16> if you post your code I will take a look, but don't count on much heheh <15> cheers, wont be a sec. <15> done. <16> ah <16> it's probably a wide string <15> yeah i used WCHAR, but. it returned a number value. <15> which is the address i presume. <16> using wcout? <15> nah, just cout. i didnt realise their was a wcout. <15> ill give it a go now. <15> hehe, your a genious <15> :P <15> cheers <16> ;P np <15> lol because even after i checked msdn, their example even displayed the first letter only. so i was thinking.. hmm. <16> well, tchar can be normal char or wide char <16> there should actually be a better way to write it that will handle either <16> but I don't know how off hand <16> (I never had a reason to use wide chars, or tchars for that matter) <15> yeah, i rarely use them <16> well, off to do math homework <15> cheers :) <15> how would i convert a WCHAR to a char or string? <17> with care <15> i see. <18> Use the google, Luke. <19> Are there any good free compilers for windows? <20> visual c++ and gcc come to mind. <14> dev c++ <20> dev c++ is.. meh. <19> visual c++ is not free :) <20> yes it is. <19> Almost makes me wanna get linux :(
Return to
#c++ or Go to some related
logs:
#windows bnc boti javascript return flase
allnitecafe #c++ What season is hail most prevalent in ?
canada28m
recursif chmod for folder uninstall plesk suse #java
|
|