|
Hi all, I'm trying to learn how to use managed/unmanaged code interop, but I've hit a wall that 4 hours of googling wasn't able to get over. I put together 2 projects in visual studio, one creating a win32 exe, and one creating a windows forms .NET application...
Started by David Hay on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Try importing your function into .NET code as
[DllImport.
You have declared your function as extern "C" which means it uses cdecl as its of your code crashing.
code into a DLL.
|
|
My knowledge is very limited on VS in fact it's the first time I am using it and very little I know of C debugging too.
I have pre-existing .c and .o files that have been transferred into my folder and I open VS to edit them. I then compile on a unix ...
Started by Filippo on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You cannot use .....
Right click solution and hit build.
You should create a C project (you may have to use empty project) Add your c files to the project.
This assumes that your code is not dependent on anything.
This is a quess.
|
|
Hello, I am a newbie in programming and I want to write a program in Visual Studio with using C# language which uses a textbox and a button only. When the user writes string "A" in the textbox and presses the button, the program shows integer "5" in a...
Started by Malkoch on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Basic maths can do the rest :) Don't forget to convert to a Char rather than subtracting the Character insertered (A, B or C) to int, subtract 70, multiply it with -1 and Display the value.
|
Ask your Facebook Friends
|
Question 1)
I have a navigation based application where clicking on an entry opens a second view with the details of that entry.
It's working now with the following code
[self.navigationController pushViewController:descriptionController animated:YES]...
Answer Snippets (Read the full thread at stackoverflow):
Because UITextView doesn't conform to NSCopying....
In my controller class for the view I have:
@property( nonatomic, retain) IBOutlet UITextView *textView;
But if I change this to
@property( nonatomic, copy) IBOutlet UITextView *textView;
Then it crashes .
|
|
For a project I'm working on, I need to have a lot of source code files generated from an interface description. That description is currently IDL (really, a pidgin IDL-like language), but I'm not married to it and am willing to consider alternatives....
Started by Stephen Deken on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
There should be something similar took XDR because the language is pretty much the same from C for structs, for the task is basically port old code and we want....
In Windows midl.exe is there to generate COM code from IDL files.
|
|
Hi!
Here's my code:
#import <Foundation/Foundation.h> void PrintPathInfo() { const char *path = [@"~" fileSystemRepresentation]; NSLog(@"My home folder is at '%@'", path); } int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [...
Started by Tom on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
For const char* you will want the....
Because you are using a C style string, you need to use the standard C string formatters OR convert the const char * back to an NSString using).
And asks it for a description to get a string to print.. .
|
|
I'm working on sorting a list of objects, and unfortunately, I'm not quite getting the information from the debugging to see where I'm going wrong.
I have a custom class that I implemented a CompareTo method in, and I call .Sort() on a List of items of...
Started by Kivus on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
Source: MSDN
Your class should implement....
If a custom class or structure does not implement IComparable, its members cannot be ordered and the sort operation can throw an InvalidOperationException .
Try making your class implement the IComparable interface.
|
|
I see that Visual Studio 2008 and later now start off a new solution with the Character Set set to Unicode. My old C++ code deals with only English ASCII text and is full of:
Literal strings like "Hello World" char type char * pointers to allocated C ...
Started by Ashwin on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
|
|
I'm trying to write a software synthesizer that recreates the sounds made by classic synthesizers like the Moog and the DX7. Does anyone know of any code resources for something like this? Thanks.
Started by MusiGenesis on
, 11 posts
by 11 people.
Answer Snippets (Read the full thread at stackoverflow):
So anything....
", Python is built on C.
Lots of sample code in C/C++ on how to do things.
There is only the most basic of audio also has a great synthesis library .
It will all be in C / C++ though.
Can take inspiration from.
|
|
Anyone know a good code analysis service or tool for vb.net? Like the one for c# with visual studio 2008 team edition or style cop for c#
Update: My bad ,I am only using the visual studio pro in my new work place,so I could not use the code analysis for...
Started by Ybbest on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I just tested it, and it does work.
I believe that Code Analysis works on VB.NET code as well.
|