|
Hello all,
Suppose I have a workspace with 50 files in it, and I want to print all of them. I couldn't find any 'Print All' option in the File Menu.
|
|
|
|
|
VC's IDE does not have such a feature. You'll need to use another text editor for printing multiple files.
|
|
|
|
|
Just out of curiosity, does VS .NET have this feature?
|
|
|
|
|
I've not used it so I can't say.
|
|
|
|
|
|
hi Makeover,
.NET does not have this feature.
mahes
|
|
|
|
|
Hi there, I think I need a little help with include files. Let's say I've 4 files: foo.h, foo.cpp, yak.h, yak.cpp.
foo.h has to include yak.h in order to use the classes it has. However yak.h needs a class from foo.h, let's say class bar. If I include foo.h in yak.h everything gets messed up. Can I do sth else? Can extern help me, if yes, how?
Thankx, Themis
|
|
|
|
|
well i usually get around this but not using those classes in my header file except for pointers ( i.e pointer parameters and member variables ) If you do that than all you need to do is include a class prototype for the object you are going to be using at the top of the file. If you a non-pointer variable you must use the header file because it will try to construct the object and hence require knowledge of the implementation.
Joseph Dempsey
joseph_r_dempsey@yahoo.com
"Software Engineering is a race between the programmers, trying to make bigger and better fool-proof software, and the universe trying to make bigger fools. So far the Universe in winning."
--anonymous
|
|
|
|
|
I have array of characters.I want to send it as a parameters to other function and this character may contain '0',when I do it like the code below,it only pass up to '0' character.
char c[1000];
for(int i ; i<1000; i++)
c[i] =value;
myfunc(c);
Before the last line it containcorrect value,but in myfunc() it contain only value up to '0' value.So how can I pass it correctly?
Mazy
No sig. available now.
|
|
|
|
|
What is the parameter definition of myfunc()? Does it accept a pointer to char?
myfunc(char *);
Kuphryn
|
|
|
|
|
kuphryn wrote:
What is the parameter definition of myfunc()? Does it accept a pointer to char?
myfunc(char *);
myfunc(const char szbody[]);
Mazy
No sig. available now.
|
|
|
|
|
What is the starting value for i? Hint: it ain't 0!
|
|
|
|
|
DavidCrow wrote:
What is the starting value for i? Hint: it ain't 0!
Its 0. Its just miss-typing.
Mazy
No sig. available now.
|
|
|
|
|
Miss-typing and omission are two different things:
char c[1000];
for(int i = 0; i<1000; i++)
c[i] =value;
myfunc(c);
|
|
|
|
|
maybe the problem is the declaration of myfunc(), your upper code seems alright to me...
is the declaration
myfunc(char* c) ????
is the argument a pointer?
greets,
jason
|
|
|
|
|
jason99 wrote:
is the argument a pointer?
As I said before, NO.
Mazy
No sig. available now.
|
|
|
|
|
Since arrays decay immediately into pointers, an array is never actually passed to a function. Allowing pointer parameters to be declared as arrays is a simply a way of making it look as though the array was being passed.
Therefore, any parameter declarations which "look like" arrays, e.g.
f( char a[])
{ ... }
are treated by the compiler as if they were pointers, since that is what the function will receive if an array is passed:
f( char *a)
{ ... }
This conversion holds only within function formal parameter declarations, nowhere else. If the conversion bothers you, avoid it.
|
|
|
|
|
try this:
BYTE c[1000];
for (int i=0; i<1000; i++)
c[i] = value;
myfunc(c, 1000);
and here is the definition of myfunc:
void myfunc(BYTE* p, int iLen);
|
|
|
|
|
Hi,
I'd like to use the VC IDE also with a non-MFC project.
Can I create a simple project which:
- runs a 'buildall.pl' script when I click on build icon (all dependency checking etc is done
from the build script itself).
- runs 'application.exe' when I click on run icon?
Thanks for help,
Moak
|
|
|
|
|
Anonymous wrote:
- runs a 'buildall.pl' script when I click on build icon
Yes, the IDE can perform both pre-link and post-build operations.
- runs 'application.exe' when I click on run icon?
Assuming your project is named 'application', then clicking the Run button will execute it.
|
|
|
|
|
DavidCrow wrote:
Yes, the IDE can perform both pre-link and post-build operations.
I wonder how? Do I need to create a specific project type, at which position would I enter my build script path?
Thanks, Moak
|
|
|
|
|
On the Project Settings (Alt+F7) dialog, you will see a Pre-link and a Post-build tab.
|
|
|
|
|
I only see a post-build step in the current settings (I have choosen a "tool project"). Entering a path in there has no effect for the 'build' button.
I guess, I have to choose a different type of project - anzthing you recommend?
Thanks again, Moak
|
|
|
|
|
I'm not familar with a "tool project." I do not see such an option in the Projects list.
|
|
|
|
|
Sorry, it was a "Utility project".
I tried a "Makefile" now, which let me specify everything I want. Well, basically it works, just the python-script has some problems being called from VC6. I post a new thread.
Thanks so far, Moak
|
|
|
|