473,396 Members | 1,703 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

I got working variables but I can't find theirs declarations all over my project. Any advice?

Hi!

I am modifying some part of source code and I now I am suspended by
one thing I really don't understand and I got no one experience with
it. I got fully working source code (it reports no one error when
compile). The problem is that there are some variables used as
arguments for some functions but they are NOT declared. I was trying
to find theirs declarations but I didn't find them. I even tried to
find theirs assignments but I couldn't find them neither. Are they
declared somewhere inside in VC? Will give me an advice where else
should I search? I've got already researched all my .cpp and .h files
in my project.

Thanks for any help in advance.

Regards MIUSS!

Apr 11 '07 #1
3 1927
On 11 Apr, 08:18, "MIUSS" <m...@seznam.czwrote:
Hi!

I am modifying some part of source code and I now I am suspended by
one thing I really don't understand and I got no one experience with
it. I got fully working source code (it reports no one error when
compile). The problem is that there are some variables used as
arguments for some functions but they are NOT declared. I was trying
to find theirs declarations but I didn't find them. I even tried to
find theirs assignments but I couldn't find them neither. Are they
declared somewhere inside in VC? Will give me an advice where else
should I search? I've got already researched all my .cpp and .h files
in my project.
Perhaps they are some global variables that comes with some library
used (it's a bad idea but I'd bet there are some people who've done
it). What's the name of those variables? Do you have any 'using
namespace' statements in your code? Since you are using VC have you
tried right-clicking on the variables and Go To Definition/Go To
Declaration?

--
Erik Wikström

Apr 11 '07 #2

Erik Wikström napsal:
On 11 Apr, 08:18, "MIUSS" <m...@seznam.czwrote:
Hi!

I am modifying some part of source code and I now I am suspended by
one thing I really don't understand and I got no one experience with
it. I got fully working source code (it reports no one error when
compile). The problem is that there are some variables used as
arguments for some functions but they are NOT declared. I was trying
to find theirs declarations but I didn't find them. I even tried to
find theirs assignments but I couldn't find them neither. Are they
declared somewhere inside in VC? Will give me an advice where else
should I search? I've got already researched all my .cpp and .h files
in my project.

Perhaps they are some global variables that comes with some library
used (it's a bad idea but I'd bet there are some people who've done
it). What's the name of those variables? Do you have any 'using
namespace' statements in your code? Since you are using VC have you
tried right-clicking on the variables and Go To Definition/Go To
Declaration?

--
Erik Wikström
Men, thanks a lot! Your help allow me to continue:-) I'm fool!
Everytime I needed to look at the definitions I used that search
dialog on VC and now I can see I could do that so easiest! Please
don't laugh:))) I'm beginner.

Besides that, there's one strange thing. The name of one of those
variables is CLSID_ImagingFactory. Well, I used your advice and went
to definition by right click on that variable and then I was in the
header file named imgguids.h which is out of my project. I only don't
understand how is it possible that the output didn't report me any
error although I got this header file included nowhere in my .cpp
or .h files. That is also why I couldn't find that declaration by
search with VC's searching dialog. But don't care about that. Now I
know what to do next.

Thank you very much and have a nice day:-)

Apr 11 '07 #3
On 11 Apr, 10:33, "MIUSS" <m...@seznam.czwrote:
Erik Wikström napsal:
On 11 Apr, 08:18, "MIUSS" <m...@seznam.czwrote:
Hi!
I am modifying some part of source code and I now I am suspended by
one thing I really don't understand and I got no one experience with
it. I got fully working source code (it reports no one error when
compile). The problem is that there are some variables used as
arguments for some functions but they are NOT declared. I was trying
to find theirs declarations but I didn't find them. I even tried to
find theirs assignments but I couldn't find them neither. Are they
declared somewhere inside in VC? Will give me an advice where else
should I search? I've got already researched all my .cpp and .h files
in my project.
Perhaps they are some global variables that comes with some library
used (it's a bad idea but I'd bet there are some people who've done
it). What's the name of those variables? Do you have any 'using
namespace' statements in your code? Since you are using VC have you
tried right-clicking on the variables and Go To Definition/Go To
Declaration?
--
Erik Wikström

Men, thanks a lot! Your help allow me to continue:-) I'm fool!
Everytime I needed to look at the definitions I used that search
dialog on VC and now I can see I could do that so easiest! Please
don't laugh:))) I'm beginner.

Besides that, there's one strange thing. The name of one of those
variables is CLSID_ImagingFactory. Well, I used your advice and went
to definition by right click on that variable and then I was in the
header file named imgguids.h which is out of my project. I only don't
understand how is it possible that the output didn't report me any
error although I got this header file included nowhere in my .cpp
or .h files. That is also why I couldn't find that declaration by
search with VC's searching dialog. But don't care about that. Now I
know what to do next.
It's probably indirectly included by some file you do include.

--
Erik Wikström

Apr 11 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Prosonman | last post by:
Hi, What is the best way to transfer variables to and from a dialog box? My project consists of a form with a number of controls, lets say three Labels, when a label is clicked it opens a dialog...
10
by: Kleenex | last post by:
Reason: I am working on an embedded project which has very limited memory (under 512 bytes, 60 or so of which is stack space), which translates into limited stack space. In order to save on stack...
2
by: Rob Meade | last post by:
Hi all, New to .Net - still finding my feet...quick question... In one of my functions I have about a dozen variables being declared at the top - the first thing within the function, about 2...
17
by: Woody Splawn | last post by:
I am finding that time after time I have instances where I need to access information in a variable that is public. At the same time, the books I read say that one should not use public variables...
3
by: pauldepstein | last post by:
Sorry in advance if this message sounds imprecise but it's difficult to be precise when you don't really understand what's going on. I have a class called Parameters. The default constructor...
12
by: fox | last post by:
How do I (portably) make a forward reference to a static (I mean file-scope) variable? I've been using "extern" for years, for example: extern int x; int foo(void) { return x++; }
19
by: felixnielsen | last post by:
Some might remember that i, not so long ago, started a treath or two about a weird 3d labyrinth. I now have a working code, that i want to share, hear comments, advice, ect., but first let me...
114
by: Jonathan Wood | last post by:
I was just wondering what naming convention most of you use for class variables. Underscore, "m_" prefix, camel case, capitalized, etc? Has one style emerged as the most popular? Thanks for...
28
by: sowmiyakc18 | last post by:
Please clear my doubt. When do we declare a variable to be a register variable? What is its significance? What are the conditions to be adhered to when register variables are passed between...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.