|
igor1960 wrote:
http://www.intel.com/software/products/global/eval.htm
Unfortunately that is the 127mb (ok its not really 200mb) beast I was referring to, and with only 7 days to eval, I'm not sure I will have the file by then... The beauty of narrowband.
leppie::AllocCPArticle("Zee blog");
|
|
|
|
|
Linking problems with gprof are usually caused by not supplying the correct command line options to the linker.
Ran into this problem the other day on a Sun system (can't remember compiler version), compiled up the code using -xpg (profiling enabled) and it wouldn't link.. added -xpg to the link arguments and no problems.
Your problem could be something similar?
|
|
|
|
|
hi,
i am importing msacc9.lib and using transfertext method of Access application objects DoCmd object to import a tab delimited file into a table like this .code works fine with access 2000.but when i use access 97.It throws an exception saying : "Invalid number of parameters".
I am struk with this problem unable to understand why it is giving problems.Any idea will be highly appreciated.
My code looks something like this......
try
{
acc::DoCmd d1 = m_pAccessApp->GetDoCmd();
d1.TransferText(0,COleVariant(_T("ID Import Specification")),COleVariant(_T("IDTable")),
COleVariant(sTempDatabase),
COleVariant((short)1),
COleVariant(_T("")),
COleVariant((short)0, VT_I2));
catch(CException *pException)
{
TCHAR lpszError[1000];
pException->GetErrorMessagelpszError,1000);
AfxMessageBox(lpszError);
throw pException;
}
Regards.
|
|
|
|
|
I've been programming in straight C (Borland then Visual C) for about 15 years now, mostly command line utilities. I've known I need to get into C++ and have tried several times, but never been able to get the hang of it because I keep falling back to C.
What am I doing wrong? Maybe I don't want to give up all the code fragments I amassed over the years or I haven't found the right book.
Any ideas?
|
|
|
|
|
Unless you have a specific need to learn C++, try having a quick look at C# or Java. You don't need to become an expert but they will teach you how to think OO which is probably the number one problem C programmers have when trying to make the transition. But unlike in C++, you don't have the option of reverting back to your old ways
"Sucks less" isn't progress - Kent Beck [^]
Awasu 1.1.1 [^]: A free RSS reader with support for Code Project.
|
|
|
|
|
I would highly recommend against Java and C# for a C programmer migrating to C++. They are pseudo languages with a heavy layer of abstraction between you and the opcode and or the API if you use windows. They do not allow for direct casting, memory access, or access to the true low level API that we all enjoy using C++.
I STRONGLY recommend this book for the core differences between C and C++ programming
O'Reilly Publishing - C++: The Core Language[^]
and this book if you need to learn the Windows API
MSPRESS - Petzold, Programming Windows[^]
|
|
|
|
|
Beer26 wrote:
They do not allow for direct casting, memory access, or access to the true low level API that we all enjoy using C++.
This is *exactly* my point. As a C programmer, he presumably knows all this stuff already. What he is probably having trouble with is all the higher-level abstraction stuff.
"Sucks less" isn't progress - Kent Beck [^]
Awasu 1.1.1 [^]: A free RSS reader with support for Code Project.
|
|
|
|
|
memory allocation and de-allocation are very different in C++ than in java or javaplus(C#).
In C++ you have virtual functions, oo class casting, class pointer indirection, classes retrieved by direct API, such as fromhandle, and others.
Learning C# or java will not prepare a C programmer for C++ properly.
I still think your comment would lead the writer down the wrong track for what he's looking for.
I'll restate my suggestion to pick up O'reilly publishing's C++: The Core Language[^]
The reason?
That book in particular goes into great detail about how a C programmer may migrate to C++. It does NOT go into detail about platform specific API. It's purely for migration from C to C++.
Revised: In addition, when he begins to look at the C++ threading models, he will find they are much, much different from Java which extends the thread class or C#. There are a million reasons not to learn C++ OO by learning java and C# i can think of, but I won't list them all.
|
|
|
|
|
Taka Muraoka wrote:
they will teach you how to think OO which is probably the number one problem C programmers have when trying to make the transition
And thats exactly why I have such a hard time coding in C... Good habits die hard...
leppie::AllocCPArticle("Zee blog");
|
|
|
|
|
Even after years of C++ experience, its very easy to slip into doing it the C way and whilst that is not necessarily bad, you do miss out on a lot of the features C++ provides to make your code tighter and less prone to the wobbly-leg syndrome. I'd heartily recommend Bjarne Stroustrup's C++ Programming Language (3rd ed) not only as a great C++ reference, but also because its very good at demonstrating the differences between C and C++. You dont need a complete changeover of style, but a little bit here and there will work wonders
|
|
|
|
|
I coded in C for over 15 years, and reluctantly moved to C++ about 6 years ago. I can honestly say now that I wish I'd done it a lot earlier. I don't even like straight C any more.
Find you self a small app that you're interested in and design the OO framework for it, then start coding. It took me quite a while to wrap my head around OO design, and even now I'm still learning better ways of composing OO systems. You have to take the plunge. You may find that you can move lots of your existing code into classes. I've done that with ED (see sig), which started life as straight C, and is now nearly all C++.
Understanding OOD is the key, C++ is just a way to implement it.
Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
|
|
|
|
|
Neville Franks wrote:
don't even like straight C any more
Yes I was the same, the book I used, was Newnes C++ Pocket book by Conor Sexton ISBN 0 7506 0635 5. don't know if it is still in print though, as you said understanding OOD is the key. That book got me started.
It is amazing what you can accomplish if you do not care who gets the credit. - Harry S Truman
|
|
|
|
|
what u'll find is that most of ur code fragments will end up being class member functions in a properly refactored system
the oo bit is kinda related to how u organise those fragments ... if that helps
"there is no spoon" biz stuff about me
|
|
|
|
|
Hi there,
Kindly tell me how to retrieve the application icon of a registered file type from the file extension without having a specific file name.
For example, I need to retrieve the application icon associated with file type having extension ".doc".
Regards
Gaurav
Gaurav Gumber
|
|
|
|
|
SHGetFileInfo ( ....., SHGFI_ICON );
Iain.
|
|
|
|
|
HICON GetFileIconHandle(LPCTSTR lpszFileName, BOOL bSmallIcon)
{
UINT uFlags = SHGFI_ICON | SHGFI_USEFILEATTRIBUTES;
if (bSmallIcon)
uFlags |= SHGFI_SMALLICON;
else
uFlags |= SHGFI_LARGEICON;
SHFILEINFO sfi;
SHGetFileInfo(lpszFileName, FILE_ATTRIBUTE_NORMAL, &sfi, sizeof(SHFILEINFO), uFlags);
return sfi.hIcon;
}
HPS HwndSpy - GUI developer's aid to visually
locate and inspect windows. For the month of August
only, use coupon code CP-81239 for 30% off.
|
|
|
|
|
Hi
I would like to know how to get color in to my console
App.
How to color background and text.
thanks
|
|
|
|
|
Hi,
Go here:
Click me
and read Working with Windows Consoles: Part 1-4.
|
|
|
|
|
suppose i wan to have 2 views in an SDI that does not take up the whole frame, leaving space for some dialog controls.how do i do that? can i do the controls then split the view?
|
|
|
|
|
In a similar fashion to toolbars and status bars taking up some of the space from the frame,
you can add a CDialogBar too. And then put the controls on there.
Iain.
|
|
|
|
|
Hello
Does anyone knows a C++ library or an ActiveX component that can convert HTML to PDF? Or any other way to convert HTML to PDF in VC NET...
Freeware or the ones that just put their logo are needed
Thank you in advance
|
|
|
|
|
search on google
there are some free converters out there
and btw ... they convert most things to pdf as they act like virtual printer drivers
"there is no spoon" biz stuff about me
|
|
|
|
|
Look for Ghostscript. I think it will do what you want. I think!?
Larry.
Larry J. Siddens
Cornerstone Communications
TAME THE DOCUMENT MONSTER
www.unifier.biz
|
|
|
|
|
How do I toggle the toolbar items in the Doc/View architecture? They depress when clicked, but I can't get them to stay down or figure out how I can control this action programmatically.
halblonious
|
|
|
|
|
SetCheck in UI handler.
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|