|
Hi,
I have a Visual Studio 2008 solution with two projects in it. A C++ DLL and a Csharp application.
The Csharp application uses [DllImport] to access the functions in the DLL, and has a dependency set on the DLL.
For some reason, setting the dependency...
Started by Rob on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
I right-clicked the solution, chose Properties and then under Common Properties->Project Dependencies, I made... .
So I haven't done this exact thing before but I just threw together a C++ lib project and a C# winform project in the same solution .
Hmm...
|
|
I had searched related "book-recommend" threads before I post mine cause I didn't find what I'm looking for...
I'm a newbie with a bit of PHP experience, currently I'm trying to learn C#. I brought two books from the shop Head First C# & Illustrated C...
Answer Snippets (Read the full thread at stackoverflow):
If you are focused on becoming a competent WinForms programmer, that's one... .
Hi, I think if you say a little more about your goals in learning C#, you'll get more focused answers .
I am a huge fan of O'Reily books and would suggest the learning C# book .
|
|
I recently installed Vista from scratch. I have three drives in my rig. Two of them were empty at the time of install. The other had all of my junk on it.
Post install, I fired up Disk Management to change drive letters and whatnot, as I wanted the drive...
Started by Aaron Daniels on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
The volume marked as "System" was picked by Vista's installer to hold the Windows Boot Manager (and related files... .
The Letters will be changed during the next boot.
You can assign the Letters to the drives.
NOT FREE]
Use Acronis Disk Director Suite..
|
Ask your Facebook Friends
|
My team is planning to develop an application that is initially targeted for Windows but will eventually be deployed cross-platform (Mac, Linux and potentially embedded devices). Our decision is whether to use C#/.NET or generic C++ (with Qt as the user...
Started by Jen on
, 17 posts
by 17 people.
Answer Snippets (Read the full thread at stackoverflow):
"we’re....
"We’re projecting-called productivity criteria.
Apparently Mono can indeed handle shared for embedded environments? Has it already been done commercially? Just curious .
The necessary sections in C/C++ DLLs/shared libraries.
|
|
As the question states, i am a C#/Java programmer who is interested in (re)learning C++. As you know C#/Java have a somewhat strict project file structure (especially Java). I find this structure to be very helpful and was wondering if it is a) good practice...
Started by Jason Miesionczek on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I keep....
I do it like this (root is the root directory)
root/include/foo/bar/baz.hpp becomes
namespace foo { namespace bar { // declare/define the stuff (classes, functions) here } } // foo::bar
in code .
I find the structure of java projects quite nice.
|
|
Re-initialization within "using" block is a bad idea, to be avoided at all times. Still i am going to ask this:
Why does "using" call dispose on the original value and not on the last reference or re-initialization (which happens if try finally block ...
Started by PRR on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Dispose will be called....
This is the only thing that, IMHO, makes sense!
If you would call dispose on the reassigned value, then the original value will not be disposed .
The using can be seen as a promise to call disposed on the object declared with using .
|
|
I've heard many opinions on this subject, but never saw any good proofs that C is faster than C++. So, ...is C faster than C++?
EDIT: This is a Runtime comparison.
Started by Alon on
, 25 posts
by 25 people.
Answer Snippets (Read the full thread at stackoverflow):
Even lisp can be faster than C or....
C Hash 35.929 sec.
And interesting link C++ and C code for the same problem: http://unthought.net/c++/c%5Fvs%5Fc++.html
where you can find: C++ Hash 34.697 sec.
Languages itself is useless.
|
|
I read that non mutable data types can't be modified once created.(eg NSString or NSArray).
But can they be re-initialized to point to a different set of objects?
If so, do I use release to free any alloc from first time round in between uses? eg:
myArray...
Started by Nigel on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You can assign another immutable object to a pointer.
Here is the sample code that i used to re-initialized the NSArray depends what you mean with re-initialize .
Reinitialized the NSArray.
|
|
Is there a way to pass the current state of a function into another function in c/c++? I mean all the parameters & local vars by current state. For example:
void funcA (int a, int b) { char c; int d, e; // do something with the variables // ... funcB(...
Started by sand on
, 10 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
Introduce a common ....
No there isn't, in principle the data is all available, it's all on the stack, but C provides { int d; int e; char c ; } fooinstance; void afunc( struct foo fi); void bfunc( struct foo fi); void the struct will work.
|
|
I am taking a class in C++ programming and the professor told us that there is no need to learn C because C++ contains everything in C plus object-oriented features. However, some others have told me that this is not necessarily true. Can anyone shed ...
Answer Snippets (Read the full thread at stackoverflow):
C++ does change the definition....
C++ adds the whole object oriented aspect, generic programming function) .
Overview:
It is almost true that C++ is a superset of C, and your professor is correct in that there is no need to learn C separately.
|