|
C++ is a programming language, Visual C++ is Microsoft's product for programming in the C++ language.
|
|
|
|
|
markkuk wrote:
C++ is a programming language, Visual C++ is Microsoft's product for programming in the C++ language.
This is the nicest (shortest and accurate) explanation
Best regards,
Alexandru Savescu
|
|
|
|
|
Can C# use the unmanaged classes I created with VC++ 6.0 before, which use many pointers ?
|
|
|
|
|
No. C# and C++ are totally different languages.
Signature space for rent. Apply by email to....
|
|
|
|
|
Yes. Just build a DLL around it.
Then from C# you call the exported DLL functions thanks to the [DllImport("mydell.dll")] attribute.
The other way is also possible. Documented in MSDN.
MS quote (http://www.microsoft.com/ddk) : As of September 30, 2002, the Microsoft® Windows® 2000 DDK, the Microsoft Windows 98 DDK, and the Microsoft Windows NT® 4.0 DDK will no longer be available for purchase or download on this site.
|
|
|
|
|
Hi,
Tell me what means "CancelIo"?
Thnx
Extreme programming. Do the No.1
|
|
|
|
|
I guess you're after API function CancelIo which "cancels all pending input and output (I/O) operations that were issued by the calling thread for the specified file handle. The function does not cancel I/O operations issued for the file handle by other threads". MSDN has the details.
Tomasz Sowinski -- http://www.shooltz.com
To some its a six-pack, to me it's a support group
|
|
|
|
|
I am working on 3D Studio Max R4 to create a plugin using visual c++6.0 However, when I tried to add a win32 API using a sample cpp file, I get this error: c2065 undeclared identifier
I have defined the API in resource.h, .rc file format and the .cpp format. However, I still get that error. In addition, I have updated my SDK in Aug 2002. Can someone solve this prob? I will be grateful for that. Thanxxx.
|
|
|
|
|
|
So what's the name of identifier causing C2065?
Tomasz Sowinski -- http://www.shooltz.com
To some its a six-pack, to me it's a support group
|
|
|
|
|
hello,
how to convert a variant to CString..i used _bstr_t & CString..but i am not getting any ans..
|
|
|
|
|
CString str = var.bstr;
Where var is type variant.
But you need to check if the var is type BSTR. For that you need to test if var.vt == VT_BSTR ;);)
In other case you need to use the VariantChangeType function to convert the variant to BSTR....
Regards
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
I've studied XtraBuilder and (a little)
XDK, examinig the examples, and now I'd
like to begin coding myself using Visual
C++ but ... I don't know how to start
building an Xtra !!!
When I open file-new I dont't know what
to choose (even if I'd made some tests).
Somebody can help me to start?
Thanks.
|
|
|
|
|
I have a file that combine htmls and gifs.
For example the first 100 bytes is html the rest is the gifs related the html. How can I fill them to webcontrol ? Can I read them to memory and put the memonry to webcontrol (IE) ?
Please give me some hints ? Thank you.
|
|
|
|
|
u have to cut the file into several files: the html file, and one for each gif, and then Navigate2 the html file!
Papa
Murex Co.
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Hi,
have you ever come across some info on this?
Thanks
R.
|
|
|
|
|
|
I'm building a project about download files.
I should get the length and last modify date of remote file.
How should I do this ?
Thank you very much!
|
|
|
|
|
You need to use either FTP or HTTP depending on what kind of server the files are being hosted on. Check codeproject for code on how to handle both of those protocols.
http://www.codetools.com/internet/[^]
Todd Smith
|
|
|
|
|
Hi, Todd,
Thank you very much!
|
|
|
|
|
Hi,
I am working on printing a List Box contents, so far it has worked ... except that I could not change the "Text size", here is a part of my codes:
<br />
CFont Font;<br />
LOGFONT lf; <br />
CDC dc;<br />
<br />
memset(&lf, 0, sizeof(LOGFONT::ZeroMemory(&lf, sizeof(LOGFONT));<br />
lf.lfHeight = -MulDiv(10, dc.GetDeviceCaps(LOGPIXELSY), 72);<br />
strcpy(lf.lfFaceName, "Arial"); <br />
<br />
Font.CreateFontIndirect(&lf);<br />
dc.SelectObject(&oFont); <br />
CString text("A") ;<br />
CSize csText = dc.GetTextExtent(text) ;<br />
----------------------------------------------- (some more detail)<br />
m_listbox.GetText(line_printing, text) ;<br />
dc.DrawText(text, CRect(x, y, x + Info.m_rectDraw.Width(), y + csText.cy), DT_EXPANDTABS) ;<br />
<br />
*) I tried to change lf.lfHeight, but the result is that I only changed the spacing for vertical printing! What ever I change that or lf.lfFaceName ... the "Text size" printing out ... has never been changed!
Can someone help me on this, I am really appreciate it ... if provide me an Email ddress, I will send a small zip about my small project (just to try the printing)!
Many thanks,
|
|
|
|
|
Are you sure that dc you're using to call GetDeviceCaps is actually printer DC?
Also, you may use CFont::CreatePointFont to avoid bit-twiddling.
Tomasz Sowinski -- http://www.shooltz.com
To some its a six-pack, to me it's a support group
|
|
|
|
|
Hi,
I did try to use as your suggestion:
VERIFY(oFont.CreatePointFont(80, "Arial", &dc)); // 120 = 12 point font
for replacing:
// oFont.CreateFontIndirect(&lf); // Create the font.
// dc.SelectObject(&oFont); // RIA, select he font into the DC
The result was the same Text size! Someone knows why?
- For the GetDeviceCaps is actually printer DC? I think Yes, because we have to use to calculate the Paper size ... and so far it is OK!
Many thanks for any help
|
|
|
|
|
Ok I am going to try and explain this without confusing both you and myself. I have a file that I am writing custom CObjects to. The first thing written/read from the file is the number of objects that are in the file… so I know how many times to read from the archive.
Say that number is 5, and then I close the file, open it again, and rewrite more objects now the number is 10. Do I have to clear the file and rewrite all the objects? If I do not clear the file, and just write at the start position or will this corrupt the file because it will be overlapping the first object.
To make it even more confusing, do I have to include the number of objects, or is there an easier way. My overall objective is to create a log file, so I subclassed CObject, to create my own objects… to make it easier to write.
If you have any answers to one or all of my questions, I would GREATLY appreciate it. I have read MSDN, but am very confused about how it works… I know it’s hard to create your own file format. Thank you for your time.
"Best file compression around: DEL *.* = 100% compression."
<><><><><><><><><><><><><>
Matthew R. Miller
mattrmiller@computersmarts.net
www.computersmarts.net
|
|
|
|
|
Hi Mathew,
I'm reasonably sure CArchive is only a streaming format, which means you can't selectively write to a part of the file. ie. In your example the count of objects at the start. Appending to an existing archive should work ok.
I use a similar technique to the one you describe to manage an array of Style Sheets in ED (see sig). When I want to save the style sheets array I recreate the file from scratch as follows:
if ( bStat = SSfile.Open( m_SSFileName, CFile::modeCreate | CFile::modeWrite | CFile::shareExclusive, &FileException ) )
The count is written at the start of the file.
If you want to be able to append to the file and modify a header record I don't think CArchive is appropriate.
Neville Franks, Author of ED for Windows. www.getsoft.com
|
|
|
|