|
Thank You Shog,
the function you mentioned does seem to make the coordinates more realistic. However I am still having a problem getting the accurate coordinates. The problem I am having is when I pass a RECT to the EnumEnhMetaFile function (which according to MSDN should bind all the drawing calls to within that rectangular region), the coordinates are still outside of the rect. I may pass in (0,0,100,100) but i will get coordinates that are somewhere in the seven hundreds. And to top that off, I have noticed that regardless of the RECT I pass in, the coordinates the function returns always stay the same (as long as the image is the same).
Any suggestions as to what I may be doing wrong?
Thank You,
Ilya
|
|
|
|
|
hiho@ll
anybody knows a good tool which can analyze my code (or just an C/C++ (would be cool with some MFC or "windows" features)) and show me the cross references of my code:
which function is called by which code
i know xref for linux, but is there a similar prog for windows (maybe graphical)
what i finally want is to learn "foreign"-code faster, because sometimes i have to read code from someone other and it's a little bit hard to read it without a good overview
thx@ll
|
|
|
|
|
Visual Studio has one already built into the IDE. Just select Source Browser (Alt+F12) from the Tools menu.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
hmm
would be cool
but if i search Tools i don't find a source browser
and using Alt+F12 i get a "Find Symbol" search window
??
|
|
|
|
|
Perhaps you did not select Source Browser (I think it was in the tools area) when Visual Studio was installed??
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
i tryed to install more tools for visual studio in case i didn't install the source browser, but i installed the whole visual studio!!
this means (and i think i didn't something wrong) there is no source browser in visual studio .NET !(?)
anybody knows an alternative
|
|
|
|
|
ThinkingPrometheus wrote:
...there is no source browser in visual studio .NET !(?)
I wish you would have mentioned this detail up front. My comments were for Visual Studio v6.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
I am looking for a command that will launch an executable when a button is pressed. I want my program to sit and wait while the other program is executing. Whats the best way to go about this?
Thanks
|
|
|
|
|
See here.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
|
How does one load the contents of an HTML resource into a CString?
Here's what I have thus far:
HRSRC hSrc = FindResource(NULL, MAKEINTRESOURCE(IDR_HTML_HEADER), RT_HTML);
HGLOBAL hHeader = LoadResource(NULL, hSrc);
CString szHeader("");
~Nitron.
ññòòïðïðB A start
|
|
|
|
|
CString szHeader = (LPCTSTR)hHeader;
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|
|
Thanx! I didn't think I could do that.
~Nitron.
ññòòïðïðB A start
|
|
|
|
|
|
[edit] well, I'll be dammed... Thanx![/edit]
Chris Losinger wrote:
you're so close!
// assuming hHeader is a zero-terminated string
szHeader = (const char *)hHeader;
FreeResource(hHeader);
WTF! I can DO THAT?! I guess I don't quite get the concept of a "handle"... Is a handle always a bald pointer like that?
~Nitron.
ññòòïðïðB A start
|
|
|
|
|
No, not always. They are often an index into a look-up table.
|
|
|
|
|
ouch. i misread your code.
there is one more little thing you need:
HRSRC hSrc = FindResource(NULL, MAKEINTRESOURCE(IDR_HTML_HEADER), RT_HTML);
HGLOBAL hHeader = LoadResource(NULL, hSrc);
const char *pData = (const char*)LockResource(hHeader);
szHeader = pData;
UnlockResource(hHeader);
FreeResource(hHeader);
gotta Lock after the Load
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
Ah yes, the Lock to get the pointer.
I was thinking you had missed something and I couldn't remember what it was.
|
|
|
|
|
All,
Does anybody know where I can download a copy of this SDK as Microsoft have taken it off their website (and replaced it with the latest version which does not support VC 6.0) and now expect users to purchase a CD with it on (CD if free postage is $15.95)
At my company getting a purchase order for such a small amount takes days therefore I want to download it.
Any help anyone can give would be nice.
Thanks
Users.
Can't live with 'em, can't kill em!
|
|
|
|
|
The disc is 356MB. I guess you could have it e-mailed to you a piece at a time.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
|
Interesting site.
How do they make their money ?
...cmk
Save the whales - collect the whole set
|
|
|
|
|
No idea. But the site's a very popular alternative to bittorrent in sharing large files - such as videos/movies.
|
|
|
|
|
Hi..
is there a Windows Lawyer who knows if there is a document which says that the standard Windows Tree - Control is opening its branches when it's double-clicked. (Hope everybody understands what i mean).
And if there is such a document.. if there is a link to this document.
I'm fighting with some guys, telling them that this is the standard user experience and that everybody would be confused if it didn't expand the branch (with double-click).
All the label says is that this stuff contains chemicals "... known to the State of California to cause cancer in rats and low-income test subjects." Roger Wright http://www.codeproject.com/lounge.asp?select=965687&exp=5&fr=1#xx965687xx
|
|
|
|
|
i am reading the header of shape file but after reading the values which have byte order little are correct but the values which have byte order big are not correct.any body tell me how to resolve this problem.
|
|
|
|