|
This means that you have a statement of the form:
extern "C" <some type> VERSION;
and a reference to the variable VERSION somewhere in your final program. However, if this is not anywhere in your source modules it could possibly be in an associated library, so you may need to check what external libraries are being added to your program.
You could also try the /MAP and/or /VERBOSE linker options to see if you can narrow it down to the actual module where it occurs.
The best things in life are not things.
|
|
|
|
|
good tip about the linker options to play with... 
|
|
|
|
|
One of the most common questions I ask myself is: "What tools can I use to help me find this bug in my code?"
The best things in life are not things.
|
|
|
|
|
Hi all,
I have made a Dialog box on which i have made a Static control. My problem is when text displayed in static control is long then it is not displayed.
I want, text to come in next line if static box length is short.
Can anybody help me in this.
Thanks in advance
|
|
|
|
|
IIRC, there's a 256 character limit, if you're loading the text from the resource file. (MSDN)[^]
have you tried setting the text from code?
|
|
|
|
|
The first thing to do is go and read the MSDN documentation for the control you are interested in; that would lead you to this page[^]. Scroll down until you reach the table entry for SS_EDITCONTROL , and you have a potential solution.
The best things in life are not things.
|
|
|
|
|
If you call Create() directly there's usually options for clipping and/or going to the next line. Usually if you have too long of a line it gets clipped automatically but it should still display something.
|
|
|
|
|
Also, make sure you actually have set the hight of the static control correctly, as there is no automatic expansion of its borders, or flow layout using HTML speak, if the text does not fit vertically.
|
|
|
|
|
Good point, this is the only way I can see that absolutely nothing would get displayed.
|
|
|
|
|
Hello group.
i have a very large c program with several hundreds of structures. is there is a tool which could detect bad structure padding.
Thanks & Regards
Prasun
|
|
|
|
|
Member 4686590 wrote: Hello group. i have a very large c program with several hundreds of
structures. is there is a tool which could detect bad structure
padding. Thanks & Regards Prasun
I think No.
Which editor are you using to code your C program? I'm using Visual Studio 2008 IDE. In that I've to select the block I want to format(by pressing SHIFT+ARROWKEY or using mouse),and then press CTRL+F to format.
|
|
|
|
|
He was not talking about indentation, but about this[^]
|
|
|
|
|
I don't know, but Lint[^] comes to mind when dealing with static code analyses. Don't know if it can handle inefficient member alignment though. There is also a code analyzer in VS2010 if you have Ultimate edition.
You might end up in trouble trying to optimize for space like this, if the order of the members is used in any way in the program. Some C (and C++) programmers tend to take shortcuts once in awhile.
Just a word of warning.
|
|
|
|
|
|
What do you mean by "bad"?
|
|
|
|
|
i want draw lines on desktop.not on bitmap
can you help me?
|
|
|
|
|
You probably need to start here[^].
The best things in life are not things.
|
|
|
|
|
ok thanks....i had HWND của desktop window...
and then...may i paint on it?
|
|
|
|
|
I guess so; what happens when you try?
The best things in life are not things.
|
|
|
|
|
|
i try ... tk so much 
|
|
|
|
|
no prob... good luck n happy coding! 
|
|
|
|
|
Hi all,
When i insert 50000 item in my list, my application memory starts increasing.
Can anybody please tell me that why this is happening and what can i do remove this problem.
Thanks in advance
modified on Thursday, June 16, 2011 4:00 AM
|
|
|
|
|
Your memory will obvouisly grow when working with data since all this memory is most likely read into the memory, so nothing strange there in my opinion. However you are loading 50.000! items in a list and that is a bad practise for several reasons:
1) Performance, it slows down the application because it has to load 50000 items at once
2) Usability, A user will not be happy scrolling through 50.000 items. Give them filtering and paging
3) Memory, 50.000 items can consume a lot of memory.
So my suggestion: Limit the amount of data by implementing paging (somewhere between 20 and 50 items each time) and filtering.
|
|
|
|
|
Your argument is valid in principle, but you shouldn't base your it on the assumption that this list is actually being displayed to a user - there is no mention of such a thing. In fact there may be no UI involved at all.
The only issue we know of so far is memory consumption. Paging is a solution, but whether a page should hold 20 or 20000 items depends on the actual problem.
|
|
|
|