|
IIRC max path component len is 254, and total pathlen ~32K chars. This is documented in MSDN.
|
|
|
|
|
When using the ANSI APIs, the entire path including terminating NULL can be no longer than MAX_PATH characters. If you need longer names, you'll have to use the Unicode APIs and the special prefix \\?\ See the CreateFile() docs for a longer explanation.
--Mike--
When 900 years old you reach, look as good you will not. Hmm.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
If you downloaded the latest SDK from Microsoft the profiling function in Visual studio 6.0 doesn't work anymore - error code is *.pbo not found!
The problem rest in program call to PROFILE.EXE during profiling which is also a program in SDK (..Microsoft SDK\Bin\winnt) and this program is called instead the right one in ../VisualStudio/VC/Bin, because ...\SDK\bin is declared as system path. Rename the file in SDK and profiling will work again!
|
|
|
|
|
How i could make a program that we can create a new blank paper like MS WORD, but the paragraph text and the images are used like the objects in VB, they have property to change.
|
|
|
|
|
What code can I use to convert from a hexadecimal number to a decimal number? Is this procedure pretty much defining a function the utilizes the equation used to convert a hexadecimal number?
|
|
|
|
|
if you are asking about string formatting it is "sprintf(buffer, "%x", number)", otherwise I do not understand the question.
|
|
|
|
|
No I have store some hexadecimal numbers in a buffer and I want to to convert the hexadecimal number in the buffer to its decimal equivalent
|
|
|
|
|
hex, decimal, binary it is just representation of a number. Binary stream does not care, all it knows is that it is 1, 2,4 or 8 bytes of data.
example
int i = 19;
unsigned char buffer[256];//buffer
memcpy(buffer, &i, sizeof(int)); here we moved our number to the buffer
... //now use the buffer to write to the file or whatever you use it for
|
|
|
|
|
long strtol(<br />
const char *nptr,<br />
char **endptr,<br />
int base <br />
);<br />
long wcstol(<br />
const wchar_t *nptr,<br />
wchar_t **endptr,<br />
int base <br />
);<br />
Maxwell Chen
Lets make bugs better!
|
|
|
|
|
I'm using CTooltipCtrl to provide tooltips for buttons on an "always on top" modal dialog.
This works fine while the dialog has the focus, but I'd also like the tooltips to pop up accordingly even if the dialog does not have the focus (MS Office Shortcut Bar does this).
Any ideas how I can do it?
Thanks in advance
|
|
|
|
|
If I understand your question, what you want to do is specify the TTS_ALWAYSTIP style when you create the CToolTipCtrl.
m_ToolTip.Create(this, TTS_ALWAYSTIP);
srs
|
|
|
|
|
Doh - completely missed that one in the documentation!
That works a treat - thanks for that.
*Martyn slopes off to check that his contact lenses are in the right way round*
|
|
|
|
|
i want to make a program like MS Word, but the blank paper can just insert paragraph text, images and i can control them like objects by using property in them. Would you tell me the library help me to make it and the samples about my project? Thank you.
pmask
|
|
|
|
|
|
i can't insert images and paragraph text to richedit control. Can you help me
|
|
|
|
|
Check out MFC Samples for rich edit. It is somewhat complex when it comes to the pictures and controls, but MSDN examples cover most of it. Plus I remember couple of yers ago MS published source for WordPad.exe as an MSDN example - this is exactly what you are looking for.
|
|
|
|
|
Why not use MS Word itself via automation? Alternatively use a web browser control (derive your view class from CHTMLView.)
|
|
|
|
|
Thank for your help. i has made it
|
|
|
|
|
i calculated point of intersection of two lines in Visual C++ (SDI). I've
used conventional mathematical formula for that. When i try to draw a dot
on that obtained point that is not exactly where the two lines visually cut each other.
Reason may be that on screen, point is shown in pixels and point obtained
from mathematical formaula is not exaclty the same.. How can i convert that
coordinate point to its equivalent pixels...
one more thing that how can i roundoff a double or float value to a long int
|
|
|
|
|
I think your problem is roundoff...here is how I do it. However, I am not a Software Engineer...there may be a better way
int round(double num)
{
double y, n;
y = modf(num, &n );
if(y >= 0.5)
n++;
return (int)n;
}
Gary Kirkham
A working Program is one that has only unobserved bugs
|
|
|
|
|
Under normal conditions, the calculated point should show in the right spot --your calculations should be far more accurate than the screen resolution. Si, maybe the code has some little bug.
As for the roundoff thing, long int li=(long int)(d+0.5) should do.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
You will most likely need to translate your coordinates to the view's reference frame. Simply offset the point as far as your point of reference for the calculation is from the origin of the view's coordinates in both X and Y. (0,0) is the upper left corner of the view if I can recall...
For round-off, you can simply cast it as follows:
double dblData = 1.8787281;
long int liData = static_cast<long int>(dblData);
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
Nitron wrote:
For round-off, you can simply cast it as follows:
double dblData = 1.8787281;long int liData = static_cast<long int="">(dblData);
scrap that, i'm an idiot! That will truncate the double!
Sorry!
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
I am developing a MFC SDI Application connecting to a SQL Server database through ADO.
The problem in hand is that if multiple users are connected to the database and if one user makes any change in database, a message describing the change need to be propogated to all other connected users. It will depend upon user if he want to load this change or not.
Any ideas on how to do this? If you guys could provide me some sample code that would be great
|
|
|
|
|
I'm having difficulty resizing a Metafile. I tried using StretchBlt without any luck. Any ideas,
Thanks
|
|
|
|